tencentcloud-sdk-nodejs-as 4.0.431 → 4.0.432
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/package.json +1 -1
- package/src/services/as/index.ts +4 -7
- package/src/services/as/v20180419/as_client.ts +616 -470
- package/src/services/as/v20180419/as_models.ts +2455 -2594
- package/src/services/as/v20180419/index.ts +3 -3
- package/tencentcloud/services/as/v20180419/as_client.d.ts +172 -172
- package/tencentcloud/services/as/v20180419/as_client.js +172 -172
- package/tencentcloud/services/as/v20180419/as_models.d.ts +1463 -1463
- package/tencentcloud/services/as/v20180419/index.js +1 -1
|
@@ -17,146 +17,145 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
19
|
import {
|
|
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
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
20
|
+
DisableAutoScalingGroupResponse,
|
|
21
|
+
ModifyLaunchConfigurationAttributesRequest,
|
|
22
|
+
DisableAutoScalingGroupRequest,
|
|
23
|
+
ModifyAutoScalingGroupRequest,
|
|
24
|
+
ScaleOutInstancesRequest,
|
|
25
|
+
AutoScalingNotification,
|
|
26
|
+
ModifyScheduledActionRequest,
|
|
27
|
+
DescribeAutoScalingGroupsRequest,
|
|
28
|
+
LaunchConfiguration,
|
|
29
|
+
DescribeAccountLimitsResponse,
|
|
30
|
+
CreateLaunchConfigurationResponse,
|
|
31
|
+
Advice,
|
|
32
|
+
CreateLifecycleHookResponse,
|
|
33
|
+
ClearLaunchConfigurationAttributesResponse,
|
|
34
|
+
DescribeAutoScalingGroupsResponse,
|
|
35
|
+
CreateScheduledActionRequest,
|
|
36
|
+
SystemDisk,
|
|
37
|
+
SpotMarketOptions,
|
|
38
|
+
StopAutoScalingInstancesResponse,
|
|
39
|
+
DescribeScalingPoliciesRequest,
|
|
40
|
+
InstanceNameSettings,
|
|
41
|
+
DetailedStatusMessage,
|
|
42
|
+
ModifyScheduledActionResponse,
|
|
43
|
+
AttachLoadBalancersResponse,
|
|
44
|
+
ExecuteScalingPolicyResponse,
|
|
45
|
+
DeleteAutoScalingGroupRequest,
|
|
46
|
+
SetInstancesProtectionResponse,
|
|
47
|
+
StartAutoScalingInstancesResponse,
|
|
48
|
+
CompleteLifecycleActionRequest,
|
|
49
|
+
CreateScalingPolicyResponse,
|
|
50
|
+
CreateNotificationConfigurationResponse,
|
|
51
|
+
DescribeLaunchConfigurationsResponse,
|
|
52
|
+
RemoveInstancesRequest,
|
|
53
|
+
DeleteScalingPolicyResponse,
|
|
54
|
+
Tag,
|
|
55
|
+
DetachLoadBalancersRequest,
|
|
56
|
+
DescribeAutoScalingInstancesRequest,
|
|
57
|
+
ModifyLoadBalancersRequest,
|
|
58
|
+
RemoveInstancesResponse,
|
|
59
|
+
ModifyScalingPolicyResponse,
|
|
60
|
+
SetInstancesProtectionRequest,
|
|
61
|
+
DeleteNotificationConfigurationResponse,
|
|
62
|
+
DetachInstancesResponse,
|
|
63
|
+
ModifyLaunchConfigurationAttributesResponse,
|
|
64
|
+
CreateLaunchConfigurationRequest,
|
|
65
|
+
AutoScalingGroup,
|
|
66
|
+
AttachInstancesResponse,
|
|
67
|
+
DescribeAutoScalingGroupLastActivitiesResponse,
|
|
68
|
+
DescribeAccountLimitsRequest,
|
|
69
|
+
UpgradeLifecycleHookRequest,
|
|
70
|
+
DetachLoadBalancersResponse,
|
|
71
|
+
ScalingPolicy,
|
|
72
|
+
DescribeAutoScalingGroupLastActivitiesRequest,
|
|
73
|
+
HostNameSettings,
|
|
74
|
+
ModifyLoadBalancersResponse,
|
|
75
|
+
CreateNotificationConfigurationRequest,
|
|
76
|
+
DescribeScheduledActionsResponse,
|
|
77
|
+
DeleteLifecycleHookRequest,
|
|
78
|
+
ModifyLoadBalancerTargetAttributesResponse,
|
|
79
|
+
ModifyAutoScalingGroupResponse,
|
|
80
|
+
DeleteLaunchConfigurationRequest,
|
|
81
|
+
InvocationResult,
|
|
82
|
+
ModifyScalingPolicyRequest,
|
|
83
|
+
InstanceMarketOptionsRequest,
|
|
84
|
+
UpgradeLifecycleHookResponse,
|
|
85
|
+
InstanceTag,
|
|
86
|
+
ModifyLifecycleHookResponse,
|
|
87
|
+
LifecycleCommand,
|
|
88
|
+
DescribeAutoScalingAdvicesResponse,
|
|
89
|
+
CreateAutoScalingGroupRequest,
|
|
90
|
+
DeleteScheduledActionResponse,
|
|
91
|
+
UpgradeLaunchConfigurationRequest,
|
|
92
|
+
DescribeAutoScalingActivitiesResponse,
|
|
93
|
+
DescribeNotificationConfigurationsResponse,
|
|
94
|
+
DataDisk,
|
|
95
|
+
DeleteScalingPolicyRequest,
|
|
96
|
+
LoginSettings,
|
|
97
|
+
CreateAutoScalingGroupFromInstanceResponse,
|
|
98
|
+
DetachInstancesRequest,
|
|
99
|
+
Instance,
|
|
100
|
+
DescribeAutoScalingInstancesResponse,
|
|
101
|
+
EnhancedService,
|
|
102
|
+
DeleteLaunchConfigurationResponse,
|
|
103
|
+
DescribeScheduledActionsRequest,
|
|
104
|
+
RunSecurityServiceEnabled,
|
|
105
|
+
DeleteScheduledActionRequest,
|
|
106
|
+
DescribeAutoScalingActivitiesRequest,
|
|
107
|
+
ModifyDesiredCapacityRequest,
|
|
108
|
+
CreateScheduledActionResponse,
|
|
109
|
+
CreateLifecycleHookRequest,
|
|
110
|
+
ScheduledAction,
|
|
111
|
+
ModifyLifecycleHookRequest,
|
|
112
|
+
CompleteLifecycleActionResponse,
|
|
113
|
+
ScaleOutInstancesResponse,
|
|
114
|
+
Filter,
|
|
115
|
+
DescribeLifecycleHooksRequest,
|
|
116
|
+
ServiceSettings,
|
|
117
|
+
CreateAutoScalingGroupResponse,
|
|
118
|
+
TargetAttribute,
|
|
119
|
+
ModifyNotificationConfigurationResponse,
|
|
120
|
+
LimitedLoginSettings,
|
|
121
|
+
DescribeLifecycleHooksResponse,
|
|
122
|
+
CreateScalingPolicyRequest,
|
|
123
|
+
ScaleInInstancesResponse,
|
|
124
|
+
DescribeAutoScalingAdvicesRequest,
|
|
125
|
+
DeleteNotificationConfigurationRequest,
|
|
126
|
+
DescribeLaunchConfigurationsRequest,
|
|
127
|
+
NotificationTarget,
|
|
128
|
+
ModifyLoadBalancerTargetAttributesRequest,
|
|
129
|
+
DeleteAutoScalingGroupResponse,
|
|
130
|
+
LifecycleActionResultInfo,
|
|
131
|
+
AutoScalingGroupAbstract,
|
|
132
|
+
EnableAutoScalingGroupRequest,
|
|
133
|
+
MetricAlarm,
|
|
134
|
+
DescribeNotificationConfigurationsRequest,
|
|
135
|
+
ScaleInInstancesRequest,
|
|
136
|
+
LifecycleHook,
|
|
137
|
+
ForwardLoadBalancer,
|
|
138
|
+
ClearLaunchConfigurationAttributesRequest,
|
|
139
|
+
ForwardLoadBalancerIdentification,
|
|
140
|
+
AutoScalingAdvice,
|
|
141
|
+
StartAutoScalingInstancesRequest,
|
|
142
|
+
AttachInstancesRequest,
|
|
143
|
+
AttachLoadBalancersRequest,
|
|
144
|
+
SpotMixedAllocationPolicy,
|
|
145
|
+
DescribeScalingPoliciesResponse,
|
|
146
|
+
Activity,
|
|
147
|
+
ModifyDesiredCapacityResponse,
|
|
148
|
+
StopAutoScalingInstancesRequest,
|
|
149
|
+
RunMonitorServiceEnabled,
|
|
150
|
+
ModifyNotificationConfigurationRequest,
|
|
151
|
+
ActivtyRelatedInstance,
|
|
152
|
+
CreateAutoScalingGroupFromInstanceRequest,
|
|
153
|
+
InternetAccessible,
|
|
154
|
+
EnableAutoScalingGroupResponse,
|
|
155
|
+
UpgradeLaunchConfigurationResponse,
|
|
156
|
+
InstanceChargePrepaid,
|
|
157
|
+
DeleteLifecycleHookResponse,
|
|
158
|
+
ExecuteScalingPolicyRequest,
|
|
160
159
|
} from "./as_models"
|
|
161
160
|
|
|
162
161
|
/**
|
|
@@ -164,251 +163,334 @@ import {
|
|
|
164
163
|
* @class
|
|
165
164
|
*/
|
|
166
165
|
export class Client extends TencentCloudCommon.AbstractClient {
|
|
166
|
+
constructor(clientConfig: TencentCloudCommon.ClientConfig) {
|
|
167
|
+
super("as.tencentcloudapi.com", "2018-04-19", clientConfig)
|
|
168
|
+
}
|
|
167
169
|
|
|
168
|
-
|
|
169
|
-
super("as.tencentcloudapi.com", "2018-04-19", clientConfig);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
170
|
+
/**
|
|
173
171
|
* 本接口(ExecuteScalingPolicy)用于执行伸缩策略。
|
|
174
172
|
|
|
175
173
|
* 可以根据伸缩策略ID执行伸缩策略。
|
|
176
174
|
* 伸缩策略所属伸缩组处于伸缩活动时,会拒绝执行伸缩策略。
|
|
177
175
|
*/
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
176
|
+
async ExecuteScalingPolicy(
|
|
177
|
+
req: ExecuteScalingPolicyRequest,
|
|
178
|
+
cb?: (error: string, rep: ExecuteScalingPolicyResponse) => void
|
|
179
|
+
): Promise<ExecuteScalingPolicyResponse> {
|
|
180
|
+
return this.request("ExecuteScalingPolicy", req, cb)
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* 本接口(CreateAutoScalingGroup)用于创建伸缩组
|
|
185
|
+
*/
|
|
186
|
+
async CreateAutoScalingGroup(
|
|
187
|
+
req: CreateAutoScalingGroupRequest,
|
|
188
|
+
cb?: (error: string, rep: CreateAutoScalingGroupResponse) => void
|
|
189
|
+
): Promise<CreateAutoScalingGroupResponse> {
|
|
190
|
+
return this.request("CreateAutoScalingGroup", req, cb)
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* 本接口(ClearLaunchConfigurationAttributes)用于将启动配置内的特定属性完全清空。
|
|
195
|
+
*/
|
|
196
|
+
async ClearLaunchConfigurationAttributes(
|
|
197
|
+
req: ClearLaunchConfigurationAttributesRequest,
|
|
198
|
+
cb?: (error: string, rep: ClearLaunchConfigurationAttributesResponse) => void
|
|
199
|
+
): Promise<ClearLaunchConfigurationAttributesResponse> {
|
|
200
|
+
return this.request("ClearLaunchConfigurationAttributes", req, cb)
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* 本接口(ModifyScalingPolicy)用于修改告警触发策略。
|
|
205
|
+
*/
|
|
206
|
+
async ModifyScalingPolicy(
|
|
207
|
+
req: ModifyScalingPolicyRequest,
|
|
208
|
+
cb?: (error: string, rep: ModifyScalingPolicyResponse) => void
|
|
209
|
+
): Promise<ModifyScalingPolicyResponse> {
|
|
210
|
+
return this.request("ModifyScalingPolicy", req, cb)
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* 本接口(ModifyLoadBalancerTargetAttributes)用于修改伸缩组内负载均衡器的目标规则属性。
|
|
215
|
+
*/
|
|
216
|
+
async ModifyLoadBalancerTargetAttributes(
|
|
217
|
+
req: ModifyLoadBalancerTargetAttributesRequest,
|
|
218
|
+
cb?: (error: string, rep: ModifyLoadBalancerTargetAttributesResponse) => void
|
|
219
|
+
): Promise<ModifyLoadBalancerTargetAttributesResponse> {
|
|
220
|
+
return this.request("ModifyLoadBalancerTargetAttributes", req, cb)
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
211
224
|
* 本接口 (DescribeNotificationConfigurations) 用于查询一个或多个通知的详细信息。
|
|
212
225
|
|
|
213
226
|
可以根据通知ID、伸缩组ID等信息来查询通知的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
214
227
|
如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的通知。
|
|
215
228
|
*/
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
229
|
+
async DescribeNotificationConfigurations(
|
|
230
|
+
req: DescribeNotificationConfigurationsRequest,
|
|
231
|
+
cb?: (error: string, rep: DescribeNotificationConfigurationsResponse) => void
|
|
232
|
+
): Promise<DescribeNotificationConfigurationsResponse> {
|
|
233
|
+
return this.request("DescribeNotificationConfigurations", req, cb)
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* 本接口(DeleteAutoScalingGroup)用于删除指定伸缩组,删除前提是伸缩组内无实例且当前未在执行伸缩活动。
|
|
238
|
+
*/
|
|
239
|
+
async DeleteAutoScalingGroup(
|
|
240
|
+
req: DeleteAutoScalingGroupRequest,
|
|
241
|
+
cb?: (error: string, rep: DeleteAutoScalingGroupResponse) => void
|
|
242
|
+
): Promise<DeleteAutoScalingGroupResponse> {
|
|
243
|
+
return this.request("DeleteAutoScalingGroup", req, cb)
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* 为伸缩组指定数量扩容实例,返回扩容活动的 ActivityId。
|
|
248
|
+
* 伸缩组需要未处于活动中
|
|
249
|
+
* 伸缩组处于停用状态时,该接口也会生效,可参考[停用伸缩组](https://cloud.tencent.com/document/api/377/20435)文档查看伸缩组停用状态的影响范围
|
|
250
|
+
* 接口会增加期望实例数,新的期望实例数需要小于等于最大实例数
|
|
251
|
+
* 扩容如果失败或者部分成功,最后期望实例数只会增加实际成功的实例数量
|
|
252
|
+
*/
|
|
253
|
+
async ScaleOutInstances(
|
|
254
|
+
req: ScaleOutInstancesRequest,
|
|
255
|
+
cb?: (error: string, rep: ScaleOutInstancesResponse) => void
|
|
256
|
+
): Promise<ScaleOutInstancesResponse> {
|
|
257
|
+
return this.request("ScaleOutInstances", req, cb)
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* 本接口(StartAutoScalingInstances)用于开启伸缩组内 CVM 实例。
|
|
262
|
+
* 开机成功,实例转为`IN_SERVICE`状态后,会增加期望实例数,期望实例数不可超过设置的最大值
|
|
263
|
+
* 本接口支持批量操作,每次请求开机实例的上限为100
|
|
264
|
+
*/
|
|
265
|
+
async StartAutoScalingInstances(
|
|
266
|
+
req: StartAutoScalingInstancesRequest,
|
|
267
|
+
cb?: (error: string, rep: StartAutoScalingInstancesResponse) => void
|
|
268
|
+
): Promise<StartAutoScalingInstancesResponse> {
|
|
269
|
+
return this.request("StartAutoScalingInstances", req, cb)
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
248
273
|
* 本接口(UpgradeLaunchConfiguration)用于升级启动配置。
|
|
249
274
|
|
|
250
275
|
* 本接口用于升级启动配置,采用“完全覆盖”风格,无论之前参数如何,统一按照接口参数设置为新的配置。对于非必填字段,不填写则按照默认值赋值。
|
|
251
276
|
* 升级修改启动配置后,已经使用该启动配置扩容的存量实例不会发生变更,此后使用该启动配置的新增实例会按照新的配置进行扩容。
|
|
252
277
|
*/
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
278
|
+
async UpgradeLaunchConfiguration(
|
|
279
|
+
req: UpgradeLaunchConfigurationRequest,
|
|
280
|
+
cb?: (error: string, rep: UpgradeLaunchConfigurationResponse) => void
|
|
281
|
+
): Promise<UpgradeLaunchConfigurationResponse> {
|
|
282
|
+
return this.request("UpgradeLaunchConfiguration", req, cb)
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* 此接口用于修改生命周期挂钩。
|
|
287
|
+
*/
|
|
288
|
+
async ModifyLifecycleHook(
|
|
289
|
+
req: ModifyLifecycleHookRequest,
|
|
290
|
+
cb?: (error: string, rep: ModifyLifecycleHookResponse) => void
|
|
291
|
+
): Promise<ModifyLifecycleHookResponse> {
|
|
292
|
+
return this.request("ModifyLifecycleHook", req, cb)
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* 本接口(DetachLoadBalancers)用于从伸缩组移出负载均衡器,本接口不会销毁负载均衡器。
|
|
297
|
+
*/
|
|
298
|
+
async DetachLoadBalancers(
|
|
299
|
+
req: DetachLoadBalancersRequest,
|
|
300
|
+
cb?: (error: string, rep: DetachLoadBalancersResponse) => void
|
|
301
|
+
): Promise<DetachLoadBalancersResponse> {
|
|
302
|
+
return this.request("DetachLoadBalancers", req, cb)
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
272
306
|
* 本接口(AttachInstances)用于将 CVM 实例添加到伸缩组。
|
|
273
307
|
* 仅支持添加处于`RUNNING`(运行中)或`STOPPED`(已关机)状态的 CVM 实例
|
|
274
308
|
* 添加的 CVM 实例需要和伸缩组 VPC 网络一致
|
|
275
309
|
|
|
276
310
|
*/
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
*
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
311
|
+
async AttachInstances(
|
|
312
|
+
req: AttachInstancesRequest,
|
|
313
|
+
cb?: (error: string, rep: AttachInstancesResponse) => void
|
|
314
|
+
): Promise<AttachInstancesResponse> {
|
|
315
|
+
return this.request("AttachInstances", req, cb)
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* 本接口(DescribeScalingPolicies)用于查询告警触发策略。
|
|
320
|
+
*/
|
|
321
|
+
async DescribeScalingPolicies(
|
|
322
|
+
req: DescribeScalingPoliciesRequest,
|
|
323
|
+
cb?: (error: string, rep: DescribeScalingPoliciesResponse) => void
|
|
324
|
+
): Promise<DescribeScalingPoliciesResponse> {
|
|
325
|
+
return this.request("DescribeScalingPolicies", req, cb)
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* 本接口(DeleteScheduledAction)用于删除特定的定时任务。
|
|
330
|
+
*/
|
|
331
|
+
async DeleteScheduledAction(
|
|
332
|
+
req: DeleteScheduledActionRequest,
|
|
333
|
+
cb?: (error: string, rep: DeleteScheduledActionResponse) => void
|
|
334
|
+
): Promise<DeleteScheduledActionResponse> {
|
|
335
|
+
return this.request("DeleteScheduledAction", req, cb)
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* 此接口(AttachLoadBalancers)用于将负载均衡器添加到伸缩组。
|
|
340
|
+
*/
|
|
341
|
+
async AttachLoadBalancers(
|
|
342
|
+
req: AttachLoadBalancersRequest,
|
|
343
|
+
cb?: (error: string, rep: AttachLoadBalancersResponse) => void
|
|
344
|
+
): Promise<AttachLoadBalancersResponse> {
|
|
345
|
+
return this.request("AttachLoadBalancers", req, cb)
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* 本接口(DetachInstances)用于从伸缩组移出 CVM 实例,本接口不会销毁实例。
|
|
350
|
+
* 如果移出指定实例后,伸缩组内处于`IN_SERVICE`状态的实例数量小于伸缩组最小值,接口将报错
|
|
351
|
+
* 如果伸缩组处于`DISABLED`状态,移出操作不校验`IN_SERVICE`实例数量和最小值的关系
|
|
352
|
+
* 对于伸缩组配置的 CLB,实例在离开伸缩组时,AS 会进行解挂载动作
|
|
353
|
+
*/
|
|
354
|
+
async DetachInstances(
|
|
355
|
+
req: DetachInstancesRequest,
|
|
356
|
+
cb?: (error: string, rep: DetachInstancesResponse) => void
|
|
357
|
+
): Promise<DetachInstancesResponse> {
|
|
358
|
+
return this.request("DetachInstances", req, cb)
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* 为伸缩组指定数量缩容实例,返回缩容活动的 ActivityId。
|
|
363
|
+
* 伸缩组需要未处于活动中
|
|
364
|
+
* 伸缩组处于停用状态时,该接口也会生效,可参考[停用伸缩组](https://cloud.tencent.com/document/api/377/20435)文档查看伸缩组停用状态的影响范围
|
|
365
|
+
* 根据伸缩组的`TerminationPolicies`策略,选择被缩容的实例,可参考[缩容处理](https://cloud.tencent.com/document/product/377/8563)
|
|
366
|
+
* 接口只会选择`IN_SERVICE`实例缩容,如果需要缩容其他状态实例,可以使用 [DetachInstances](https://cloud.tencent.com/document/api/377/20436) 或 [RemoveInstances](https://cloud.tencent.com/document/api/377/20431) 接口
|
|
367
|
+
* 接口会减少期望实例数,新的期望实例数需要大于等于最小实例数
|
|
368
|
+
* 缩容如果失败或者部分成功,最后期望实例数只会扣减实际缩容成功的实例数量
|
|
369
|
+
*/
|
|
370
|
+
async ScaleInInstances(
|
|
371
|
+
req: ScaleInInstancesRequest,
|
|
372
|
+
cb?: (error: string, rep: ScaleInInstancesResponse) => void
|
|
373
|
+
): Promise<ScaleInInstancesResponse> {
|
|
374
|
+
return this.request("ScaleInInstances", req, cb)
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* 本接口(CreateScheduledAction)用于创建定时任务。
|
|
379
|
+
*/
|
|
380
|
+
async CreateScheduledAction(
|
|
381
|
+
req: CreateScheduledActionRequest,
|
|
382
|
+
cb?: (error: string, rep: CreateScheduledActionResponse) => void
|
|
383
|
+
): Promise<CreateScheduledActionResponse> {
|
|
384
|
+
return this.request("CreateScheduledAction", req, cb)
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* 此接口用于查询伸缩组配置建议。
|
|
389
|
+
*/
|
|
390
|
+
async DescribeAutoScalingAdvices(
|
|
391
|
+
req: DescribeAutoScalingAdvicesRequest,
|
|
392
|
+
cb?: (error: string, rep: DescribeAutoScalingAdvicesResponse) => void
|
|
393
|
+
): Promise<DescribeAutoScalingAdvicesResponse> {
|
|
394
|
+
return this.request("DescribeAutoScalingAdvices", req, cb)
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* 本接口(RemoveInstances)用于从伸缩组删除 CVM 实例。根据当前的产品逻辑,如果实例由弹性伸缩自动创建,则实例会被销毁;如果实例系创建后加入伸缩组的,则会从伸缩组中移除,保留实例。
|
|
399
|
+
* 如果删除指定实例后,伸缩组内处于`IN_SERVICE`状态的实例数量小于伸缩组最小值,接口将报错
|
|
400
|
+
* 如果伸缩组处于`DISABLED`状态,删除操作不校验`IN_SERVICE`实例数量和最小值的关系
|
|
401
|
+
* 对于伸缩组配置的 CLB,实例在离开伸缩组时,AS 会进行解挂载动作
|
|
402
|
+
*/
|
|
403
|
+
async RemoveInstances(
|
|
404
|
+
req: RemoveInstancesRequest,
|
|
405
|
+
cb?: (error: string, rep: RemoveInstancesResponse) => void
|
|
406
|
+
): Promise<RemoveInstancesResponse> {
|
|
407
|
+
return this.request("RemoveInstances", req, cb)
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* 本接口(DeleteScalingPolicy)用于删除告警触发策略。
|
|
412
|
+
*/
|
|
413
|
+
async DeleteScalingPolicy(
|
|
414
|
+
req: DeleteScalingPolicyRequest,
|
|
415
|
+
cb?: (error: string, rep: DeleteScalingPolicyResponse) => void
|
|
416
|
+
): Promise<DeleteScalingPolicyResponse> {
|
|
417
|
+
return this.request("DeleteScalingPolicy", req, cb)
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
357
421
|
* 本接口(CompleteLifecycleAction)用于完成生命周期动作。
|
|
358
422
|
|
|
359
423
|
* 用户通过调用本接口,指定一个具体的生命周期挂钩的结果(“CONITNUE”或者“ABANDON”)。如果一直不调用本接口,则生命周期挂钩会在超时后按照“DefaultResult”进行处理。
|
|
360
424
|
|
|
361
425
|
*/
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
426
|
+
async CompleteLifecycleAction(
|
|
427
|
+
req: CompleteLifecycleActionRequest,
|
|
428
|
+
cb?: (error: string, rep: CompleteLifecycleActionResponse) => void
|
|
429
|
+
): Promise<CompleteLifecycleActionResponse> {
|
|
430
|
+
return this.request("CompleteLifecycleAction", req, cb)
|
|
431
|
+
}
|
|
365
432
|
|
|
366
|
-
|
|
433
|
+
/**
|
|
367
434
|
* 本接口(ModifyLoadBalancers)用于修改伸缩组的负载均衡器。
|
|
368
435
|
|
|
369
436
|
* 本接口用于为伸缩组指定新的负载均衡器配置,采用`完全覆盖`风格,无论之前配置如何,`统一按照接口参数配置为新的负载均衡器`。
|
|
370
437
|
* 如果要为伸缩组清空负载均衡器,则在调用本接口时仅指定伸缩组ID,不指定具体负载均衡器。
|
|
371
438
|
* 本接口会立即修改伸缩组的负载均衡器,并生成一个伸缩活动,异步修改存量实例的负载均衡器。
|
|
372
439
|
*/
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
440
|
+
async ModifyLoadBalancers(
|
|
441
|
+
req: ModifyLoadBalancersRequest,
|
|
442
|
+
cb?: (error: string, rep: ModifyLoadBalancersResponse) => void
|
|
443
|
+
): Promise<ModifyLoadBalancersResponse> {
|
|
444
|
+
return this.request("ModifyLoadBalancers", req, cb)
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* 本接口(ModifyDesiredCapacity)用于修改指定伸缩组的期望实例数
|
|
449
|
+
*/
|
|
450
|
+
async ModifyDesiredCapacity(
|
|
451
|
+
req: ModifyDesiredCapacityRequest,
|
|
452
|
+
cb?: (error: string, rep: ModifyDesiredCapacityResponse) => void
|
|
453
|
+
): Promise<ModifyDesiredCapacityResponse> {
|
|
454
|
+
return this.request("ModifyDesiredCapacity", req, cb)
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/**
|
|
385
458
|
* 本接口(SetInstancesProtection)用于设置实例保护。
|
|
386
459
|
实例设置保护之后,当发生不健康替换、报警策略、期望值变更等触发缩容时,将不对此实例缩容操作。
|
|
387
460
|
*/
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
461
|
+
async SetInstancesProtection(
|
|
462
|
+
req: SetInstancesProtectionRequest,
|
|
463
|
+
cb?: (error: string, rep: SetInstancesProtectionResponse) => void
|
|
464
|
+
): Promise<SetInstancesProtectionResponse> {
|
|
465
|
+
return this.request("SetInstancesProtection", req, cb)
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* 本接口(ModifyNotificationConfiguration)用于修改通知。
|
|
470
|
+
* 通知的接收端类型不支持修改。
|
|
471
|
+
*/
|
|
472
|
+
async ModifyNotificationConfiguration(
|
|
473
|
+
req: ModifyNotificationConfigurationRequest,
|
|
474
|
+
cb?: (error: string, rep: ModifyNotificationConfigurationResponse) => void
|
|
475
|
+
): Promise<ModifyNotificationConfigurationResponse> {
|
|
476
|
+
return this.request("ModifyNotificationConfiguration", req, cb)
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* 本接口(StopAutoScalingInstances)用于关闭伸缩组内 CVM 实例。
|
|
481
|
+
* 关机方式采用`SOFT_FIRST`方式,表示在正常关闭失败后进行强制关闭
|
|
482
|
+
* 关闭`IN_SERVICE`状态的实例,会减少期望实例数,期望实例数不可低于设置的最小值
|
|
483
|
+
* 使用`STOP_CHARGING`选项关机,待关机的实例需要满足[关机不收费条件](https://cloud.tencent.com/document/product/213/19918)
|
|
484
|
+
* 本接口支持批量操作,每次请求关机实例的上限为100
|
|
485
|
+
*/
|
|
486
|
+
async StopAutoScalingInstances(
|
|
487
|
+
req: StopAutoScalingInstancesRequest,
|
|
488
|
+
cb?: (error: string, rep: StopAutoScalingInstancesResponse) => void
|
|
489
|
+
): Promise<StopAutoScalingInstancesResponse> {
|
|
490
|
+
return this.request("StopAutoScalingInstances", req, cb)
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/**
|
|
412
494
|
* 本接口(CreateLaunchConfiguration)用于创建新的启动配置。
|
|
413
495
|
|
|
414
496
|
* 启动配置,可以通过 `ModifyLaunchConfigurationAttributes` 修改少量字段。如需使用新的启动配置,建议重新创建启动配置。
|
|
@@ -416,18 +498,24 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
416
498
|
* 每个项目最多只能创建20个启动配置,详见[使用限制](https://cloud.tencent.com/document/product/377/3120)。
|
|
417
499
|
|
|
418
500
|
*/
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
501
|
+
async CreateLaunchConfiguration(
|
|
502
|
+
req: CreateLaunchConfigurationRequest,
|
|
503
|
+
cb?: (error: string, rep: CreateLaunchConfigurationResponse) => void
|
|
504
|
+
): Promise<CreateLaunchConfigurationResponse> {
|
|
505
|
+
return this.request("CreateLaunchConfiguration", req, cb)
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* 本接口(ModifyAutoScalingGroup)用于修改伸缩组。
|
|
510
|
+
*/
|
|
511
|
+
async ModifyAutoScalingGroup(
|
|
512
|
+
req: ModifyAutoScalingGroupRequest,
|
|
513
|
+
cb?: (error: string, rep: ModifyAutoScalingGroupResponse) => void
|
|
514
|
+
): Promise<ModifyAutoScalingGroupResponse> {
|
|
515
|
+
return this.request("ModifyAutoScalingGroup", req, cb)
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/**
|
|
431
519
|
* 本接口(CreateNotificationConfiguration)用于创建通知。
|
|
432
520
|
通知到 CMQ 主题或队列时,消息内容如下:
|
|
433
521
|
```
|
|
@@ -457,30 +545,39 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
457
545
|
}
|
|
458
546
|
```
|
|
459
547
|
*/
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
548
|
+
async CreateNotificationConfiguration(
|
|
549
|
+
req: CreateNotificationConfigurationRequest,
|
|
550
|
+
cb?: (error: string, rep: CreateNotificationConfigurationResponse) => void
|
|
551
|
+
): Promise<CreateNotificationConfigurationResponse> {
|
|
552
|
+
return this.request("CreateNotificationConfiguration", req, cb)
|
|
553
|
+
}
|
|
463
554
|
|
|
464
|
-
|
|
555
|
+
/**
|
|
465
556
|
* 本接口(DescribeAutoScalingInstances)用于查询弹性伸缩关联实例的信息。
|
|
466
557
|
|
|
467
558
|
* 可以根据实例ID、伸缩组ID等信息来查询实例的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
468
559
|
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的实例。
|
|
469
560
|
*/
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
561
|
+
async DescribeAutoScalingInstances(
|
|
562
|
+
req: DescribeAutoScalingInstancesRequest,
|
|
563
|
+
cb?: (error: string, rep: DescribeAutoScalingInstancesResponse) => void
|
|
564
|
+
): Promise<DescribeAutoScalingInstancesResponse> {
|
|
565
|
+
return this.request("DescribeAutoScalingInstances", req, cb)
|
|
566
|
+
}
|
|
473
567
|
|
|
474
|
-
|
|
568
|
+
/**
|
|
475
569
|
* 本接口(CreateAutoScalingGroupFromInstance)用于根据实例创建启动配置及伸缩组。
|
|
476
570
|
|
|
477
571
|
说明:根据按包年包月计费的实例所创建的伸缩组,其扩容的实例为按量计费实例。
|
|
478
572
|
*/
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
573
|
+
async CreateAutoScalingGroupFromInstance(
|
|
574
|
+
req: CreateAutoScalingGroupFromInstanceRequest,
|
|
575
|
+
cb?: (error: string, rep: CreateAutoScalingGroupFromInstanceResponse) => void
|
|
576
|
+
): Promise<CreateAutoScalingGroupFromInstanceResponse> {
|
|
577
|
+
return this.request("CreateAutoScalingGroupFromInstance", req, cb)
|
|
578
|
+
}
|
|
482
579
|
|
|
483
|
-
|
|
580
|
+
/**
|
|
484
581
|
* 本接口(CreateLifecycleHook)用于创建生命周期挂钩。
|
|
485
582
|
|
|
486
583
|
* 您可以为生命周期挂钩配置消息通知,弹性伸缩会通知您的CMQ消息队列,通知内容形如:
|
|
@@ -501,21 +598,27 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
501
598
|
}
|
|
502
599
|
```
|
|
503
600
|
*/
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
601
|
+
async CreateLifecycleHook(
|
|
602
|
+
req: CreateLifecycleHookRequest,
|
|
603
|
+
cb?: (error: string, rep: CreateLifecycleHookResponse) => void
|
|
604
|
+
): Promise<CreateLifecycleHookResponse> {
|
|
605
|
+
return this.request("CreateLifecycleHook", req, cb)
|
|
606
|
+
}
|
|
507
607
|
|
|
508
|
-
|
|
608
|
+
/**
|
|
509
609
|
* 本接口(UpgradeLifecycleHook)用于升级生命周期挂钩。
|
|
510
610
|
|
|
511
611
|
* 本接口用于升级生命周期挂钩,采用“完全覆盖”风格,无论之前参数如何,统一按照接口参数设置为新的配置。对于非必填字段,不填写则按照默认值赋值。
|
|
512
612
|
|
|
513
613
|
*/
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
614
|
+
async UpgradeLifecycleHook(
|
|
615
|
+
req: UpgradeLifecycleHookRequest,
|
|
616
|
+
cb?: (error: string, rep: UpgradeLifecycleHookResponse) => void
|
|
617
|
+
): Promise<UpgradeLifecycleHookResponse> {
|
|
618
|
+
return this.request("UpgradeLifecycleHook", req, cb)
|
|
619
|
+
}
|
|
517
620
|
|
|
518
|
-
|
|
621
|
+
/**
|
|
519
622
|
* 本接口(DisableAutoScalingGroup)用于停用指定伸缩组。
|
|
520
623
|
* 停用伸缩组后,自动触发的伸缩活动不再进行,包括:
|
|
521
624
|
- 告警策略触发的伸缩活动
|
|
@@ -531,125 +634,168 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
531
634
|
- 关闭伸缩组内 CVM 实例(StopAutoScalingInstances)
|
|
532
635
|
- 开启伸缩组内 CVM 实例(StartAutoScalingInstances)
|
|
533
636
|
*/
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
637
|
+
async DisableAutoScalingGroup(
|
|
638
|
+
req: DisableAutoScalingGroupRequest,
|
|
639
|
+
cb?: (error: string, rep: DisableAutoScalingGroupResponse) => void
|
|
640
|
+
): Promise<DisableAutoScalingGroupResponse> {
|
|
641
|
+
return this.request("DisableAutoScalingGroup", req, cb)
|
|
642
|
+
}
|
|
537
643
|
|
|
538
|
-
|
|
644
|
+
/**
|
|
539
645
|
* 本接口(DescribeLaunchConfigurations)用于查询启动配置的信息。
|
|
540
646
|
|
|
541
647
|
* 可以根据启动配置ID、启动配置名称等信息来查询启动配置的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
542
648
|
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的启动配置。
|
|
543
649
|
*/
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
650
|
+
async DescribeLaunchConfigurations(
|
|
651
|
+
req: DescribeLaunchConfigurationsRequest,
|
|
652
|
+
cb?: (error: string, rep: DescribeLaunchConfigurationsResponse) => void
|
|
653
|
+
): Promise<DescribeLaunchConfigurationsResponse> {
|
|
654
|
+
return this.request("DescribeLaunchConfigurations", req, cb)
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* 本接口(CreateScalingPolicy)用于创建告警触发策略。
|
|
659
|
+
*/
|
|
660
|
+
async CreateScalingPolicy(
|
|
661
|
+
req: CreateScalingPolicyRequest,
|
|
662
|
+
cb?: (error: string, rep: CreateScalingPolicyResponse) => void
|
|
663
|
+
): Promise<CreateScalingPolicyResponse> {
|
|
664
|
+
return this.request("CreateScalingPolicy", req, cb)
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/**
|
|
556
668
|
* 本接口(DeleteLaunchConfiguration)用于删除启动配置。
|
|
557
669
|
|
|
558
670
|
* 若启动配置在伸缩组中属于生效状态,则该启动配置不允许删除。
|
|
559
671
|
|
|
560
672
|
*/
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
673
|
+
async DeleteLaunchConfiguration(
|
|
674
|
+
req: DeleteLaunchConfigurationRequest,
|
|
675
|
+
cb?: (error: string, rep: DeleteLaunchConfigurationResponse) => void
|
|
676
|
+
): Promise<DeleteLaunchConfigurationResponse> {
|
|
677
|
+
return this.request("DeleteLaunchConfiguration", req, cb)
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* 本接口(DeleteLifecycleHook)用于删除生命周期挂钩。
|
|
682
|
+
*/
|
|
683
|
+
async DeleteLifecycleHook(
|
|
684
|
+
req: DeleteLifecycleHookRequest,
|
|
685
|
+
cb?: (error: string, rep: DeleteLifecycleHookResponse) => void
|
|
686
|
+
): Promise<DeleteLifecycleHookResponse> {
|
|
687
|
+
return this.request("DeleteLifecycleHook", req, cb)
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* 本接口(DescribeAutoScalingGroupLastActivities)用于查询伸缩组的最新一次伸缩活动记录。
|
|
692
|
+
*/
|
|
693
|
+
async DescribeAutoScalingGroupLastActivities(
|
|
694
|
+
req: DescribeAutoScalingGroupLastActivitiesRequest,
|
|
695
|
+
cb?: (error: string, rep: DescribeAutoScalingGroupLastActivitiesResponse) => void
|
|
696
|
+
): Promise<DescribeAutoScalingGroupLastActivitiesResponse> {
|
|
697
|
+
return this.request("DescribeAutoScalingGroupLastActivities", req, cb)
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/**
|
|
580
701
|
* 本接口(DescribeLifecycleHooks)用于查询生命周期挂钩信息。
|
|
581
702
|
|
|
582
703
|
* 可以根据伸缩组ID、生命周期挂钩ID或者生命周期挂钩名称等信息来查询生命周期挂钩的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
583
704
|
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的生命周期挂钩。
|
|
584
705
|
*/
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
706
|
+
async DescribeLifecycleHooks(
|
|
707
|
+
req: DescribeLifecycleHooksRequest,
|
|
708
|
+
cb?: (error: string, rep: DescribeLifecycleHooksResponse) => void
|
|
709
|
+
): Promise<DescribeLifecycleHooksResponse> {
|
|
710
|
+
return this.request("DescribeLifecycleHooks", req, cb)
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* 本接口(EnableAutoScalingGroup)用于启用指定伸缩组。
|
|
715
|
+
*/
|
|
716
|
+
async EnableAutoScalingGroup(
|
|
717
|
+
req: EnableAutoScalingGroupRequest,
|
|
718
|
+
cb?: (error: string, rep: EnableAutoScalingGroupResponse) => void
|
|
719
|
+
): Promise<EnableAutoScalingGroupResponse> {
|
|
720
|
+
return this.request("EnableAutoScalingGroup", req, cb)
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/**
|
|
597
724
|
* 本接口 (DescribeScheduledActions) 用于查询一个或多个定时任务的详细信息。
|
|
598
725
|
|
|
599
726
|
* 可以根据定时任务ID、定时任务名称或者伸缩组ID等信息来查询定时任务的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
600
727
|
* 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的定时任务。
|
|
601
728
|
*/
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
729
|
+
async DescribeScheduledActions(
|
|
730
|
+
req: DescribeScheduledActionsRequest,
|
|
731
|
+
cb?: (error: string, rep: DescribeScheduledActionsResponse) => void
|
|
732
|
+
): Promise<DescribeScheduledActionsResponse> {
|
|
733
|
+
return this.request("DescribeScheduledActions", req, cb)
|
|
734
|
+
}
|
|
605
735
|
|
|
606
|
-
|
|
736
|
+
/**
|
|
607
737
|
* 本接口(DescribeAutoScalingGroups)用于查询伸缩组信息。
|
|
608
738
|
|
|
609
739
|
* 可以根据伸缩组ID、伸缩组名称或者启动配置ID等信息来查询伸缩组的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
610
740
|
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的伸缩组。
|
|
611
741
|
*/
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
742
|
+
async DescribeAutoScalingGroups(
|
|
743
|
+
req: DescribeAutoScalingGroupsRequest,
|
|
744
|
+
cb?: (error: string, rep: DescribeAutoScalingGroupsResponse) => void
|
|
745
|
+
): Promise<DescribeAutoScalingGroupsResponse> {
|
|
746
|
+
return this.request("DescribeAutoScalingGroups", req, cb)
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* 本接口(ModifyScheduledAction)用于修改定时任务。
|
|
751
|
+
*/
|
|
752
|
+
async ModifyScheduledAction(
|
|
753
|
+
req: ModifyScheduledActionRequest,
|
|
754
|
+
cb?: (error: string, rep: ModifyScheduledActionResponse) => void
|
|
755
|
+
): Promise<ModifyScheduledActionResponse> {
|
|
756
|
+
return this.request("ModifyScheduledAction", req, cb)
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* 本接口(DescribeAutoScalingActivities)用于查询伸缩组的伸缩活动记录。
|
|
761
|
+
*/
|
|
762
|
+
async DescribeAutoScalingActivities(
|
|
763
|
+
req: DescribeAutoScalingActivitiesRequest,
|
|
764
|
+
cb?: (error: string, rep: DescribeAutoScalingActivitiesResponse) => void
|
|
765
|
+
): Promise<DescribeAutoScalingActivitiesResponse> {
|
|
766
|
+
return this.request("DescribeAutoScalingActivities", req, cb)
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* 本接口(DeleteNotificationConfiguration)用于删除特定的通知。
|
|
771
|
+
*/
|
|
772
|
+
async DeleteNotificationConfiguration(
|
|
773
|
+
req: DeleteNotificationConfigurationRequest,
|
|
774
|
+
cb?: (error: string, rep: DeleteNotificationConfigurationResponse) => void
|
|
775
|
+
): Promise<DeleteNotificationConfigurationResponse> {
|
|
776
|
+
return this.request("DeleteNotificationConfiguration", req, cb)
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* 本接口(DescribeAccountLimits)用于查询用户账户在弹性伸缩中的资源限制。
|
|
781
|
+
*/
|
|
782
|
+
async DescribeAccountLimits(
|
|
783
|
+
req?: DescribeAccountLimitsRequest,
|
|
784
|
+
cb?: (error: string, rep: DescribeAccountLimitsResponse) => void
|
|
785
|
+
): Promise<DescribeAccountLimitsResponse> {
|
|
786
|
+
return this.request("DescribeAccountLimits", req, cb)
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/**
|
|
645
790
|
* 本接口(ModifyLaunchConfigurationAttributes)用于修改启动配置部分属性。
|
|
646
791
|
|
|
647
792
|
* 修改启动配置后,已经使用该启动配置扩容的存量实例不会发生变更,此后使用该启动配置的新增实例会按照新的配置进行扩容。
|
|
648
793
|
* 本接口支持修改部分简单类型。
|
|
649
794
|
*/
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
795
|
+
async ModifyLaunchConfigurationAttributes(
|
|
796
|
+
req: ModifyLaunchConfigurationAttributesRequest,
|
|
797
|
+
cb?: (error: string, rep: ModifyLaunchConfigurationAttributesResponse) => void
|
|
798
|
+
): Promise<ModifyLaunchConfigurationAttributesResponse> {
|
|
799
|
+
return this.request("ModifyLaunchConfigurationAttributes", req, cb)
|
|
800
|
+
}
|
|
655
801
|
}
|