PublishEdgeContainerAppVersion - 发布边缘容器的指定版本

发布边缘容器的指定版本,用户可以通过此接口进行应用的版本迭代。

调试

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

授权信息

当前API暂无授权信息透出。

请求参数

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

应用 ID。

app-88068867578379****
VersionIdstring

版本 ID。

ver-87962637161651****
PublishEnvstring

发布的环境,取值如下:

  • prod: 生产环境。
  • staging:预发环境。
prod
Percentageinteger

发布比例。取值:1~100,默认值:100

100
StartTimestring

开始进行发布的时间,不写则默认为当前时间。

日期格式按照 ISO8601 表示法,并使用 UTC+0 时间,格式为 yyyy-MM-ddTHH:mm:ssZ。

2023-06-05T16:00:00Z
Remarksstring

备注信息,默认为空。

test publish app
PublishTypestring

发布类型,支持如下两种:

  • percentage:按照百分比发布。

  • region:按照区域发布。

若不填写,默认使用百分比发布。

percentage
Regionsarray

发布区域列表。

string

发布区域。

jiangsu
FullReleaseboolean

是否全量发布。该字段仅当 PublishType 设置为 region 时生效。

true

返回参数

名称类型描述示例值
object
RequestIdstring

请求 ID。

04F0F334-1335-436C-A1D7-6C044FE73368

示例

正常返回示例

JSON格式

{
  "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}

错误码

HTTP status code错误码错误信息描述
400InvalidParameter.PublishEnvThe specified PublishEnv is invalid. Please check the PublishEnv parameter. It may not be set to either "prod" or "staging." Please make the necessary changes and call the interface again.PublishEnv参数无效。请检查PublishEnv参数,你有可能未设置为prod、staging其中一种,请进行修改后,重新调用接口。
400InvalidParameter.PercentageThe Percentage parameter is invalid. Please check the Percentage parameter, which should be in the range of 1-100. Modify it accordingly and call the interface again.Percentage 参数无效。请检查Percentage参数,该参数范围为1-100,请进行修改后,重新调用接口。
400InvalidParameterInvalid parameter. Check the parameter configuration.参数正确性校验失败,请检查的参数内容。
400InvalidParameter.appidThe format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID.传入的应用ID格式不正确,可使用ListEdgeContainerApps接口获取应用ID。
400InternalExceptionFailed to call the service. Try again later or contact technical support.调用服务失败,请稍后重试或联系客服咨询详情。
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-字符串开头,请进行修改后,重新调用接口。
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.调用服务失败,请稍后重试或联系客服咨询详情。

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