Creates a containerized application. You can deploy and release a version of the application across points of presence (POPs).
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| esa:CreateEdgeContainerApp | none | *All Resources * |
| 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. This parameter is empty by default. | test app |
| HealthCheckType | string | No | The health check type. By default, this parameter is left empty. Valid values:
| l7 |
| HealthCheckHost | string | No | The domain name that is used for health checks. This parameter is 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 of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. 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 as 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 as unhealthy. Valid values: 1 to 10. Default value: 5. | 3 |
Response parameters
Examples
Sample success responses
JSONformat
{
"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. |
| 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. |
| 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. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
