-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS-ECS-BulkyResizeDisk.json
138 lines (138 loc) · 3.7 KB
/
ACS-ECS-BulkyResizeDisk.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
{
"FormatVersion": "OOS-2019-06-01",
"Description": {
"en": "Bulky resize disk",
"zh-cn": "批量扩容磁盘",
"name-en": "ACS-ECS-BulkyResizeDisk",
"name-zh-cn": "批量扩容磁盘",
"categories": [
"instance_manage",
"computenest"
]
},
"Parameters": {
"regionId": {
"Type": "String",
"Label": {
"en": "RegionId",
"zh-cn": "地域ID"
},
"AssociationProperty": "RegionId",
"Default": "{{ ACS::RegionId }}"
},
"diskIds": {
"Label": {
"en": "DiskIds",
"zh-cn": "云盘ID"
},
"AssociationProperty": "ALIYUN::ECS::Disk::DiskId",
"AssociationPropertyMetadata": {
"RegionId": "regionId"
},
"Type": "List"
},
"newSize": {
"Label": {
"en": "NewSize",
"zh-cn": "云盘容量大小"
},
"Type": "Number",
"MinValue": 20,
"MaxValue": 32768
},
"type": {
"Label": {
"en": "Type",
"zh-cn": "扩容云盘的方式"
},
"Description": {
"en": "< p class = \"P\" > value range:</p> <ul class=\"ul\"> < Li class = \"Li\" > offline (default):offline capacity expansion. After capacity expansion, you must restart the instance on the console or call the API to make the operation effective</ li> < Li class = \"Li\" > online:online capacity expansion, which can be completed without restarting the instance. The cloud disk type supports efficient cloud disk, SSD cloud disk and ESSD cloud disk</ li> </ul>",
"zh-cn": "<p class=\"p\">取值范围:</p> <ul class=\"ul\"> <li class=\"li\">offline(默认):离线扩容。扩容后,您必须在控制台重启实例或者调用API使操作生效。</li> <li class=\"li\">online:在线扩容,无需重启实例即可完成扩容。云盘类型支持高效云盘、SSD云盘和ESSD云盘。</li> </ul>"
},
"Type": "String",
"AllowedValues": [
"online",
"offline"
],
"Default": "offline"
},
"rateControl": {
"Label": {
"en": "RateControl",
"zh-cn": "任务执行的并发比率"
},
"Type": "Json",
"AssociationProperty": "RateControl",
"Default": {
"Mode": "Concurrency",
"MaxErrors": 0,
"Concurrency": 10
}
},
"OOSAssumeRole": {
"Label": {
"en": "OOSAssumeRole",
"zh-cn": "OOS扮演的RAM角色"
},
"Type": "String",
"Default": ""
}
},
"RamRole": "{{ OOSAssumeRole }}",
"Tasks": [
{
"Name": "resizeDisk",
"Action": "ACS::ExecuteApi",
"Description": {
"en": "Resize disk",
"zh-cn": "扩容磁盘"
},
"Properties": {
"Service": "ECS",
"API": "ResizeDisk",
"Parameters": {
"RegionId": "{{ regionId }}",
"DiskId": "{{ ACS::TaskLoopItem }}",
"NewSize": "{{ newSize }}",
"Type": "{{ type }}"
}
},
"Loop": {
"RateControl": "{{ rateControl }}",
"Items": "{{ diskIds }}"
}
}
],
"Metadata": {
"ALIYUN::OOS::Interface": {
"ParameterGroups": [
{
"Parameters": [
"regionId",
"diskIds",
"newSize",
"type"
],
"Label": {
"default": {
"zh-cn": "参数设置",
"en": "Configure Parameters"
}
}
},
{
"Parameters": [
"rateControl",
"OOSAssumeRole"
],
"Label": {
"default": {
"zh-cn": "高级选项",
"en": "Control Options"
}
}
}
]
}
}
}