-
Notifications
You must be signed in to change notification settings - Fork 17
/
ACS::ECS::DescribeInstancesByTag.json
68 lines (68 loc) · 1.63 KB
/
ACS::ECS::DescribeInstancesByTag.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::ECS::DescribeInstancesByTag",
"name-zh-cn": "通过指定标签查看ECS实例",
"en": "Views the ECS instances by specifying tag",
"zh-cn": "通过指定标签查看ECS实例"
},
"Parameters": {
"regionId": {
"Description": {
"en": "The ID of region",
"zh-cn": "地域ID"
},
"Type": "String",
"Default": "{{ ACS::RegionId }}"
},
"tagKey": {
"Description": {
"en": "The tag key for query ECS instances",
"zh-cn": "用于查询ECS实例的标记键"
},
"Type": "String"
},
"tagValue": {
"Description": {
"en": "The tag value for query ECS instances",
"zh-cn": "用于查询ECS实例的标值"
},
"Type": "String"
}
},
"Tasks": [
{
"Name": "describeInstances",
"Action": "ACS::ExecuteAPI",
"Description": {
"en": "Queries the ECS instances by specifying tag",
"zh-cn": "通过指定标签查看ECS实例"
},
"Properties": {
"Service": "ECS",
"API": "DescribeInstances",
"Parameters": {
"RegionId": "{{ regionId }}",
"Tags": [
{
"Key": "{{ tagKey }}",
"Value": "{{ tagValue }}"
}
]
}
},
"Outputs": {
"instanceIds": {
"Type": "List",
"ValueSelector": "Instances.Instance[].InstanceId"
}
}
}
],
"Outputs": {
"instanceIds": {
"Type": "List",
"Value": "{{ describeInstances.instanceIds }}"
}
}
}