Call the ListDeployGroup operation to obtain a list of deployment groups.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ReadApplication |
get |
*Application
|
None | None |
Request syntax
POST /pop/v5/app/deploy_group_list HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The ID of the application. Call the ListApplication operation to obtain the application ID. For more information, see ListApplication. |
3616cdca-4f92-4413-****-************ |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| Code |
integer |
The status code of the request or a POP error code. |
200 |
| Message |
string |
The returned message. |
success |
| RequestId |
string |
The ID of the request. |
3FDE-DS9R-********************* |
| DeployGroupList |
object |
||
| DeployGroup |
array<object> |
The list of deployment groups. |
|
|
object |
A deployment group. |
||
| VServerGroupId |
string |
The ID of the vServer group for the internal-facing SLB instance that is associated with the deployment group. |
rsp-cige6****** |
| Status |
string |
The status of the group.
|
2 |
| CpuRequest |
string |
The number of CPU cores requested for the application instance. A value of 0 indicates that no limit is set. |
1 |
| UpdateTime |
integer |
The UNIX timestamp when the deployment group was updated. |
1573627695779 |
| MemoryRequest |
string |
The amount of memory requested for the application instance. Unit: MB. A value of 0 indicates that no limit is set. |
512 |
| NameSpace |
string |
The namespace. |
ping****est |
| AppVersionId |
string |
The ID of the deployment record for the group. |
changeorder_a**_*******_** |
| CreateTime |
integer |
The UNIX timestamp when the deployment group was created. |
1573627695779 |
| DeploymentName |
string |
The name of the deployment. |
test |
| PreStop |
string |
The script that is run before the instance is stopped. |
{\"exec\":{\"command\":[\"ls\",\"/\"]}}" |
| PackageUrl |
string |
The URL of the deployment package. |
http://****.oss-cn-shanghai.aliyuncs.com/****/sc-****-consumer-E.jar |
| PackageVersion |
string |
The version of the deployment package. |
E |
| BaseComponentMetaName |
string |
The name of the base component. |
k8s-sc-consumer-**** |
| CsClusterId |
string |
The ID of the container cluster. |
c66e65950db****cba92f17434df1**** |
| AppId |
string |
The ID of the application. |
3616cdca-4f92-4413-****-************ |
| LastUpdateTime |
integer |
The UNIX timestamp of the last update. |
1587888503825 |
| Env |
string |
The ID of the container service cluster. |
497806cb-****-6a7 |
| CpuLimit |
string |
The maximum number of CPU cores allowed for the application instance. |
400 |
| GroupType |
integer |
The type of the group.
|
1 |
| ClusterId |
string |
The ID of the cluster. |
0d247b93-8d62-4e34-****-************ |
| PostStart |
string |
The script that is run after the instance is started. |
{\"exec\":{\"command\":[\"ls\",\"/\"]}}" |
| Labels |
string |
The labels. |
test |
| MemoryLimit |
string |
The maximum amount of memory allowed for the application instance. Unit: MB. A value of 0 indicates that no limit is set. |
0 |
| Strategy |
string |
The throttling policy. This is a reserved field. |
RollingUpdate |
| Selector |
string |
The ID of the application that is deployed in an Enterprise Distributed Application Service (EDAS) Kubernetes cluster. |
53dd85cc-25b4-4d0e-****-6bf5465****4 |
| GroupId |
string |
The ID of the group. |
577f4c50-16ee-43d8-****-************ |
| GroupName |
string |
The name of the group. |
_DEFAULT_GROUP |
| ClusterName |
string |
The name of the cluster. |
doc-test |
| PackageVersionId |
string |
The ID of the version that was deployed in the group. |
a7d48fe8-ad8f-****-89bd-74cc1ee6**** |
| Reversion |
string |
The application version. The value is an integer that is incremented from 0 to 7. |
2 |
| VExtServerGroupId |
string |
The ID of the vServer group for the Internet-facing SLB instance that is associated with the deployment group. |
rsp-cige6****** |
| PackagePublicUrl |
string |
The public URL of the deployment package. |
http://****.oss-cn-shanghai.aliyuncs.com/****/sc-****-consumer-E.jar |
| EphemeralStorageRequest |
string |
The minimum temporary storage required. Unit: GB. A value of 0 indicates that no limit is set. |
4 |
| EphemeralStorageLimit |
string |
The maximum temporary storage allowed. Unit: GB. A value of 0 indicates that no limit is set. |
8 |
Examples
Success response
JSON format
{
"Code": 200,
"Message": "success",
"RequestId": "3FDE-DS9R-*********************",
"DeployGroupList": {
"DeployGroup": [
{
"VServerGroupId": "rsp-cige6******",
"Status": "2",
"CpuRequest": "1",
"UpdateTime": 1573627695779,
"MemoryRequest": "512",
"NameSpace": "ping****est",
"AppVersionId": "changeorder_a**_*******_**",
"CreateTime": 1573627695779,
"DeploymentName": "test",
"PreStop": "{\\\"exec\\\":{\\\"command\\\":[\\\"ls\\\",\\\"/\\\"]}}\"",
"PackageUrl": "http://****.oss-cn-shanghai.aliyuncs.com/****/sc-****-consumer-E.jar",
"PackageVersion": "E",
"BaseComponentMetaName": "k8s-sc-consumer-****",
"CsClusterId": "c66e65950db****cba92f17434df1****",
"AppId": "3616cdca-4f92-4413-****-************",
"LastUpdateTime": 1587888503825,
"Env": "497806cb-****-6a7",
"CpuLimit": "400",
"GroupType": 1,
"ClusterId": "0d247b93-8d62-4e34-****-************",
"PostStart": "{\\\"exec\\\":{\\\"command\\\":[\\\"ls\\\",\\\"/\\\"]}}\"",
"Labels": "test",
"MemoryLimit": "0",
"Strategy": "RollingUpdate",
"Selector": "53dd85cc-25b4-4d0e-****-6bf5465****4",
"GroupId": "577f4c50-16ee-43d8-****-************",
"GroupName": "_DEFAULT_GROUP",
"ClusterName": "doc-test",
"PackageVersionId": "a7d48fe8-ad8f-****-89bd-74cc1ee6****",
"Reversion": "2",
"VExtServerGroupId": "rsp-cige6******",
"PackagePublicUrl": "http://****.oss-cn-shanghai.aliyuncs.com/****/sc-****-consumer-E.jar",
"EphemeralStorageRequest": "4",
"EphemeralStorageLimit": "8"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.