CreateEdgeContainerApp_边缘安全加速_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请求速率暂未透出。

授权信息

当前云产品暂无权限信息透出。

请求参数

字段名称字段详情
Namestring

应用名称,必须小写字母打头,支持小写字母,数字,横杠。长度限制 6~128 字符。

示例值:app-test字符长度 <= 128字符长度 >= 6
ServicePortinteger<int32>

服务端端口号,范围 1~65535。

示例值:80取值 <= 443
TargetPortinteger<int32>

后端端口,也是应用的服务端口,范围 1~65535。

示例值:80取值 <= 65535
Remarksstring

备注信息,不填写则默认为空。

示例值:test app字符长度 <= 1024
HealthCheckTypestring

健康检查类型,包括四层和七层探测,不填写默认为空。展开详情

示例值:l7
HealthCheckHoststring

用于健康检查的域名, 不填写则默认为空。

示例值:www.aliyun.com
HealthCheckHttpCodestring

健康检查正常时的 HTTP 状态码。取值:展开详情

示例值:http_2xx
HealthCheckMethodstring

监听 HTTP 类型健康检查的健康检查方法。取值:展开详情

示例值:HEAD
HealthCheckURIstring

用于健康检查的 URI。展开详情

示例值:/health_check
HealthCheckPortinteger<int32>

健康检查的端口。展开详情

示例值:80
HealthCheckTimeoutinteger<int32>

接收来自运行状况检查的响应需要等待的时间。如果后端 ECS 在指定的时间内没有正确响应,则判定为健康检查失败。 展开详情

示例值:5
HealthCheckIntervalinteger<int32>

健康检查的时间间隔。展开详情

示例值:5
HealthCheckSuccTimesinteger<int32>

健康检查连续成功次数。如果应用不健康,经过多少次连续探测后都是成功返回,则认为应用恢复健康状态。展开详情

示例值:2
HealthCheckFailTimesinteger<int32>

健康检查连续失败次数。如果应用健康,经过多少次连续探测后都是失败返回,则认为应用为不健康状态。展开详情

示例值:3

返回参数

字段名称字段详情
AppIdstring

创建成功的应用 ID。

示例值:app-880688675783794688
RequestIdstring

请求 ID。

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

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
InvalidParameter.HealthCheckType
Specified parameter HealthCheckType is not valid.诊断
400
InvalidParameter.HealthCheckHost
Specified parameter HealthCheckHost is not valid.诊断
400
InvalidParameter.HealthCheckHttpCode
Specified parameter HealthCheckHttpCode is not valid.诊断
400
InvalidParameter.HealthCheckMethod
Specified parameter HealthCheckMethod is not valid.诊断
400
InvalidParameter.HealthCheckURI
Specified parameter HealthCheckURI is not valid.诊断
400
InvalidParameter.HealthCheckInterval
Specified parameter HealthCheckInterval is not valid.诊断
400
InvalidParameter.HealthCheckTimeout
Specified parameter HealthCheckTimeout is not valid.诊断
400
InvalidParameter.HealthCheckSuccTimes
Specified parameter HealthCheckSuccTimes is not valid.诊断
400
InvalidParameter.HealthCheckFailTimes
Specified parameter HealthCheckFailTimes is not valid.诊断
400
InvalidParameter.HealthCheckPort
Specified parameter HealthCheckPort is not valid.诊断
400
InvalidParameter.PageNumber
Failed to verify parameter PageNumber.Check whether the parameter exists and is set to a positive integer.诊断
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
NameAlreadyExists
The name already exists.诊断
400
ParamNameError
The Name parameter is invalid.诊断
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.诊断

变更历史

暂无变更历史

相关示例