模板名称
ACS-VPC-ScheduleToUpgradeEipBandwidth 定时升级EIP实例临时带宽
模板描述
定时升级EIP实例临时带宽
模板类型
自动化
所有者
Alibaba Cloud
输入参数
参数名称 | 描述 | 类型 | 是否必填 | 默认值 | 约束 |
TimerTrigger | 定时类型 | Json | 是 | ||
AllocationId | 目标EIP实例 | List | 是 | ||
Bandwidth | 带宽 | Number | 是 | ||
RegionId | 地域ID | String | 否 | {{ ACS::RegionId }} | |
Duration | 带宽升级持续时间 | String | 否 | PT1H | |
RateControl | 任务执行的并发比率 | Json | 否 | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | OOS扮演的RAM角色 | String | 否 | "" |
输出参数
无
执行此模板需要的权限策略
{
"Version": "1",
"Statement": [
{
"Action": [
"vpc:DescribeEipAddresses",
"vpc:ModifyEipAddressAttribute"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
详情
ACS-VPC-ScheduleToUpgradeEipBandwidth详情
模板内容
FormatVersion: OOS-2019-06-01
Description:
en: Schedule to upgrade EIP bandwidth
zh-cn: 定时升级EIP实例临时带宽
name-en: ACS-VPC-ScheduleToUpgradeEipBandwidth
name-zh-cn: 定时升级EIP实例临时带宽
categories:
- time_trigger
Parameters:
TimerTrigger:
Type: Json
Label:
en: TimerTrigger
zh-cn: 定时类型
AssociationProperty: ALIYUN::OOS::Component::TimerTrigger
AssociationPropertyMetadata:
MinuteInterval: 30
RegionId:
Type: String
Label:
en: The id of region
zh-cn: 地域ID
AssociationProperty: RegionId
Default: '{{ ACS::RegionId }}'
AllocationId:
Type: List
Label:
en: TargetEIPInstance
zh-cn: 目标EIP实例
Bandwidth:
Label:
en: Bandwidth
zh-cn: 带宽
Description:
en: The peak bandwidth of EIP needs to be modified. The value is:1~500. It is billed based on fixed bandwidth, in Mbps.
zh-cn: 需要修改 EIP 的带宽峰值,取值:1~500,按固定带宽计费,单位为 Mbps。
Type: Number
MinValue: 1
MaxValue: 500
Duration:
Label:
en: Duration
zh-cn: 带宽升级持续时间
Description:
zh-cn: 限制:最短1秒钟。
en: with a minimum limit of 1 second.
Type: String
AssociationProperty: ALIYUN::OOS::Component::DurationExpression
Default: 'PT1H'
RateControl:
Label:
en: RateControl
zh-cn: 任务执行的并发比率
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: The RAM role to be assumed by OOS
zh-cn: OOS扮演的RAM角色
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: timerTrigger
Action: ACS::TimerTrigger
Description:
en: Triggers a task as scheduled by specifying type and expression
zh-cn: 通过指定触发类型和表达式按计划触发任务
Properties:
Type:
Fn::Select:
- type
- '{{timerTrigger}}'
Expression:
Fn::Select:
- expression
- '{{timerTrigger}}'
StartDate:
Fn::Select:
- startDate
- '{{ timerTrigger }}'
EndDate:
Fn::Select:
- endDate
- '{{ timerTrigger }}'
TimeZone:
Fn::Select:
- timeZone
- '{{ timerTrigger }}'
Outputs: {}
- Name: GetEipInstance
Description:
en: Get the EIP instance
zh-cn: 获取EIP实例
Action: ACS::ExecuteAPI
Properties:
Service: VPC
API: DescribeEipAddresses
Parameters:
RegionId: '{{ RegionId }}'
AllocationId:
Fn::Join:
- ','
- '{{ AllocationId }}'
Headers: {}
Body: {}
Outputs: {}
- Name: UpgradeEipAddressBandwidth
Action: ACS::VPC::UpgradeEipBandwidth
Description:
en: Upgrade EIP instance bandwidth
zh-cn: 升级EIP实例的带宽
Properties:
RegionId: '{{ RegionId }}'
AllocationId: '{{ ACS::TaskLoopItem }}'
Bandwidth: '{{ Bandwidth }}'
Duration: '{{ Duration }}'
Outputs: {}
Loop:
Items: '{{ GetEipInstance.EipAddresses.EipAddress[]?.AllocationId }}'
RateControl: '{{ RateControl }}'
Outputs: {}
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- TimerTrigger
Label:
default:
zh-cn: 定时设置
en: Timer Trigger Configure
- Parameters:
- RegionId
- AllocationId
- Bandwidth
- Duration
Label:
default:
zh-cn: 选择实例
en: Select ECS Instances
- Parameters:
- RateControl
- OOSAssumeRole
Label:
default:
zh-cn: 高级选项
en: Control Options
该文章对您有帮助吗?