-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS::ECS::DescribeInstancesByName.json
56 lines (56 loc) · 1.36 KB
/
ACS::ECS::DescribeInstancesByName.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
{
"FormatVersion": "OOS-2019-06-01",
"Description": {
"name-en": "ACS::ECS::DescribeInstancesByName",
"name-zh-cn": "根据ECS实例名称获取实例ID",
"en": "Views the ECS instance ids by specifying instance name",
"zh-cn": "根据ECS实例名称获取实例ID"
},
"Parameters": {
"regionId": {
"Description": {
"en": "The ID of region",
"zh-cn": "地域ID"
},
"Type": "String",
"Default": "{{ ACS::RegionId }}"
},
"instanceName": {
"Description": {
"en": "The name of ECS instance",
"zh-cn": "实例名称"
},
"Type": "String"
}
},
"Tasks": [
{
"Name": "describeInstances",
"Action": "ACS::ExecuteAPI",
"Description": {
"en": "Queries the ECS instance id by specifying instance name",
"zh-cn": "根据实例名称获取实例ID"
},
"Properties": {
"Service": "ECS",
"API": "DescribeInstances",
"Parameters": {
"RegionId": "{{ regionId }}",
"InstanceName": "{{ instanceName }}"
}
},
"Outputs": {
"instanceIds": {
"Type": "List",
"ValueSelector": "Instances.Instance[].InstanceId"
}
}
}
],
"Outputs": {
"instanceIds": {
"Type": "List",
"Value": "{{ describeInstances.instanceIds }}"
}
}
}