Deploys an application in an Elastic Compute Service (ECS) cluster.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ManageApplication |
none |
*Application
|
None | None |
Request syntax
POST /pop/v5/changeorder/co_deploy HTTP/1.1
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 |
integer |
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 |
integer |
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 elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
The HTTP status code that is returned. |
200 |
| ChangeOrderId |
string |
The change process ID of the application deployment. |
adf86823-055b-48a4-a59f-fa5582****** |
| Message |
string |
The message returned for the request. |
success |
| RequestId |
string |
The ID of the request. |
d6834ee9-5045-************* |
Examples
Success response
JSON format
{
"Code": 200,
"ChangeOrderId": "adf86823-055b-48a4-a59f-fa5582******",
"Message": "success",
"RequestId": "d6834ee9-5045-*************"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.