forked from aliyun/oos-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathACS-ECS-BulkyDeleteSnapshot.json
73 lines (73 loc) · 1.92 KB
/
ACS-ECS-BulkyDeleteSnapshot.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
{
"FormatVersion": "OOS-2019-06-01",
"Description": {
"en": "Bulky delete snapshot.",
"zh-cn": "\u6279\u91cf\u5220\u9664\u5feb\u7167\u3002",
"name-en": "ACS-ECS-BulkyDeleteSnapshot",
"name-zh-cn": "\u6279\u91cf\u5220\u9664\u5feb\u7167",
"categories": [
"data_backup"
]
},
"Parameters": {
"snapshotIds": {
"Description": {
"en": "The snapshot id.",
"zh-cn": "\u5feb\u7167 ID\u3002"
},
"Type": "List"
},
"force": {
"Description": {
"en": "Force deletion of snapshots associated with disks.",
"zh-cn": "\u662f\u5426\u5f3a\u5236\u5220\u9664\u6709\u78c1\u76d8\u5173\u8054\u7684\u5feb\u7167\u3002"
},
"Type": "Boolean",
"Default": false
},
"rateControl": {
"Description": {
"en": "Concurrency ratio of task execution.",
"zh-cn": "\u4efb\u52a1\u6267\u884c\u7684\u5e76\u53d1\u6bd4\u7387\u3002"
},
"Type": "Json",
"AssociationProperty": "RateControl",
"Default": {
"Mode": "Concurrency",
"MaxErrors": 0,
"Concurrency": 10
}
},
"OOSAssumeRole": {
"Description": {
"en": "The RAM role to be assumed by OOS.",
"zh-cn": "OOS\u626e\u6f14\u7684RAM\u89d2\u8272\u3002"
},
"Type": "String",
"Default": "OOSServiceRole"
}
},
"RamRole": "{{ OOSAssumeRole }}",
"Tasks": [
{
"Name": "deleteSnapshot",
"Action": "ACS::ExecuteAPI",
"Description": {
"en": "Delete the specified snapshot.",
"zh-cn": "\u5220\u9664\u6307\u5b9a\u7684\u5feb\u7167\u3002"
},
"Properties": {
"Service": "ECS",
"API": "DeleteSnapshot",
"Parameters": {
"Force": "{{ force }}",
"SnapshotId": "{{ ACS::TaskLoopItem }}"
}
},
"Loop": {
"RateControl": "{{ rateControl }}",
"Items": "{{ snapshotIds }}"
}
}
]
}