-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS-VPC-ScheduleToUpgradeEipBandwidth.json
180 lines (180 loc) · 4.39 KB
/
ACS-VPC-ScheduleToUpgradeEipBandwidth.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
{
"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
},
"DurationHour": {
"Label": {
"en": "DurationHour",
"zh-cn": "带宽升级持续时间"
},
"Description": {
"zh-cn": "单位:小时。持续时间最少1小时",
"en": "Unit:Hour. The bandwidth upgrade should last at least 1 hours"
},
"Type": "Number",
"MinValue": 1,
"MaxValue": 24,
"Default": 1
},
"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": "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 }}"
]
}
}
},
"Outputs": {
"AllocationIds": {
"Type": "List",
"ValueSelector": ".EipAddresses.EipAddress[].AllocationId"
}
}
},
{
"Name": "UpgradeEipAddressBandwidth",
"Action": "ACS::VPC::UpgradeEipBandwidth",
"Description": {
"en": "Upgrade EIP instance bandwidth",
"zh-cn": "升级EIP实例的带宽"
},
"Properties": {
"RegionId": "{{ RegionId }}",
"AllocationId": "{{ ACS::TaskLoopItem }}",
"Bandwidth": "{{ Bandwidth }}",
"DurationHour": "{{ DurationHour }}"
},
"Loop": {
"RateControl": "{{ RateControl }}",
"Items": "{{ GetEipInstance.AllocationIds }}"
}
}
],
"Metadata": {
"ALIYUN::OOS::Interface": {
"ParameterGroups": [
{
"Parameters": [
"TimerTrigger"
],
"Label": {
"default": {
"zh-cn": "定时设置",
"en": "Timer Trigger Configure"
}
}
},
{
"Parameters": [
"RegionId",
"AllocationId",
"Bandwidth",
"DurationHour"
],
"Label": {
"default": {
"zh-cn": "选择实例",
"en": "Select ECS Instances"
}
}
},
{
"Parameters": [
"RateControl",
"OOSAssumeRole"
],
"Label": {
"default": {
"zh-cn": "高级选项",
"en": "Control Options"
}
}
}
]
}
}
}