调用ReduceApplicationCapacityByInstanceIds接口根据实例ID缩容。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
该接口使用公共请求头,无特殊请求头。更多信息,请参见公共请求和返回头。
请求语法
PUT /pop/v1/sam/app/ScaleInApplicationWithInstanceIds HTTP/1.1
请求参数
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
AppId | String | Query | 是 | 0099b7be-5f5b-4512-a7fc-56049ef1**** | 目标应用ID。 |
InstanceIds | String | Query | 是 | b2a8a925-477a-4ed7-b825-d5e22500**** | 实例ID。可填写多个实例ID,用英文逗号(,)分隔。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 91F93257-7A4A-4BD3-9A8E-2F6EAE6D**** | 请求ID。 |
Message | String | success | 附加信息。取值说明如下:
|
TraceId | String | 0a98a02315955564772843261e**** | 调用链ID,用于精确查询调用信息。 |
Data | Object | 变更单信息。 |
|
ChangeOrderId | String | 76fa5c0-9ebb-4bb4-b383-1f885447**** | 变更单ID。 |
ErrorCode | String | 空 | 错误码。取值说明如下:
|
Code | String | 200 | 接口状态或POP错误码,取值说明如下:
|
Success | Boolean | true | 查询变更单信息是否成功。取值说明如下:
|
示例
请求示例
PUT /pop/v1/sam/app/ScaleInApplicationWithInstanceIds?AppId=0099b7be-5f5b-4512-a7fc-56049ef1****&InstanceIds=b2a8a925-477a-4ed7-b825-d5e22500**** HTTP/1.1
Host:sae.aliyuncs.com
Content-Type:application/json
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ReduceApplicationCapacityByInstanceIdsResponse>
<RequestId>91F93257-7A4A-4BD3-9A8E-2F6EAE6D****</RequestId>
<Message>success</Message>
<TraceId>0a98a02315955564772843261e****</TraceId>
<Data>
<ChangeOrderId>76fa5c0-9ebb-4bb4-b383-1f885447****</ChangeOrderId>
</Data>
<Code>200</Code>
<Success>true</Success>
</ReduceApplicationCapacityByInstanceIdsResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "91F93257-7A4A-4BD3-9A8E-2F6EAE6D****",
"Message" : "success",
"TraceId" : "0a98a02315955564772843261e****",
"Data" : {
"ChangeOrderId" : "76fa5c0-9ebb-4bb4-b383-1f885447****"
},
"Code" : "200",
"Success" : true
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidApplication.NotFound | The current application does not exist. | 找不到当前应用。 |
400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | 不合法的参数:%s不能为空。 |
400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | 不合法的参数{%s}。 |
400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | 不合法的参数{%s}:%s。 |
400 | NoComputeResourceQuota.App.Exceed | You can create %s instances for each application. Please submit a ticket to raise the quota. | 每个应用只允许创建%s个实例,请加入钉群32874633联系技术产品专家进行咨询。 |
400 | NoComputeResourceQuota.User.Exceed | Your account is limited to create %s instances. Please submit a ticket to raise the quota. | 您的账户限额%s个实例,请加入钉群32874633联系技术产品专家进行咨询。 |
400 | System.Upgrading | The system is being upgraded. Please try again later. | 系统正在升级,请稍后操作。 |
400 | Application.ChangerOrderRunning | An application change process is in progress. Please try again later. | 应用有变更流程正在执行,请稍后重试。 |
400 | Application.InvalidStatus | The application status is abnormal. Please try again later. | 应用状态异常,请稍后重试。 |
400 | Application.NotDeployYet | The application has not been deployed. Please deploy it and try again. | 应用没有部署,请部署后重试。 |
400 | unsupported.workload | The specified instances to scale in application does not support the workload | 指定实例缩容应用不支持该工作负载。 |
访问错误中心查看更多错误码。