Deploys an application in an Elastic Compute Service (ECS) cluster.
Operation description
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:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is 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 |
---|---|---|---|---|
edas:ManageApplication | Write |
|
| none |
Request syntax
POST /pop/v5/changeorder/co_deploy
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AppId | string | Yes | The ID of the application. You can call the ListApplication operation to query the application ID. For more information, see ListApplication . | 3616cdca-******************** |
PackageVersion | string | Yes | The version of the application deployment package. The value can be up to 64 characters in length. We recommend that you use a timestamp. | 1.0 |
Desc | string | No | The description of the application deployment. | Deploy by edas pop api |
DeployType | string | Yes | The deployment mode of the application. Valid values: | URL |
WarUrl | string | No | The URL of the application deployment package. The package can be a WAR or JAR package. This parameter is required if you set the DeployType parameter to | https://edas.oss-cn-hangzhou.aliyuncs.com/demo/hello-edas.war |
ImageUrl | string | No | The URL of the application image that is used to deploy the application in a Swarm cluster. We recommend that you use an image that is stored in Alibaba Cloud Container Registry. This parameter is deprecated. | registry.cn-hangzhou.aliyuncs.com/mw/testapp:latest |
GroupId | string | Yes | The ID of the instance group to which the application is deployed. You can call the ListDeployGroup operation to query the ID of the instance group. For more information, see ListDeployGroup . Set the parameter to | all |
Batch | integer | No | The number of batches per instance group.
| 1 |
BatchWaitTime | integer | No | The wait time between deployment batches for the application. Unit: minutes.
If many deployment batches are needed, we recommend that you specify a small value for this parameter. Otherwise, the application deployment is time-consuming. | 0 |
AppEnv | string | No | The environment variables of the application. Specify each environment variable by using two key-value pairs. Example: | [{\"name\":\"env_name_1\", \"value\":\"env_value_1\"}, {\"name\":\"env_name_2\",\"value\":\"env_value_2\"}] |
BuildPackId | long | No | The build package number of EDAS Container.
You can query the build package number by using one of the following methods:
| 59 |
ComponentIds | string | No | The IDs of the components used by the application. The parameter is not applicable to High-Speed Framework (HSF) applications. You can call the ListComponents operation to query the component IDs. For more information, see ListComponents .
Valid values for common application components:
For more information, see the Common application parameters section of the InsertApplication topic. | 7 |
ReleaseType | long | No | The mode in which the deployment batches are triggered. Valid values:
| 0 |
Gray | boolean | No | Specifies whether canary release is selected as the deployment method. Valid values:
| true |
TrafficControlStrategy | string | No | The canary release policy. For more information about canary release policies, see DeployK8sApplication . | {"http":{"rules":[{"conditionType":"percent","percent":10}]}} |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": 200,
"ChangeOrderId": "adf86823-055b-48a4-a59f-fa5582******",
"Message": "success",
"RequestId": "d6834ee9-5045-*************"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|