CreateEdgeContainerAppVersion_边缘安全加速_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 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
esa:CreateEdgeContainerAppVersion
Create
全部资源
*

请求参数

字段名称字段详情
AppIdstring

应用 ID,可使用 ListEdgeContainerApps 接口获取应用 ID。

示例值:app-88068867578379****字符长度 <= 64字符长度 >= 20
Namestring

版本名称,长度6~128

示例值:verson1字符长度 <= 128字符长度 >= 6
Remarksstring

备注信息。

示例值:test app字符长度 <= 1024
Containersarray<object>

该版本要部署的容器组,包含具体的镜像信息。 展开详情

示例值:[ { "Name": "container1", "Image": "image1", "Spec": "1C2G", "Command": "/bin/sh", "Args": "-c hello", "ProbeType": "tcpSocket", "ProbeContent": "{\"Port\":8080}" }, { "Name": "container2", "Image": "image2", "Spec": "2C4G", "ProbeType": "httpGet", "ProbeContent": "{\"Path\":\"/\",\"Port\":80,\"InitialDelaySeconds\":10}" } ]

返回参数

字段名称字段详情
VersionIdstring

返回创建的版本的 ID。

示例值:ver-87962637161651****
RequestIdstring

请求 ID。

示例值:04F0F334-1335-436C-A1D7-6C044FE73368

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidParameter.Name
The specified Name is invalid. Please check the Name parameter, which must be between 6 and 128 characters. Kindly make the necessary modifications and call the interface again.诊断
400
InvalidParameter.Percentage
The 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.诊断
400
InvalidParameter.Image
The specified Image is invalid. Please check the Image parameter and make the necessary modifications and call the interface again.诊断
400
InvalidParameter.HttpHeaders
The specified HttpHeaders is invalid. Please check the HttpHeaders parameter. Please make the necessary changes and call the interface again.诊断
400
InvalidParameter.appid
The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID.诊断
400
InvalidParameter
The specified parameter is invalid.诊断
400
ParameterAlreadyExist
Parameter uniqueness verification failed. Check for duplicate parameter values.诊断
400
NameAlreadyExists
The name already exists.诊断
404
InvalidApp.NotFound
The application does not exist. Check whether the application ID you specified is correct and try again.诊断
500
InternalError
Failed to call the service. Try again later or contact technical support.诊断

变更历史

暂无变更历史

相关示例