RescaleApplication_Serverless 应用引擎_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

流控信息

当前云产品API请求速率暂未透出。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
sae:RescaleApplication
Update
全部资源
*

请求语法

PUT /pop/v1/sam/app/rescaleApplication HTTP/1.1

请求参数

字段名称字段详情
AppIdstring

目标应用 ID。

示例值:0099b7be-5f5b-4512-a7fc-56049ef1****
Replicasinteger<int32>

目标实例数。

示例值:5
MinReadyInstancesinteger<int32>

最小存活实例数。取值说明如下:展开详情

示例值:1
MinReadyInstanceRatiointeger<int32>

最小存活实例数百分比。取值说明如下:展开详情

示例值:-1
AutoEnableApplicationScalingRuleboolean

是否自动启用应用弹性伸缩策略。取值说明如下:展开详情

示例值:true

返回参数

字段名称字段详情
Messagestring

调用结果的附加信息。

示例值:success
RequestIdstring

请求 ID。

示例值:91F93257-7A4A-4BD3-9A7E-2F6EAE6D****
Dataobject

返回结果。

ErrorCodestring

错误码。取值说明如下:展开详情

示例值:
Codestring

接口状态或 POP 错误码。取值说明如下:展开详情

示例值:200
Successboolean

应用扩缩是否成功。取值说明如下:展开详情

示例值:true

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidApplication.NotFound
The current application does not exist.诊断
400
InvalidParameter.NotEmpty
You must specify the parameter %s.诊断
400
InvalidParameter.Obviously
The specified parameter is invalid {%s}.诊断
400
InvalidParameter.WithMessage
The parameter is invalid {%s}: %s诊断
400
user.indebt
The user has an outstanding payment.诊断
400
NoComputeResourceQuota.App.Exceed
You can create %s instances for each application. Please submit a ticket to raise the quota.诊断
400
NoComputeResourceQuota.Exceed
Your compute resource is insufficient. Please contact us to raise the quota.诊断
400
NoComputeResourceQuota.User.Exceed
Your account is limited to create %s instances. Please submit a ticket to raise the quota.诊断
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
MinReadyInstances.Not.Smaller.Replicas
The minimum number of available instances must be less than the number of application instances.诊断
400
MinReadyInstanceRatio.Invalid
The ratio of minimum available instances must be between 0 and 100.诊断
404
Associate.Eip.Not.Enough
No sufficient EIPs are available.诊断

变更历史

变更时间变更内容概要操作
2022-12-26
变更错误码400
2021-11-17
新增错误码404

相关示例