GetApplicationGroup
Retrieves the details of an application group. The application management service is available only in the China (Hangzhou) region. Use the Hangzhou endpoint.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oos:GetApplicationGroup |
get |
*ApplicationGroup
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. Currently, only cn-hangzhou is supported. |
cn-hangzhou |
| Name |
string |
Yes |
The name of the application group. |
MyApplicationGroup |
| ApplicationName |
string |
Yes |
The application name. |
MyApplication |
| ShowMonitorURL |
boolean |
No |
Specifies whether to return the application monitoring URL. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| ApplicationGroup |
object |
The details of the application group. |
|
| ApplicationName |
string |
The application name. |
MyApplication |
| ApplicationSource |
string |
The application source. |
{"Platform":"github","RepoName":"xxx/springboot-ecs-sourcecode-demo","Owner":"xxx","Branch":"main","CommitHash":"8559ff3xxxxxxxxxf06c6fe","CommitMessage":"Init computenest project"} |
| CmsGroupId |
string |
The CloudMonitor group ID. |
12345678 |
| CreateDate |
string |
The time when the application group was created, in ISO 8601 format in UTC. |
2021-09-07T10:28:25Z |
| DeployOutputs |
string |
The deployment result outputs. |
{ "Outputs": [ { "Description": "No description given", "OutputKey": "InstanceIds" } ], "StackId": "6ef4b860-f6e7-4145-8d22-f4a2a32363e1" } |
| DeployParameters |
string |
The configuration information of the application group. |
{ "TemplateURL": "https://ros-template.oss-cn-zhangjiakou.aliyuncs.com/App_Management_Existing_Vpc_Ecs_Instance.json", "Parameters": { "ZoneId": "cn-hangzhou-k", "ProjectName": "test", "SystemDiskSize": 40, "InstanceChargeType": "PostPaid", "SecurityGroupId": "sg-bp1a4374akk63jl8tddy", "VSwitchId": "vsw-bp1fcvc3zn0jrag86rrlm", "SystemDiskCategory": "cloud_essd", "InstancePassword": "******", "InternetChargeType": "PayByTraffic", "InstanceCount": 1, "InternetMaxBandwidthOut": 0, "VpcId": "vpc-bp1i99boyas8i8m9t3skp", "EcsImageId": "centos_8_5_x64_20G_alibase_20211228.vhd", "DataDiskSize": 100, "EcsInstanceType": "ecs.s6-c1m4.small", "DataDiskCategory": "cloud_efficiency", "EnvironmentCommandId": "c-hz028fc3g031gcg" } } |
| DeployRegionId |
string |
The deployment region ID. |
cn-hangzhou |
| DeployedRevisionIds |
string |
The list of deployed revision IDs. Only the 10 most recently deployed revisions are displayed. |
["rev-f575b688015442d28d26","rev-b9876a39cf84490db638","rev-782fc7a0c0974d89b1eb"] |
| Description |
string |
The description of the application group. |
ApplicationGroup |
| ErrorDetail |
string |
The error details of the build failure. |
ERROR: failed to build: executing lifecycle: failed with status code: 51 |
| ErrorType |
string |
The error type of the build failure. |
Build |
| ExecutionId |
string |
The execution ID. |
exec-f5dee943869c436a9f57 |
| ImportTagKey |
string |
The tag key. |
k1 |
| ImportTagValue |
string |
The tag value. |
v1 |
| MonitorMetadata |
string |
The monitoring metadata. |
[{"CmsProject":"workspace1","CmsApplicationName":"default"}] |
| MonitorURL |
string |
The monitoring URL. |
http//xxx.com |
| Name |
string |
The name of the application group. |
MyApplicationGroup |
| OperationMetadata |
string |
The managed O&M configuration. |
{\"PrometheusConfigMap\":{\"template1\":{\"EnablePrometheus\":false}}} |
| Progress |
string |
The progress of application instance creation. |
100 |
| Status |
string |
The status of the application group. |
Created |
| StatusReason |
string |
The status details of the application group. |
Stack CREATE completed successfully |
| UpdateDate |
string |
The time when the application group was last updated, in ISO 8601 format in UTC. |
2021-09-07T10:28:25Z |
| RequestId |
string |
The request ID. |
92EA60ED-544D-55E9-93D9-237BE9976C0D |
Examples
Success response
JSON format
{
"ApplicationGroup": {
"ApplicationName": "MyApplication",
"ApplicationSource": "{\"Platform\":\"github\",\"RepoName\":\"xxx/springboot-ecs-sourcecode-demo\",\"Owner\":\"xxx\",\"Branch\":\"main\",\"CommitHash\":\"8559ff3xxxxxxxxxf06c6fe\",\"CommitMessage\":\"Init computenest project\"}",
"CmsGroupId": "12345678",
"CreateDate": "2021-09-07T10:28:25Z",
"DeployOutputs": "{ \"Outputs\": [ { \"Description\": \"No description given\", \"OutputKey\": \"InstanceIds\" } ], \"StackId\": \"6ef4b860-f6e7-4145-8d22-f4a2a32363e1\" } ",
"DeployParameters": "{ \"TemplateURL\": \"https://ros-template.oss-cn-zhangjiakou.aliyuncs.com/App_Management_Existing_Vpc_Ecs_Instance.json\", \"Parameters\": { \"ZoneId\": \"cn-hangzhou-k\", \"ProjectName\": \"test\", \"SystemDiskSize\": 40, \"InstanceChargeType\": \"PostPaid\", \"SecurityGroupId\": \"sg-bp1a4374akk63jl8tddy\", \"VSwitchId\": \"vsw-bp1fcvc3zn0jrag86rrlm\", \"SystemDiskCategory\": \"cloud_essd\", \"InstancePassword\": \"******\", \"InternetChargeType\": \"PayByTraffic\", \"InstanceCount\": 1, \"InternetMaxBandwidthOut\": 0, \"VpcId\": \"vpc-bp1i99boyas8i8m9t3skp\", \"EcsImageId\": \"centos_8_5_x64_20G_alibase_20211228.vhd\", \"DataDiskSize\": 100, \"EcsInstanceType\": \"ecs.s6-c1m4.small\", \"DataDiskCategory\": \"cloud_efficiency\", \"EnvironmentCommandId\": \"c-hz028fc3g031gcg\" }\n}",
"DeployRegionId": "cn-hangzhou",
"DeployedRevisionIds": "[\"rev-f575b688015442d28d26\",\"rev-b9876a39cf84490db638\",\"rev-782fc7a0c0974d89b1eb\"]",
"Description": "ApplicationGroup",
"ErrorDetail": "ERROR: failed to build: executing lifecycle: failed with status code: 51",
"ErrorType": "Build",
"ExecutionId": "exec-f5dee943869c436a9f57",
"ImportTagKey": "k1",
"ImportTagValue": "v1",
"MonitorMetadata": "[{\"CmsProject\":\"workspace1\",\"CmsApplicationName\":\"default\"}]",
"MonitorURL": "http//xxx.com",
"Name": "MyApplicationGroup",
"OperationMetadata": "{\\\"PrometheusConfigMap\\\":{\\\"template1\\\":{\\\"EnablePrometheus\\\":false}}}",
"Progress": "100",
"Status": "Created",
"StatusReason": "Stack CREATE completed successfully",
"UpdateDate": "2021-09-07T10:28:25Z"
},
"RequestId": "92EA60ED-544D-55E9-93D9-237BE9976C0D"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.