-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS::ECS::DetachDisk.yml
56 lines (56 loc) · 1.38 KB
/
ACS::ECS::DetachDisk.yml
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
FormatVersion: OOS-2019-06-01
Description:
name-en: ACS::ECS::DetachDisk
name-zh-cn: 从ECS实例卸载云盘
en: Detach a pay-as-you-go data disk or a system disk from an ECS instance
zh-cn: 从一台ECS实例上卸载一块按量付费数据盘,或者卸载一块系统盘
Parameters:
regionId:
Description:
en: The ID of region
zh-cn: 地域ID
Type: String
Default: '{{ ACS::RegionId }}'
instanceId:
Description:
en: The ID of ECS instance
zh-cn: ECS实例ID
Type: String
MinLength: 1
MaxLength: 30
diskId:
Description:
en: The ID of disk
zh-cn: 云盘ID
Type: String
AllowedPattern: d-[A-Za-z0-9]*
MinLength: 1
MaxLength: 30
Tasks:
- Name: detachDisk
Action: ACS::ExecuteAPI
Description:
en: Detaches a disk from ECS instance
zh-cn: 从ECS实例上卸载一块云盘
Properties:
Service: ECS
API: DetachDisk
Parameters:
RegionId: '{{ regionId }}'
DiskId: '{{ diskId }}'
InstanceId: '{{ instanceId }}'
- Name: untilDiskDetached
Action: ACS::WaitFor
Description:
en: Waits for the disk to detach successfully
zh-cn: 等待云盘卸载完成
Properties:
Service: ECS
API: DescribeDisks
Parameters:
RegionId: '{{ regionId }}'
DiskIds:
- '{{ diskId }}'
DesiredValues:
- Available
PropertySelector: Disks.Disk[].Status