-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS::Redis::UpgradeRedisInstanceBandwidth.json
102 lines (102 loc) · 2.92 KB
/
ACS::Redis::UpgradeRedisInstanceBandwidth.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
{
"FormatVersion": "OOS-2019-06-01",
"Description": {
"en": "Upgrade of the temporary bandwidth of a Redis instance",
"zh-cn": "升级Redis实例临时带宽",
"name-en": "ACS::Redis::UpgradeRedisInstanceBandwidth",
"name-zh-cn": "升级Redis实例临时带宽"
},
"Parameters": {
"RegionId": {
"Type": "String",
"Label": {
"en": "RegionId",
"zh-cn": "地域ID"
},
"AssociationProperty": "RegionId",
"Default": "{{ ACS::RegionId }}"
},
"InstanceId": {
"Type": "String",
"Label": {
"en": "InstanceId",
"zh-cn": "Redis实例ID"
}
},
"Bandwidth": {
"Type": "Number",
"Label": {
"en": "Bandwidth",
"zh-cn": "要增加的带宽"
},
"Description": {
"en": "Unit:MB/s. The maximum incoming bandwidth is 6 times the default bandwidth of this instance specification, but the upper limit is 192MB/s. For example, the default bandwidth of an instance is 10 MB/s, and the value range of this parameter is 0~60.",
"zh-cn": "单位:MB/s。最大可传入该实例规格默认带宽的 6 倍,但上限为 192MB/s。例如实例默认带宽为 10 MB/s,本参数的取值范围为 0~60。"
},
"MinValue": 1,
"MaxValue": 192
},
"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": "UpgradeRedisInstanceBandwidth",
"Action": "ACS::ExecuteApi",
"Description": {
"en": "Upgrade redis instance bandwidth",
"zh-cn": "升级Redis实例的带宽"
},
"Properties": {
"Service": "r-kvstore",
"API": "EnableAdditionalBandwidth",
"Parameters": {
"RegionId": "{{ RegionId }}",
"InstanceId": "{{ InstanceId }}",
"Bandwidth": "{{ Bandwidth }}",
"AutoPay": true
}
}
},
{
"Name": "DurationHour",
"Action": "ACS::Sleep",
"Description": {
"en": "Bandwidth upgrade duration",
"zh-cn": "带宽升级持续时间"
},
"Properties": {
"Duration": "{{ DurationHour }}H"
}
},
{
"Name": "RecoverRedisInstanceBandwidth",
"Action": "ACS::ExecuteAPI",
"Description": {
"en": "Recover redis instance bandwidth",
"zh-cn": "恢复redis实例的带宽"
},
"Properties": {
"Service": "r-kvstore",
"API": "EnableAdditionalBandwidth",
"Parameters": {
"RegionId": "{{ RegionId }}",
"InstanceId": "{{ InstanceId }}",
"Bandwidth": 0,
"AutoPay": true
}
}
}
]
}