You need to enable JavaScript to run this app.
导航
EnterStandby - 设置实例为备用状态
最近更新时间:2025.03.03 14:34:54首次发布时间:2024.05.16 10:34:06
我的收藏
有用
有用
无用
无用

将伸缩组内的ECS实例设置为备用状态,关于设置实例备用

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

EnterStandby

要执行的操作,取值:EnterStandby。

Version
String

2020-01-01

API的版本,取值:2020-01-01。

InstanceIds.N
Array of String

i-ybmike5l70l8j1ha****

实例ID。您可以调用DescribeScalingInstances接口查询实例ID。

  • 参数 - N:表示实例的序号,取值1 ~ 20。
  • 多个实例ID之间用&分隔。
ScalingGroupId
String

scg-ybmssdnnhn5pkgyd****

伸缩组ID。

ClientToken
String

333456899ff****

保证请求幂等性。由客户端自动生成一个参数值,确保不同请求间该参数值唯一,避免当调用API超时或服务器内部错误时,客户端多次重试导致重复性操作。取值:

  • 仅支持ASCII字符,且不能超过64个字符。

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

GET /?Action=EnterStandby&ScalingGroupId=scg-ybmssdnnhn5pkgyd****&Version=2020-01-01 HTTP/1.1
Host: open.volcengineapi.com
X-Date: 20240507T112538Z
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240507/cn-beijing/auto_scaling/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f


返回示例

{
  "ResponseMetadata": {
    "RequestId": "20240507192544216205087112979139",
    "Version": "2020-01-01",
    "Service": "auto_scaling",
    "Region": "cn-beijing"
  },
  "Result": {}
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
InvalidInstance.InvalidStatus

The specified Instance [%s] is not in the correct status.

指定实例的状态不支持该操作。

400
InvalidScalingGroup.InvalidStatus

The specified ScalingGroup is not in the correct status.

指定的伸缩组当前状态不支持该操作。

400
MissingParameter.ScalingGroupId

The required parameter ScalingGroupId is not supplied.

伸缩组ID不能为空。

404
InvalidInstanceId.NotFound

The specified InstanceId [%s] does not exist.

指定的实例不存在。

404
InvalidScalingGroupId.NotFound

The specified ScalingGroup [%s] does not exist.

指定的伸缩组不存在。

500
InternalError

An internal error has occurred.

内部错误,请重试。如果多次尝试失败,请提交工单。