-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathACS::ECS::PurchaseReservedInstancesOffering.json
148 lines (148 loc) · 3.83 KB
/
ACS::ECS::PurchaseReservedInstancesOffering.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
{
"FormatVersion": "OOS-2019-06-01",
"Description": {
"name-en": "ACS::ECS::PurchaseReservedInstancesOffering",
"name-zh-cn": "购买预留实例券",
"en": "Purchases reserved instances",
"zh-cn": "购买预留实例券"
},
"Parameters": {
"regionId": {
"Type": "String",
"Description": {
"en": "The ID of region",
"zh-cn": "地域ID"
},
"AssociationProperty": "RegionId"
},
"scope": {
"Description": {
"en": "The scope of the reserved instance",
"zh-cn": "预留实例券的范围"
},
"Type": "String",
"AllowedValues": [
"Region",
"Zone"
],
"Default": "Region"
},
"zoneId": {
"Description": {
"en": "The zone ID of instance",
"zh-cn": "实例的可用区"
},
"Type": "String"
},
"instanceType": {
"Description": {
"en": "The instance type of reserved instance",
"zh-cn": "预留实例券的实例规格"
},
"Type": "String"
},
"instanceAmount": {
"Description": {
"en": "The number of pay-as-you-go instances of the same instance type that the reserved instance can match at the same time.",
"zh-cn": "预留实例券可以同时匹配同规格按量付费实例的数量"
},
"Type": "Number"
},
"description": {
"Description": {
"en": "The description of reserved instance",
"zh-cn": "预留实例券的描述"
},
"Type": "String"
},
"period": {
"Description": {
"en": "The term of the reserved instance",
"zh-cn": "购买预留实例券的时长"
},
"Type": "Number"
},
"periodUnit": {
"Description": {
"en": "The term unit of the reserved instance",
"zh-cn": "购买预留实例券的时长单位"
},
"Type": "String"
},
"platform": {
"Description": {
"en": "The platform of reserved instance",
"zh-cn": "实例使用的镜像的操作系统类型"
},
"Type": "String",
"AllowedValues": [
"Linux",
"Windows"
]
},
"offeringType": {
"Description": {
"en": "Payment Types for Reserved Instances",
"zh-cn": "预留实例券的付款类型"
},
"Type": "String",
"AllowedValues": [
"No Upfront",
"Partial Upfront",
"All Upfront"
],
"Default": "All Upfront"
},
"tags": {
"Label": {
"en": "ImageTags",
"zh-cn": "镜像标签"
},
"Type": "Json",
"AssociationProperty": "Tags",
"AssociationPropertyMetadata": {
"ShowSystem": false
},
"Default": []
}
},
"Tasks": [
{
"Name": "purchaseReservedInstance",
"Action": "ACS::ExecuteAPI",
"Description": {
"en": "Purchases reserved instances",
"zh-cn": "购买预留实例券"
},
"Properties": {
"Service": "ECS",
"API": "PurchaseReservedInstancesOffering",
"Parameters": {
"RegionId": "{{ regionId }}",
"ZoneId": "{{ zoneId }}",
"Scope": "{{ scope }}",
"InstanceType": "{{ instanceType }}",
"InstanceAmount": "{{ instanceAmount }}",
"Description": "{{ description }}",
"Platform": "{{ platform }}",
"Period": "{{ period }}",
"PeriodUnit": "{{ periodUnit }}",
"OfferingType": "{{ offeringType }}",
"Tags": "{{ tags }}"
}
},
"Outputs": {
"reservedInstanceId": {
"Type": "String",
"ValueSelector": "ReservedInstanceIdSets.ReservedInstanceId[]"
}
}
}
],
"Outputs": {
"reservedInstanceId": {
"Type": "String",
"Value": "{{ purchaseReservedInstance.reservedInstanceId }}"
}
}
}