RollbackApplication_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:RollbackApplication
Update
全部资源
*

请求语法

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

请求参数

字段名称字段详情
AppIdstring

应用 ID。

示例值:017f39b8-dfa4-4e16-a84b-1dcee4b1****
VersionIdstring

版本 ID,需要调用 ListAppVersions 接口查看。

示例值:0026ff7f-2b57-4127-bdd0-9bf202bb9****
BatchWaitTimeinteger<int32>

分批等待时间,单位为秒。

示例值:10
MinReadyInstancesinteger<int32>

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

示例值:1
MinReadyInstanceRatiointeger<int32>

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

示例值:-1
UpdateStrategystring

部署策略。当最小存活实例数等于 1 时,UpdateStrategy 字段的值为""。当最小存活实例数大于 1 时,示例如下:展开详情

示例值:{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}
AutoEnableApplicationScalingRulestring

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

示例值:true

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

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

调用结果的附加信息。

示例值:success
TraceIdstring

调用链 ID,用于精确查询调用信息。

示例值:0a98a02315955564772843261e****
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
NoComputeResourceQuota.Exceed
Your compute resource is insufficient. Please contact us to raise the quota.诊断
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.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
rollback.error
Failed to roll back.诊断
400
Application.MissingJdk
Your application must at least contain a JDK component.诊断
400
JarApplication.MissingJdk
A FatJar application must contain JDK.诊断
400
PandoraApplication.MissingJdk
The Pandora application is missing a JDK component.诊断
400
WarApplication.MissingJdkWebcontainer
A War application must contain JDK and Tomcat.诊断
400
InvalidComponent.NotFound
The current component (such as JDK, Tomcat, or EDASWebContainer) does not exist.诊断
400
InvalidHostnameIp.Invalid
The hostname and/or IP is invalid: Hostname [%s], IP [%s].诊断
400
InvalidInstanceSpecification.Unsupported
The instance specification is not supported: CPU [%s], memory [%s].诊断
400
InvalidPackageType.NotFound
The package type must be War, FatJar, or Image.诊断
400
LogService.ConfigQuotaExceed
The maximum number of Log Service configs is exceeded.诊断
400
LogService.InternalError
An exception occurred while calling Log Service. Please submit a ticket to solve the problem.诊断
400
LogService.LogDirInvalid
The log collection path is invalid.诊断
400
LogService.NotAvailable
Log Service is unavailable. Please activate Log Service first.诊断
400
LogService.ProjectNumQuotaExceed
The maximum number of Log Service projects is exceeded.诊断
400
VolumnPath.Conflict
Conflict between log collection directory and persistent storage directory.诊断
400
MountConflict.ConfigMap
Conflict detected for ConfigMap path %s.诊断
400
NotFound.ConfigMap
The ConfigMap object (ID: %s) does not exist.诊断
400
NotFound.ConfigMapKey
The key %s of ConfigMap object (ID: %s) does not exist.诊断
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.诊断
400
Package.Version.Too.Long
The maximum length of package version is exceeded.诊断
400
App.Package.Version.Exists
The package version of application already exists.诊断
400
Slb.Occupied
The SLB instance is occupied.诊断
400
Slb.Tag.Not.Qualified
The current SLB instance cannot be reused because it may have been occupied by %s.诊断
400
InvalidParameter.FileName
The application deployment package name is invalid. This name can contain only alphanumeric characters, hyphens (-), and underscores (_). For deploying java package, you can upload JAR files only if the selected deployment version supports JAR file. Otherwise, upload WAR files only. For deploying php package, you can upload ZIP files only if the selected deployment version supports ZIP file.诊断
400
vswitch.not.exist
The specified vSwitch does not exist.诊断
404
InvalidNamespaceId.NotFound
The specified NamespaceId does not exist.诊断

变更历史

变更时间变更内容概要操作
2022-12-26
变更错误码400
2022-02-21
变更错误码400
2022-01-18
变更错误码400
2021-11-17
变更返回参数

相关示例