创建边缘容器的应用,通过应用的版本部署和发布完成边缘服务的容器化。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
esa:CreateEdgeContainerApp |
none |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Name |
string |
是 |
应用名称,必须小写字母打头,支持小写字母,数字,横杠。长度限制 6~128 字符。 |
app-test |
| ServicePort |
integer |
是 |
服务端端口号,范围 1~65535。 |
80 |
| TargetPort |
integer |
是 |
后端端口,也是应用的服务端口,范围 1~65535。 |
80 |
| Remarks |
string |
否 |
备注信息,不填写则默认为空。 |
test app |
| HealthCheckType |
string |
否 |
健康检查类型,包括四层和七层探测,不填写默认为空。 取值:
|
l7 |
| HealthCheckHost |
string |
否 |
用于健康检查的域名, 不填写则默认为空。 |
www.aliyun.com |
| HealthCheckHttpCode |
string |
否 |
健康检查正常时的 HTTP 状态码。取值:
|
http_2xx |
| HealthCheckMethod |
string |
否 |
监听 HTTP 类型健康检查的健康检查方法。取值:
|
HEAD |
| HealthCheckURI |
string |
否 |
用于健康检查的 URI。
|
/health_check |
| HealthCheckPort |
integer |
否 |
健康检查的端口。
|
80 |
| HealthCheckTimeout |
integer |
否 |
接收来自运行状况检查的响应需要等待的时间。如果后端 ECS 在指定的时间内没有正确响应,则判定为健康检查失败。
|
5 |
| HealthCheckInterval |
integer |
否 |
健康检查的时间间隔。
|
5 |
| HealthCheckSuccTimes |
integer |
否 |
健康检查连续成功次数。如果应用不健康,经过多少次连续探测后都是成功返回,则认为应用恢复健康状态。
|
2 |
| HealthCheckFailTimes |
integer |
否 |
健康检查连续失败次数。如果应用健康,经过多少次连续探测后都是失败返回,则认为应用为不健康状态。
|
3 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回响应体的对象。 |
||
| AppId |
string |
创建成功的应用 ID。 |
app-880688675783794688 |
| RequestId |
string |
请求 ID。 |
04F0F334-1335-436C-A1D7-6C044FE73368 |
示例
正常返回示例
JSON格式
{
"AppId": "app-880688675783794688",
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.HealthCheckType | Specified parameter HealthCheckType is not valid. | 参数 HealthCheckType 格式不正确 |
| 400 | InvalidParameter.HealthCheckHost | Specified parameter HealthCheckHost is not valid. | 参数 HealthCheckHost 格式不正确 |
| 400 | InvalidParameter.HealthCheckHttpCode | Specified parameter HealthCheckHttpCode is not valid. | 参数 HealthCheckHttpCode 格式不正确 |
| 400 | InvalidParameter.HealthCheckMethod | Specified parameter HealthCheckMethod is not valid. | 参数 HealthCheckMethod 格式不正确 |
| 400 | InvalidParameter.HealthCheckURI | Specified parameter HealthCheckURI is not valid. | 参数 HealthCheckURI 格式不正确 |
| 400 | InvalidParameter.HealthCheckInterval | Specified parameter HealthCheckInterval is not valid. | 参数 HealthCheckInterval 格式不正确 |
| 400 | InvalidParameter.HealthCheckTimeout | Specified parameter HealthCheckTimeout is not valid. | 参数 HealthCheckTimeout 格式不正确 |
| 400 | InvalidParameter.HealthCheckSuccTimes | Specified parameter HealthCheckSuccTimes is not valid. | 参数 HealthCheckSuccTimes 格式不正确 |
| 400 | InvalidParameter.HealthCheckFailTimes | Specified parameter HealthCheckFailTimes is not valid. | 参数 HealthCheckFailTimes 格式不正确 |
| 400 | InvalidParameter.HealthCheckPort | Specified parameter HealthCheckPort is not valid. | 参数 HealthCheckPort 格式不正确 |
| 400 | InvalidParameter.PageNumber | Failed to verify parameter PageNumber.Check whether the parameter exists and is set to a positive integer. | 参数 PageNumber 校验不通过。请仔细检查请求参数是否存在且为正整数。 |
| 400 | InvalidParameter.appid | The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID. | 传入的应用ID格式不正确,可使用ListEdgeContainerApps接口获取应用ID。 |
| 400 | InvalidParameter | The specified parameter is invalid. | 输入参数规范校验失败。 |
| 400 | NameAlreadyExists | The name already exists. | 名称已存在。 |
| 400 | ParamNameError | The Name parameter is invalid. | Name参数不合法。 |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 404 | InvalidApp.NotFound | The application does not exist. Check whether the application ID you specified is correct and try again. | 您传入的应用ID对应的应用不存在,请检查后重试。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。