Creates an edge container application. Deploy and release application versions across points of presence (POPs).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:CreateEdgeContainerApp |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the application. The name must start with a lowercase letter and can contain lowercase letters, digits, and hyphens (-). The name must be 6 to 128 characters in length. |
app-test |
| ServicePort |
integer |
Yes |
The server port. Valid values: 1 to 65535. |
80 |
| TargetPort |
integer |
Yes |
The backend port, which is also the service port of the application. Valid values: 1 to 65535. |
80 |
| Remarks |
string |
No |
The remarks. Empty by default. |
test app |
| HealthCheckType |
string |
No |
The health check type. Empty by default. Valid values:
|
l7 |
| HealthCheckHost |
string |
No |
The domain name used for health checks. Empty by default. |
www.aliyun.com |
| HealthCheckHttpCode |
string |
No |
The HTTP status code returned for a successful health check. Valid values:
|
http_2xx |
| HealthCheckMethod |
string |
No |
The HTTP request method for health checks. Valid values:
|
HEAD |
| HealthCheckURI |
string |
No |
The URI used for health checks. The URI must be 1 to 80 characters in length. Default value: "/". |
/health_check |
| HealthCheckPort |
integer |
No |
The port used for health checks. Valid values: 1 to 65535. Default value: 80. |
80 |
| HealthCheckTimeout |
integer |
No |
The timeout period for health check responses. If a backend ECS instance does not respond within this period, the health check fails. Unit: seconds. |
5 |
| HealthCheckInterval |
integer |
No |
The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 5. |
5 |
| HealthCheckSuccTimes |
integer |
No |
The number of consecutive successful health checks required for an application to be considered healthy. Valid values: 1 to 10. Default value: 2. |
2 |
| HealthCheckFailTimes |
integer |
No |
The number of consecutive failed health checks required for an application to be considered unhealthy. Valid values: 1 to 10. Default value: 5. |
3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| AppId |
string |
The application ID. |
app-880688675783794688 |
| RequestId |
string |
The request ID. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
Examples
Success response
JSON format
{
"AppId": "app-880688675783794688",
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.HealthCheckType | Specified parameter HealthCheckType is not valid. | Parameter HealthCheckType format is incorrect. |
| 400 | InvalidParameter.HealthCheckHost | Specified parameter HealthCheckHost is not valid. | Parameter HealthCheckHost format is incorrect. |
| 400 | InvalidParameter.HealthCheckHttpCode | Specified parameter HealthCheckHttpCode is not valid. | Parameter HealthCheckHttpCode format is incorrect. |
| 400 | InvalidParameter.HealthCheckMethod | Specified parameter HealthCheckMethod is not valid. | Parameter HealthCheckMethod format is incorrect. |
| 400 | InvalidParameter.HealthCheckURI | Specified parameter HealthCheckURI is not valid. | Parameter HealthCheckURI format is incorrect. |
| 400 | InvalidParameter.HealthCheckInterval | Specified parameter HealthCheckInterval is not valid. | Parameter HealthCheckInterval format is incorrect. |
| 400 | InvalidParameter.HealthCheckTimeout | Specified parameter HealthCheckTimeout is not valid. | Parameter HealthCheckTimeout format is incorrect. |
| 400 | InvalidParameter.HealthCheckSuccTimes | Specified parameter HealthCheckSuccTimes is not valid. | Parameter HealthCheckHost format is incorrect. |
| 400 | InvalidParameter.HealthCheckFailTimes | Specified parameter HealthCheckFailTimes is not valid. | Parameter HealthCheckFailTimes format is incorrect. |
| 400 | InvalidParameter.HealthCheckPort | Specified parameter HealthCheckPort is not valid. | Parameter HealthCheckPort format is incorrect. |
| 400 | InvalidParameter.PageNumber | Failed to verify parameter PageNumber.Check whether the parameter exists and is set to a positive integer. | 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. | The format of the application ID is invalid. You can call ListEdgeContainerApps to obtain the application ID. |
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | NameAlreadyExists | The name already exists. | Name already exists. |
| 400 | ParamNameError | The Name parameter is invalid. | The Name parameter is illegal. |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | 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. | The application does not exist. Check whether the application ID you specified is correct and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.