-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathACS::CN::RollbackServiceInstance.json
68 lines (68 loc) · 1.77 KB
/
ACS::CN::RollbackServiceInstance.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
{
"FormatVersion": "OOS-2019-06-01",
"Description": {
"en": "Use this template to rollback CN service instance",
"zh-cn": "使用这个模板在计算巢商家侧回滚服务实例",
"name-en": "ACS::CN::RollbackServiceInstance",
"name-zh-cn": "计算巢商家侧回滚服务实例"
},
"Parameters": {
"RegionId": {
"Type": "String",
"Label": {
"en": "RegionId",
"zh-cn": "地域ID"
},
"AssociationProperty": "RegionId",
"Default": "{{ ACS::RegionId }}"
},
"ServiceInstanceId": {
"Type": "String",
"Label": {
"en": "TargetInstance",
"zh-cn": "目标实例"
}
}
},
"Tasks": [
{
"Name": "RollbackServiceInstance",
"Description": {
"en": "Rollback service instance",
"zh-cn": "回滚服务实例"
},
"Action": "ACS::ExecuteApi",
"Properties": {
"Service": "ComputeNestSupplier",
"API": "RollbackServiceInstance",
"Parameters": {
"RegionId": "{{ RegionId }}",
"ServiceInstanceId": "{{ ServiceInstanceId }}"
}
}
},
{
"Name": "UntilServiceInstanceReady",
"Action": "ACS::WaitFor",
"Description": {
"en": "Waits for the service instance to enter Deployed status",
"zh-cn": "等待服务实例至已部署状态"
},
"Properties": {
"Service": "ComputeNestSupplier",
"API": "GetServiceInstance",
"Parameters": {
"RegionId": "{{ RegionId }}",
"ServiceInstanceId": "{{ ServiceInstanceId }}"
},
"DesiredValues": [
"Deployed"
],
"StopRetryValues": [
"UpgradeRollbackFailed"
],
"PropertySelector": ".Status"
}
}
]
}