-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathACS::ECD::RebootDesktop.json
68 lines (68 loc) · 1.53 KB
/
ACS::ECD::RebootDesktop.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": {
"name-en": "ACS::ECD::RebootDesktop",
"name-zh-cn": "重启云桌面",
"en": "Restarts the ECD desktop",
"zh-cn": "重启云桌面"
},
"Parameters": {
"regionId": {
"Description": {
"en": "The ID of region",
"zh-cn": "地域ID"
},
"Type": "String",
"Default": "{{ ACS::RegionId }}"
},
"desktopId": {
"Description": {
"en": "The ID of ECD desktop",
"zh-cn": "云桌面ID"
},
"Type": "String"
}
},
"Tasks": [
{
"Name": "rebootDesktop",
"Action": "ACS::ExecuteAPI",
"Description": {
"en": "Restarts the desktop",
"zh-cn": "重启云桌面"
},
"Properties": {
"Service": "ECD",
"API": "RebootDesktops",
"Parameters": {
"RegionId": "{{ regionId }}",
"DesktopId": [
"{{ desktopId }}"
]
}
}
},
{
"Name": "untilDesktopReady",
"Action": "ACS::WaitFor",
"Description": {
"en": "Waits for the desktop to enter Running status",
"zh-cn": "等待云桌面至运行中状态"
},
"Properties": {
"Service": "ECD",
"API": "DescribeDesktops",
"Parameters": {
"RegionId": "{{ regionId }}",
"DesktopId": [
"{{ desktopId }}"
]
},
"DesiredValues": [
"Running"
],
"PropertySelector": "Desktops[].DesktopStatus"
}
}
]
}