-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS::VPC::UpgradeEipBandwidth.json
123 lines (123 loc) · 3.05 KB
/
ACS::VPC::UpgradeEipBandwidth.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
{
"FormatVersion": "OOS-2019-06-01",
"Description": {
"en": "Upgrading the temporary bandwidth of an EIP instance",
"zh-cn": "升级EIP实例临时带宽",
"name-en": "ACS::VPC::UpgradeEipBandwidth",
"name-zh-cn": "升级EIP实例临时带宽"
},
"Parameters": {
"RegionId": {
"Type": "String",
"Label": {
"en": "The id of region",
"zh-cn": "地域ID"
},
"AssociationProperty": "RegionId",
"Default": "{{ ACS::RegionId }}"
},
"AllocationId": {
"Type": "String",
"Label": {
"en": "TargetEIPInstance",
"zh-cn": "目标EIP实例"
}
},
"Bandwidth": {
"Label": {
"en": "Bandwidth",
"zh-cn": "带宽"
},
"Description": {
"en": "Unit:Mbps",
"zh-cn": "单位:Mbps"
},
"Type": "Number",
"MinValue": 1,
"MaxValue": 200,
"Default": 10
},
"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,
"Default": 1
}
},
"Tasks": [
{
"Name": "GetEipInstance",
"Description": {
"en": "Views the EIP instances",
"zh-cn": "获取EIP实例"
},
"Action": "ACS::ExecuteAPI",
"Properties": {
"Service": "VPC",
"API": "DescribeEipAddresses",
"Parameters": {
"RegionId": "{{ RegionId }}",
"AllocationId": "{{ AllocationId }}"
}
},
"Outputs": {
"Bandwidth": {
"Type": "String",
"ValueSelector": ".EipAddresses.EipAddress[].Bandwidth"
}
}
},
{
"Name": "UpgradeEipAddressBandwidth",
"Action": "ACS::ExecuteAPI",
"Description": {
"en": "Upgrade EIP instance bandwidth",
"zh-cn": "升级EIP实例的带宽"
},
"Properties": {
"Service": "VPC",
"API": "ModifyEipAddressAttribute",
"Parameters": {
"RegionId": "{{ RegionId }}",
"AllocationId": "{{ AllocationId }}",
"Bandwidth": "{{ Bandwidth }}"
}
}
},
{
"Name": "DurationHour",
"Action": "ACS::Sleep",
"Description": {
"en": "Bandwidth upgrade duration",
"zh-cn": "带宽升级持续时间"
},
"Properties": {
"Duration": "{{ DurationHour }}H"
}
},
{
"Name": "RecoverEipAddressBandwidth",
"Action": "ACS::ExecuteAPI",
"Description": {
"en": "Recover EIP instance bandwidth",
"zh-cn": "恢复EIP实例的带宽"
},
"Properties": {
"Service": "VPC",
"API": "ModifyEipAddressAttribute",
"Parameters": {
"RegionId": "{{ RegionId }}",
"AllocationId": "{{ AllocationId }}",
"Bandwidth": "{{ GetEipInstance.Bandwidth }}"
}
}
}
]
}