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
|
@@ -7,11 +7,11 @@ import { DisableAutoScalingGroupResponse, ModifyLaunchConfigurationAttributesReq
|
|
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* 可以根据伸缩策略ID执行伸缩策略。
|
|
13
|
-
* 伸缩策略所属伸缩组处于伸缩活动时,会拒绝执行伸缩策略。
|
|
14
|
-
|
|
10
|
+
* 本接口(ExecuteScalingPolicy)用于执行伸缩策略。
|
|
11
|
+
|
|
12
|
+
* 可以根据伸缩策略ID执行伸缩策略。
|
|
13
|
+
* 伸缩策略所属伸缩组处于伸缩活动时,会拒绝执行伸缩策略。
|
|
14
|
+
*/
|
|
15
15
|
ExecuteScalingPolicy(req: ExecuteScalingPolicyRequest, cb?: (error: string, rep: ExecuteScalingPolicyResponse) => void): Promise<ExecuteScalingPolicyResponse>;
|
|
16
16
|
/**
|
|
17
17
|
* 本接口(CreateAutoScalingGroup)用于创建伸缩组
|
|
@@ -30,11 +30,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
30
30
|
*/
|
|
31
31
|
ModifyLoadBalancerTargetAttributes(req: ModifyLoadBalancerTargetAttributesRequest, cb?: (error: string, rep: ModifyLoadBalancerTargetAttributesResponse) => void): Promise<ModifyLoadBalancerTargetAttributesResponse>;
|
|
32
32
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
可以根据通知ID、伸缩组ID等信息来查询通知的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
36
|
-
如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的通知。
|
|
37
|
-
|
|
33
|
+
* 本接口 (DescribeNotificationConfigurations) 用于查询一个或多个通知的详细信息。
|
|
34
|
+
|
|
35
|
+
可以根据通知ID、伸缩组ID等信息来查询通知的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
36
|
+
如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的通知。
|
|
37
|
+
*/
|
|
38
38
|
DescribeNotificationConfigurations(req: DescribeNotificationConfigurationsRequest, cb?: (error: string, rep: DescribeNotificationConfigurationsResponse) => void): Promise<DescribeNotificationConfigurationsResponse>;
|
|
39
39
|
/**
|
|
40
40
|
* 本接口(DeleteAutoScalingGroup)用于删除指定伸缩组,删除前提是伸缩组内无实例且当前未在执行伸缩活动。
|
|
@@ -42,24 +42,24 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
42
42
|
DeleteAutoScalingGroup(req: DeleteAutoScalingGroupRequest, cb?: (error: string, rep: DeleteAutoScalingGroupResponse) => void): Promise<DeleteAutoScalingGroupResponse>;
|
|
43
43
|
/**
|
|
44
44
|
* 为伸缩组指定数量扩容实例,返回扩容活动的 ActivityId。
|
|
45
|
-
* 伸缩组需要未处于活动中
|
|
46
|
-
* 伸缩组处于停用状态时,该接口也会生效,可参考[停用伸缩组](https://cloud.tencent.com/document/api/377/20435)文档查看伸缩组停用状态的影响范围
|
|
47
|
-
* 接口会增加期望实例数,新的期望实例数需要小于等于最大实例数
|
|
48
|
-
* 扩容如果失败或者部分成功,最后期望实例数只会增加实际成功的实例数量
|
|
45
|
+
* 伸缩组需要未处于活动中
|
|
46
|
+
* 伸缩组处于停用状态时,该接口也会生效,可参考[停用伸缩组](https://cloud.tencent.com/document/api/377/20435)文档查看伸缩组停用状态的影响范围
|
|
47
|
+
* 接口会增加期望实例数,新的期望实例数需要小于等于最大实例数
|
|
48
|
+
* 扩容如果失败或者部分成功,最后期望实例数只会增加实际成功的实例数量
|
|
49
49
|
*/
|
|
50
50
|
ScaleOutInstances(req: ScaleOutInstancesRequest, cb?: (error: string, rep: ScaleOutInstancesResponse) => void): Promise<ScaleOutInstancesResponse>;
|
|
51
51
|
/**
|
|
52
52
|
* 本接口(StartAutoScalingInstances)用于开启伸缩组内 CVM 实例。
|
|
53
|
-
* 开机成功,实例转为`IN_SERVICE`状态后,会增加期望实例数,期望实例数不可超过设置的最大值
|
|
54
|
-
* 本接口支持批量操作,每次请求开机实例的上限为100
|
|
53
|
+
* 开机成功,实例转为`IN_SERVICE`状态后,会增加期望实例数,期望实例数不可超过设置的最大值
|
|
54
|
+
* 本接口支持批量操作,每次请求开机实例的上限为100
|
|
55
55
|
*/
|
|
56
56
|
StartAutoScalingInstances(req: StartAutoScalingInstancesRequest, cb?: (error: string, rep: StartAutoScalingInstancesResponse) => void): Promise<StartAutoScalingInstancesResponse>;
|
|
57
57
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
* 本接口用于升级启动配置,采用“完全覆盖”风格,无论之前参数如何,统一按照接口参数设置为新的配置。对于非必填字段,不填写则按照默认值赋值。
|
|
61
|
-
* 升级修改启动配置后,已经使用该启动配置扩容的存量实例不会发生变更,此后使用该启动配置的新增实例会按照新的配置进行扩容。
|
|
62
|
-
|
|
58
|
+
* 本接口(UpgradeLaunchConfiguration)用于升级启动配置。
|
|
59
|
+
|
|
60
|
+
* 本接口用于升级启动配置,采用“完全覆盖”风格,无论之前参数如何,统一按照接口参数设置为新的配置。对于非必填字段,不填写则按照默认值赋值。
|
|
61
|
+
* 升级修改启动配置后,已经使用该启动配置扩容的存量实例不会发生变更,此后使用该启动配置的新增实例会按照新的配置进行扩容。
|
|
62
|
+
*/
|
|
63
63
|
UpgradeLaunchConfiguration(req: UpgradeLaunchConfigurationRequest, cb?: (error: string, rep: UpgradeLaunchConfigurationResponse) => void): Promise<UpgradeLaunchConfigurationResponse>;
|
|
64
64
|
/**
|
|
65
65
|
* 此接口用于修改生命周期挂钩。
|
|
@@ -70,11 +70,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
70
70
|
*/
|
|
71
71
|
DetachLoadBalancers(req: DetachLoadBalancersRequest, cb?: (error: string, rep: DetachLoadBalancersResponse) => void): Promise<DetachLoadBalancersResponse>;
|
|
72
72
|
/**
|
|
73
|
-
|
|
74
|
-
* 仅支持添加处于`RUNNING`(运行中)或`STOPPED`(已关机)状态的 CVM 实例
|
|
75
|
-
* 添加的 CVM 实例需要和伸缩组 VPC 网络一致
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
* 本接口(AttachInstances)用于将 CVM 实例添加到伸缩组。
|
|
74
|
+
* 仅支持添加处于`RUNNING`(运行中)或`STOPPED`(已关机)状态的 CVM 实例
|
|
75
|
+
* 添加的 CVM 实例需要和伸缩组 VPC 网络一致
|
|
76
|
+
|
|
77
|
+
*/
|
|
78
78
|
AttachInstances(req: AttachInstancesRequest, cb?: (error: string, rep: AttachInstancesResponse) => void): Promise<AttachInstancesResponse>;
|
|
79
79
|
/**
|
|
80
80
|
* 本接口(DescribeScalingPolicies)用于查询告警触发策略。
|
|
@@ -90,19 +90,19 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
90
90
|
AttachLoadBalancers(req: AttachLoadBalancersRequest, cb?: (error: string, rep: AttachLoadBalancersResponse) => void): Promise<AttachLoadBalancersResponse>;
|
|
91
91
|
/**
|
|
92
92
|
* 本接口(DetachInstances)用于从伸缩组移出 CVM 实例,本接口不会销毁实例。
|
|
93
|
-
* 如果移出指定实例后,伸缩组内处于`IN_SERVICE`状态的实例数量小于伸缩组最小值,接口将报错
|
|
94
|
-
* 如果伸缩组处于`DISABLED`状态,移出操作不校验`IN_SERVICE`实例数量和最小值的关系
|
|
95
|
-
* 对于伸缩组配置的 CLB,实例在离开伸缩组时,AS 会进行解挂载动作
|
|
93
|
+
* 如果移出指定实例后,伸缩组内处于`IN_SERVICE`状态的实例数量小于伸缩组最小值,接口将报错
|
|
94
|
+
* 如果伸缩组处于`DISABLED`状态,移出操作不校验`IN_SERVICE`实例数量和最小值的关系
|
|
95
|
+
* 对于伸缩组配置的 CLB,实例在离开伸缩组时,AS 会进行解挂载动作
|
|
96
96
|
*/
|
|
97
97
|
DetachInstances(req: DetachInstancesRequest, cb?: (error: string, rep: DetachInstancesResponse) => void): Promise<DetachInstancesResponse>;
|
|
98
98
|
/**
|
|
99
99
|
* 为伸缩组指定数量缩容实例,返回缩容活动的 ActivityId。
|
|
100
|
-
* 伸缩组需要未处于活动中
|
|
101
|
-
* 伸缩组处于停用状态时,该接口也会生效,可参考[停用伸缩组](https://cloud.tencent.com/document/api/377/20435)文档查看伸缩组停用状态的影响范围
|
|
102
|
-
* 根据伸缩组的`TerminationPolicies`策略,选择被缩容的实例,可参考[缩容处理](https://cloud.tencent.com/document/product/377/8563)
|
|
103
|
-
* 接口只会选择`IN_SERVICE`实例缩容,如果需要缩容其他状态实例,可以使用 [DetachInstances](https://cloud.tencent.com/document/api/377/20436) 或 [RemoveInstances](https://cloud.tencent.com/document/api/377/20431) 接口
|
|
104
|
-
* 接口会减少期望实例数,新的期望实例数需要大于等于最小实例数
|
|
105
|
-
* 缩容如果失败或者部分成功,最后期望实例数只会扣减实际缩容成功的实例数量
|
|
100
|
+
* 伸缩组需要未处于活动中
|
|
101
|
+
* 伸缩组处于停用状态时,该接口也会生效,可参考[停用伸缩组](https://cloud.tencent.com/document/api/377/20435)文档查看伸缩组停用状态的影响范围
|
|
102
|
+
* 根据伸缩组的`TerminationPolicies`策略,选择被缩容的实例,可参考[缩容处理](https://cloud.tencent.com/document/product/377/8563)
|
|
103
|
+
* 接口只会选择`IN_SERVICE`实例缩容,如果需要缩容其他状态实例,可以使用 [DetachInstances](https://cloud.tencent.com/document/api/377/20436) 或 [RemoveInstances](https://cloud.tencent.com/document/api/377/20431) 接口
|
|
104
|
+
* 接口会减少期望实例数,新的期望实例数需要大于等于最小实例数
|
|
105
|
+
* 缩容如果失败或者部分成功,最后期望实例数只会扣减实际缩容成功的实例数量
|
|
106
106
|
*/
|
|
107
107
|
ScaleInInstances(req: ScaleInInstancesRequest, cb?: (error: string, rep: ScaleInInstancesResponse) => void): Promise<ScaleInInstancesResponse>;
|
|
108
108
|
/**
|
|
@@ -115,9 +115,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
115
115
|
DescribeAutoScalingAdvices(req: DescribeAutoScalingAdvicesRequest, cb?: (error: string, rep: DescribeAutoScalingAdvicesResponse) => void): Promise<DescribeAutoScalingAdvicesResponse>;
|
|
116
116
|
/**
|
|
117
117
|
* 本接口(RemoveInstances)用于从伸缩组删除 CVM 实例。根据当前的产品逻辑,如果实例由弹性伸缩自动创建,则实例会被销毁;如果实例系创建后加入伸缩组的,则会从伸缩组中移除,保留实例。
|
|
118
|
-
* 如果删除指定实例后,伸缩组内处于`IN_SERVICE`状态的实例数量小于伸缩组最小值,接口将报错
|
|
119
|
-
* 如果伸缩组处于`DISABLED`状态,删除操作不校验`IN_SERVICE`实例数量和最小值的关系
|
|
120
|
-
* 对于伸缩组配置的 CLB,实例在离开伸缩组时,AS 会进行解挂载动作
|
|
118
|
+
* 如果删除指定实例后,伸缩组内处于`IN_SERVICE`状态的实例数量小于伸缩组最小值,接口将报错
|
|
119
|
+
* 如果伸缩组处于`DISABLED`状态,删除操作不校验`IN_SERVICE`实例数量和最小值的关系
|
|
120
|
+
* 对于伸缩组配置的 CLB,实例在离开伸缩组时,AS 会进行解挂载动作
|
|
121
121
|
*/
|
|
122
122
|
RemoveInstances(req: RemoveInstancesRequest, cb?: (error: string, rep: RemoveInstancesResponse) => void): Promise<RemoveInstancesResponse>;
|
|
123
123
|
/**
|
|
@@ -125,162 +125,162 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
125
125
|
*/
|
|
126
126
|
DeleteScalingPolicy(req: DeleteScalingPolicyRequest, cb?: (error: string, rep: DeleteScalingPolicyResponse) => void): Promise<DeleteScalingPolicyResponse>;
|
|
127
127
|
/**
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
* 用户通过调用本接口,指定一个具体的生命周期挂钩的结果(“CONITNUE”或者“ABANDON”)。如果一直不调用本接口,则生命周期挂钩会在超时后按照“DefaultResult”进行处理。
|
|
131
|
-
|
|
132
|
-
|
|
128
|
+
* 本接口(CompleteLifecycleAction)用于完成生命周期动作。
|
|
129
|
+
|
|
130
|
+
* 用户通过调用本接口,指定一个具体的生命周期挂钩的结果(“CONITNUE”或者“ABANDON”)。如果一直不调用本接口,则生命周期挂钩会在超时后按照“DefaultResult”进行处理。
|
|
131
|
+
|
|
132
|
+
*/
|
|
133
133
|
CompleteLifecycleAction(req: CompleteLifecycleActionRequest, cb?: (error: string, rep: CompleteLifecycleActionResponse) => void): Promise<CompleteLifecycleActionResponse>;
|
|
134
134
|
/**
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
* 本接口用于为伸缩组指定新的负载均衡器配置,采用`完全覆盖`风格,无论之前配置如何,`统一按照接口参数配置为新的负载均衡器`。
|
|
138
|
-
* 如果要为伸缩组清空负载均衡器,则在调用本接口时仅指定伸缩组ID,不指定具体负载均衡器。
|
|
139
|
-
* 本接口会立即修改伸缩组的负载均衡器,并生成一个伸缩活动,异步修改存量实例的负载均衡器。
|
|
140
|
-
|
|
135
|
+
* 本接口(ModifyLoadBalancers)用于修改伸缩组的负载均衡器。
|
|
136
|
+
|
|
137
|
+
* 本接口用于为伸缩组指定新的负载均衡器配置,采用`完全覆盖`风格,无论之前配置如何,`统一按照接口参数配置为新的负载均衡器`。
|
|
138
|
+
* 如果要为伸缩组清空负载均衡器,则在调用本接口时仅指定伸缩组ID,不指定具体负载均衡器。
|
|
139
|
+
* 本接口会立即修改伸缩组的负载均衡器,并生成一个伸缩活动,异步修改存量实例的负载均衡器。
|
|
140
|
+
*/
|
|
141
141
|
ModifyLoadBalancers(req: ModifyLoadBalancersRequest, cb?: (error: string, rep: ModifyLoadBalancersResponse) => void): Promise<ModifyLoadBalancersResponse>;
|
|
142
142
|
/**
|
|
143
143
|
* 本接口(ModifyDesiredCapacity)用于修改指定伸缩组的期望实例数
|
|
144
144
|
*/
|
|
145
145
|
ModifyDesiredCapacity(req: ModifyDesiredCapacityRequest, cb?: (error: string, rep: ModifyDesiredCapacityResponse) => void): Promise<ModifyDesiredCapacityResponse>;
|
|
146
146
|
/**
|
|
147
|
-
|
|
148
|
-
实例设置保护之后,当发生不健康替换、报警策略、期望值变更等触发缩容时,将不对此实例缩容操作。
|
|
149
|
-
|
|
147
|
+
* 本接口(SetInstancesProtection)用于设置实例保护。
|
|
148
|
+
实例设置保护之后,当发生不健康替换、报警策略、期望值变更等触发缩容时,将不对此实例缩容操作。
|
|
149
|
+
*/
|
|
150
150
|
SetInstancesProtection(req: SetInstancesProtectionRequest, cb?: (error: string, rep: SetInstancesProtectionResponse) => void): Promise<SetInstancesProtectionResponse>;
|
|
151
151
|
/**
|
|
152
152
|
* 本接口(ModifyNotificationConfiguration)用于修改通知。
|
|
153
|
-
* 通知的接收端类型不支持修改。
|
|
153
|
+
* 通知的接收端类型不支持修改。
|
|
154
154
|
*/
|
|
155
155
|
ModifyNotificationConfiguration(req: ModifyNotificationConfigurationRequest, cb?: (error: string, rep: ModifyNotificationConfigurationResponse) => void): Promise<ModifyNotificationConfigurationResponse>;
|
|
156
156
|
/**
|
|
157
157
|
* 本接口(StopAutoScalingInstances)用于关闭伸缩组内 CVM 实例。
|
|
158
|
-
* 关机方式采用`SOFT_FIRST`方式,表示在正常关闭失败后进行强制关闭
|
|
159
|
-
* 关闭`IN_SERVICE`状态的实例,会减少期望实例数,期望实例数不可低于设置的最小值
|
|
160
|
-
* 使用`STOP_CHARGING`选项关机,待关机的实例需要满足[关机不收费条件](https://cloud.tencent.com/document/product/213/19918)
|
|
161
|
-
* 本接口支持批量操作,每次请求关机实例的上限为100
|
|
158
|
+
* 关机方式采用`SOFT_FIRST`方式,表示在正常关闭失败后进行强制关闭
|
|
159
|
+
* 关闭`IN_SERVICE`状态的实例,会减少期望实例数,期望实例数不可低于设置的最小值
|
|
160
|
+
* 使用`STOP_CHARGING`选项关机,待关机的实例需要满足[关机不收费条件](https://cloud.tencent.com/document/product/213/19918)
|
|
161
|
+
* 本接口支持批量操作,每次请求关机实例的上限为100
|
|
162
162
|
*/
|
|
163
163
|
StopAutoScalingInstances(req: StopAutoScalingInstancesRequest, cb?: (error: string, rep: StopAutoScalingInstancesResponse) => void): Promise<StopAutoScalingInstancesResponse>;
|
|
164
164
|
/**
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
* 启动配置,可以通过 `ModifyLaunchConfigurationAttributes` 修改少量字段。如需使用新的启动配置,建议重新创建启动配置。
|
|
168
|
-
|
|
169
|
-
* 每个项目最多只能创建20个启动配置,详见[使用限制](https://cloud.tencent.com/document/product/377/3120)。
|
|
170
|
-
|
|
171
|
-
|
|
165
|
+
* 本接口(CreateLaunchConfiguration)用于创建新的启动配置。
|
|
166
|
+
|
|
167
|
+
* 启动配置,可以通过 `ModifyLaunchConfigurationAttributes` 修改少量字段。如需使用新的启动配置,建议重新创建启动配置。
|
|
168
|
+
|
|
169
|
+
* 每个项目最多只能创建20个启动配置,详见[使用限制](https://cloud.tencent.com/document/product/377/3120)。
|
|
170
|
+
|
|
171
|
+
*/
|
|
172
172
|
CreateLaunchConfiguration(req: CreateLaunchConfigurationRequest, cb?: (error: string, rep: CreateLaunchConfigurationResponse) => void): Promise<CreateLaunchConfigurationResponse>;
|
|
173
173
|
/**
|
|
174
174
|
* 本接口(ModifyAutoScalingGroup)用于修改伸缩组。
|
|
175
175
|
*/
|
|
176
176
|
ModifyAutoScalingGroup(req: ModifyAutoScalingGroupRequest, cb?: (error: string, rep: ModifyAutoScalingGroupResponse) => void): Promise<ModifyAutoScalingGroupResponse>;
|
|
177
177
|
/**
|
|
178
|
-
|
|
179
|
-
通知到 CMQ 主题或队列时,消息内容如下:
|
|
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
|
-
|
|
178
|
+
* 本接口(CreateNotificationConfiguration)用于创建通知。
|
|
179
|
+
通知到 CMQ 主题或队列时,消息内容如下:
|
|
180
|
+
```
|
|
181
|
+
{
|
|
182
|
+
"Service": "Tencent Cloud Auto Scaling",
|
|
183
|
+
"CreatedTime": "2021-10-11T10:15:11Z", // 活动创建时间
|
|
184
|
+
"AppId": "100000000",
|
|
185
|
+
"ActivityId": "asa-fznnvrja", // 伸缩活动ID
|
|
186
|
+
"AutoScalingGroupId": "asg-pc2oqu2z", // 伸缩组ID
|
|
187
|
+
"ActivityType": "SCALE_OUT", // 伸缩活动类型
|
|
188
|
+
"StatusCode": "SUCCESSFUL", // 伸缩活动结果
|
|
189
|
+
"Description": "Activity was launched in response to a difference between desired capacity and actual capacity,
|
|
190
|
+
scale out 1 instance(s).", // 伸缩活动描述
|
|
191
|
+
"StartTime": "2021-10-11T10:15:11Z", // 活动开始时间
|
|
192
|
+
"EndTime": "2021-10-11T10:15:32Z", // 活动结束时间
|
|
193
|
+
"DetailedStatusMessageSet": [ // 活动内部错误集合(非空不代表活动失败)
|
|
194
|
+
{
|
|
195
|
+
"Code": "InvalidInstanceType",
|
|
196
|
+
"Zone": "ap-guangzhou-2",
|
|
197
|
+
"InstanceId": "",
|
|
198
|
+
"InstanceChargeType": "POSTPAID_BY_HOUR",
|
|
199
|
+
"SubnetId": "subnet-4t5mgeuu",
|
|
200
|
+
"Message": "The specified instance type `S5.LARGE8` is invalid in `subnet-4t5mgeuu`, `ap-guangzhou-2`.",
|
|
201
|
+
"InstanceType": "S5.LARGE8"
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
```
|
|
206
|
+
*/
|
|
207
207
|
CreateNotificationConfiguration(req: CreateNotificationConfigurationRequest, cb?: (error: string, rep: CreateNotificationConfigurationResponse) => void): Promise<CreateNotificationConfigurationResponse>;
|
|
208
208
|
/**
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
* 可以根据实例ID、伸缩组ID等信息来查询实例的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
212
|
-
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的实例。
|
|
213
|
-
|
|
209
|
+
* 本接口(DescribeAutoScalingInstances)用于查询弹性伸缩关联实例的信息。
|
|
210
|
+
|
|
211
|
+
* 可以根据实例ID、伸缩组ID等信息来查询实例的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
212
|
+
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的实例。
|
|
213
|
+
*/
|
|
214
214
|
DescribeAutoScalingInstances(req: DescribeAutoScalingInstancesRequest, cb?: (error: string, rep: DescribeAutoScalingInstancesResponse) => void): Promise<DescribeAutoScalingInstancesResponse>;
|
|
215
215
|
/**
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
说明:根据按包年包月计费的实例所创建的伸缩组,其扩容的实例为按量计费实例。
|
|
219
|
-
|
|
216
|
+
* 本接口(CreateAutoScalingGroupFromInstance)用于根据实例创建启动配置及伸缩组。
|
|
217
|
+
|
|
218
|
+
说明:根据按包年包月计费的实例所创建的伸缩组,其扩容的实例为按量计费实例。
|
|
219
|
+
*/
|
|
220
220
|
CreateAutoScalingGroupFromInstance(req: CreateAutoScalingGroupFromInstanceRequest, cb?: (error: string, rep: CreateAutoScalingGroupFromInstanceResponse) => void): Promise<CreateAutoScalingGroupFromInstanceResponse>;
|
|
221
221
|
/**
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
* 您可以为生命周期挂钩配置消息通知,弹性伸缩会通知您的CMQ消息队列,通知内容形如:
|
|
225
|
-
|
|
226
|
-
```
|
|
227
|
-
{
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
```
|
|
241
|
-
|
|
222
|
+
* 本接口(CreateLifecycleHook)用于创建生命周期挂钩。
|
|
223
|
+
|
|
224
|
+
* 您可以为生命周期挂钩配置消息通知,弹性伸缩会通知您的CMQ消息队列,通知内容形如:
|
|
225
|
+
|
|
226
|
+
```
|
|
227
|
+
{
|
|
228
|
+
"Service": "Tencent Cloud Auto Scaling",
|
|
229
|
+
"Time": "2019-03-14T10:15:11Z",
|
|
230
|
+
"AppId": "1251783334",
|
|
231
|
+
"ActivityId": "asa-fznnvrja",
|
|
232
|
+
"AutoScalingGroupId": "asg-rrrrtttt",
|
|
233
|
+
"LifecycleHookId": "ash-xxxxyyyy",
|
|
234
|
+
"LifecycleHookName": "my-hook",
|
|
235
|
+
"LifecycleActionToken": "3080e1c9-0efe-4dd7-ad3b-90cd6618298f",
|
|
236
|
+
"InstanceId": "ins-aaaabbbb",
|
|
237
|
+
"LifecycleTransition": "INSTANCE_LAUNCHING",
|
|
238
|
+
"NotificationMetadata": ""
|
|
239
|
+
}
|
|
240
|
+
```
|
|
241
|
+
*/
|
|
242
242
|
CreateLifecycleHook(req: CreateLifecycleHookRequest, cb?: (error: string, rep: CreateLifecycleHookResponse) => void): Promise<CreateLifecycleHookResponse>;
|
|
243
243
|
/**
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
* 本接口用于升级生命周期挂钩,采用“完全覆盖”风格,无论之前参数如何,统一按照接口参数设置为新的配置。对于非必填字段,不填写则按照默认值赋值。
|
|
247
|
-
|
|
248
|
-
|
|
244
|
+
* 本接口(UpgradeLifecycleHook)用于升级生命周期挂钩。
|
|
245
|
+
|
|
246
|
+
* 本接口用于升级生命周期挂钩,采用“完全覆盖”风格,无论之前参数如何,统一按照接口参数设置为新的配置。对于非必填字段,不填写则按照默认值赋值。
|
|
247
|
+
|
|
248
|
+
*/
|
|
249
249
|
UpgradeLifecycleHook(req: UpgradeLifecycleHookRequest, cb?: (error: string, rep: UpgradeLifecycleHookResponse) => void): Promise<UpgradeLifecycleHookResponse>;
|
|
250
250
|
/**
|
|
251
|
-
|
|
252
|
-
* 停用伸缩组后,自动触发的伸缩活动不再进行,包括:
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
* 停用伸缩组后,手动触发的伸缩活动允许进行,包括:
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
251
|
+
* 本接口(DisableAutoScalingGroup)用于停用指定伸缩组。
|
|
252
|
+
* 停用伸缩组后,自动触发的伸缩活动不再进行,包括:
|
|
253
|
+
- 告警策略触发的伸缩活动
|
|
254
|
+
- 匹配期望实例数的伸缩活动
|
|
255
|
+
- 不健康实例替换活动
|
|
256
|
+
- 定时任务
|
|
257
|
+
* 停用伸缩组后,手动触发的伸缩活动允许进行,包括:
|
|
258
|
+
- 指定数量扩容实例(ScaleOutInstances)
|
|
259
|
+
- 指定数量缩容实例(ScaleInInstances)
|
|
260
|
+
- 从伸缩组中移出 CVM 实例(DetachInstances)
|
|
261
|
+
- 从伸缩组中删除 CVM 实例(RemoveInstances)
|
|
262
|
+
- 添加 CVM 实例到伸缩组(AttachInstances)
|
|
263
|
+
- 关闭伸缩组内 CVM 实例(StopAutoScalingInstances)
|
|
264
|
+
- 开启伸缩组内 CVM 实例(StartAutoScalingInstances)
|
|
265
|
+
*/
|
|
266
266
|
DisableAutoScalingGroup(req: DisableAutoScalingGroupRequest, cb?: (error: string, rep: DisableAutoScalingGroupResponse) => void): Promise<DisableAutoScalingGroupResponse>;
|
|
267
267
|
/**
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
* 可以根据启动配置ID、启动配置名称等信息来查询启动配置的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
271
|
-
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的启动配置。
|
|
272
|
-
|
|
268
|
+
* 本接口(DescribeLaunchConfigurations)用于查询启动配置的信息。
|
|
269
|
+
|
|
270
|
+
* 可以根据启动配置ID、启动配置名称等信息来查询启动配置的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
271
|
+
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的启动配置。
|
|
272
|
+
*/
|
|
273
273
|
DescribeLaunchConfigurations(req: DescribeLaunchConfigurationsRequest, cb?: (error: string, rep: DescribeLaunchConfigurationsResponse) => void): Promise<DescribeLaunchConfigurationsResponse>;
|
|
274
274
|
/**
|
|
275
275
|
* 本接口(CreateScalingPolicy)用于创建告警触发策略。
|
|
276
276
|
*/
|
|
277
277
|
CreateScalingPolicy(req: CreateScalingPolicyRequest, cb?: (error: string, rep: CreateScalingPolicyResponse) => void): Promise<CreateScalingPolicyResponse>;
|
|
278
278
|
/**
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
* 若启动配置在伸缩组中属于生效状态,则该启动配置不允许删除。
|
|
282
|
-
|
|
283
|
-
|
|
279
|
+
* 本接口(DeleteLaunchConfiguration)用于删除启动配置。
|
|
280
|
+
|
|
281
|
+
* 若启动配置在伸缩组中属于生效状态,则该启动配置不允许删除。
|
|
282
|
+
|
|
283
|
+
*/
|
|
284
284
|
DeleteLaunchConfiguration(req: DeleteLaunchConfigurationRequest, cb?: (error: string, rep: DeleteLaunchConfigurationResponse) => void): Promise<DeleteLaunchConfigurationResponse>;
|
|
285
285
|
/**
|
|
286
286
|
* 本接口(DeleteLifecycleHook)用于删除生命周期挂钩。
|
|
@@ -291,29 +291,29 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
291
291
|
*/
|
|
292
292
|
DescribeAutoScalingGroupLastActivities(req: DescribeAutoScalingGroupLastActivitiesRequest, cb?: (error: string, rep: DescribeAutoScalingGroupLastActivitiesResponse) => void): Promise<DescribeAutoScalingGroupLastActivitiesResponse>;
|
|
293
293
|
/**
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
* 可以根据伸缩组ID、生命周期挂钩ID或者生命周期挂钩名称等信息来查询生命周期挂钩的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
297
|
-
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的生命周期挂钩。
|
|
298
|
-
|
|
294
|
+
* 本接口(DescribeLifecycleHooks)用于查询生命周期挂钩信息。
|
|
295
|
+
|
|
296
|
+
* 可以根据伸缩组ID、生命周期挂钩ID或者生命周期挂钩名称等信息来查询生命周期挂钩的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
297
|
+
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的生命周期挂钩。
|
|
298
|
+
*/
|
|
299
299
|
DescribeLifecycleHooks(req: DescribeLifecycleHooksRequest, cb?: (error: string, rep: DescribeLifecycleHooksResponse) => void): Promise<DescribeLifecycleHooksResponse>;
|
|
300
300
|
/**
|
|
301
301
|
* 本接口(EnableAutoScalingGroup)用于启用指定伸缩组。
|
|
302
302
|
*/
|
|
303
303
|
EnableAutoScalingGroup(req: EnableAutoScalingGroupRequest, cb?: (error: string, rep: EnableAutoScalingGroupResponse) => void): Promise<EnableAutoScalingGroupResponse>;
|
|
304
304
|
/**
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
* 可以根据定时任务ID、定时任务名称或者伸缩组ID等信息来查询定时任务的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
308
|
-
* 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的定时任务。
|
|
309
|
-
|
|
305
|
+
* 本接口 (DescribeScheduledActions) 用于查询一个或多个定时任务的详细信息。
|
|
306
|
+
|
|
307
|
+
* 可以根据定时任务ID、定时任务名称或者伸缩组ID等信息来查询定时任务的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
308
|
+
* 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的定时任务。
|
|
309
|
+
*/
|
|
310
310
|
DescribeScheduledActions(req: DescribeScheduledActionsRequest, cb?: (error: string, rep: DescribeScheduledActionsResponse) => void): Promise<DescribeScheduledActionsResponse>;
|
|
311
311
|
/**
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
* 可以根据伸缩组ID、伸缩组名称或者启动配置ID等信息来查询伸缩组的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
315
|
-
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的伸缩组。
|
|
316
|
-
|
|
312
|
+
* 本接口(DescribeAutoScalingGroups)用于查询伸缩组信息。
|
|
313
|
+
|
|
314
|
+
* 可以根据伸缩组ID、伸缩组名称或者启动配置ID等信息来查询伸缩组的详细信息。过滤信息详细请见过滤器`Filter`。
|
|
315
|
+
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的伸缩组。
|
|
316
|
+
*/
|
|
317
317
|
DescribeAutoScalingGroups(req: DescribeAutoScalingGroupsRequest, cb?: (error: string, rep: DescribeAutoScalingGroupsResponse) => void): Promise<DescribeAutoScalingGroupsResponse>;
|
|
318
318
|
/**
|
|
319
319
|
* 本接口(ModifyScheduledAction)用于修改定时任务。
|
|
@@ -332,10 +332,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
332
332
|
*/
|
|
333
333
|
DescribeAccountLimits(req?: DescribeAccountLimitsRequest, cb?: (error: string, rep: DescribeAccountLimitsResponse) => void): Promise<DescribeAccountLimitsResponse>;
|
|
334
334
|
/**
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
* 修改启动配置后,已经使用该启动配置扩容的存量实例不会发生变更,此后使用该启动配置的新增实例会按照新的配置进行扩容。
|
|
338
|
-
* 本接口支持修改部分简单类型。
|
|
339
|
-
|
|
335
|
+
* 本接口(ModifyLaunchConfigurationAttributes)用于修改启动配置部分属性。
|
|
336
|
+
|
|
337
|
+
* 修改启动配置后,已经使用该启动配置扩容的存量实例不会发生变更,此后使用该启动配置的新增实例会按照新的配置进行扩容。
|
|
338
|
+
* 本接口支持修改部分简单类型。
|
|
339
|
+
*/
|
|
340
340
|
ModifyLaunchConfigurationAttributes(req: ModifyLaunchConfigurationAttributesRequest, cb?: (error: string, rep: ModifyLaunchConfigurationAttributesResponse) => void): Promise<ModifyLaunchConfigurationAttributesResponse>;
|
|
341
341
|
}
|