RollbackEdgeContainerAppVersion - 回滚边缘容器应用

回滚边缘容器应用的某个版本,可以通过此接口快速回退异常版本,及时止损。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用前面加 * 表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
esa:RollbackEdgeContainerAppVersionnone
*全部资源
*

请求参数

名称类型必填描述示例值
AppIdstring

应用 ID。

app-88068867578379****
VersionIdstring

回滚到指定版本的版本 ID。

ver-87962637161651****
Remarksstring

备注信息。

test rollback app
UsedPercentboolean

是否使用百分比回滚。

true
Percentageinteger

调整后的发布比例。取值:1~100,默认值:0

50

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

C370DAF1-C838-4288-A1A0-9A87633D248E

示例

正常返回示例

JSON格式

{
  "RequestId": "C370DAF1-C838-4288-A1A0-9A87633D248E"
}

错误码

HTTP status code错误码错误信息描述
400InvalidParameterThe specified parameter is invalid.输入参数规范校验失败。
400InvalidParameter.appidThe format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID.传入的应用ID格式不正确,可使用ListEdgeContainerApps接口获取应用ID。
400InvalidParameter.VersionIdThe specified VersionId is invalid.  Please check the VersionId parameter. You may not have entered the parameter or the parameter does not start with ver-string. Please modify it and call the interface again.VersionId参数无效。请检查VersionId参数,你有可能未输入该参数或者,参数并未以ver-字符串开头,请进行修改后,重新调用接口。
400InternalExceptionFailed to call the service. Try again later or contact technical support.调用服务失败,请稍后重试或联系客服咨询详情。
404InvalidApp.NotFoundThe application does not exist. Check whether the application ID you specified is correct and try again.您传入的应用ID对应的应用不存在,请检查后重试。
500InternalErrorFailed to call the service. Try again later or contact technical support.调用服务失败,请稍后重试或联系客服咨询详情。

访问错误中心查看更多错误码。