All Products
Search
Document Center

CloudOps Orchestration Service:ListApplicationGroups

Last Updated:Oct 14, 2024

Queries a list of application groups. You can call this operation only for the application groups that reside in the China (Hangzhou) region. Use an endpoint of the China (Hangzhou) region.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
oos:ListApplicationGroupslist
  • ApplicationGroup
    acs:oos:{#regionId}:{#AccountId}:application/{#applicationName}/applicationgroup/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringNo

The ID of the region. Set the value to cn-hangzhou.

cn-hangzhou
ApplicationNamestringNo

The name of the application.

MyApplication
DeployRegionIdstringNo

The ID of the region in which the related resources reside.

cn-hangzhou
MaxResultsintegerNo

The number of entries to return on each page.

10
NextTokenstringNo

The token that is used to retrieve the next page of results.

-
ResourceTypestringNo

The type of the cloud resource.

instance
ResourceIdstringNo

The ID of the cloud resource.

i-2vcj9raxrhxb48zz3whw
ResourceProductstringNo

The code of the product to which the cloud resource belongs.

ecs

Response parameters

ParameterTypeDescriptionExample
object
NextTokenstring

The token that is used to retrieve the next page of results.

-
RequestIdstring

The ID of the request.

69D97BF2-5DF2-544C-A650-36A474E17BC3
MaxResultsinteger

The number of entries returned on each page.

10
ApplicationGroupsarray<object>

The details of the application group.

ApplicationGroupobject
CmsGroupIdstring

The ID of the application group in CloudMonitor.

12345678
DeployRegionIdstring

The ID of the region in which the related resources reside.

cn-hangzhou
UpdateDatestring

The time when the application group was updated.

2021-09-08T03:01:53Z
Descriptionstring

The description of the application group.

ApplicationGroup
ImportTagKeystring

The tag key.

k1
ApplicationNamestring

The name of the application.

MyApplication
ImportTagValuestring

The tag value.

v1
Namestring

The name of the application group.

UpdateMyApplicationGroup
CreateDatestring

The time when the application group was created.

2021-09-07T10:28:25Z
Statusstring

The state of the application group.

Created
DeployParametersstring

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" }, "RegionId": "cn-hangzhou", "StackName": "stack-1645688523068-3no_AKhOJ", "DisableRollback": true }
StatusReasonstring

The state information of the application group.

ApplicationGroup is Created.

Examples

Sample success responses

JSONformat

{
  "NextToken": "-",
  "RequestId": "69D97BF2-5DF2-544C-A650-36A474E17BC3",
  "MaxResults": 10,
  "ApplicationGroups": [
    {
      "CmsGroupId": "12345678",
      "DeployRegionId": "cn-hangzhou",
      "UpdateDate": "2021-09-08T03:01:53Z",
      "Description": "ApplicationGroup",
      "ImportTagKey": "k1",
      "ApplicationName": "MyApplication",
      "ImportTagValue": "v1",
      "Name": "UpdateMyApplicationGroup",
      "CreateDate": "2021-09-07T10:28:25Z",
      "Status": "Created",
      "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\"   },   \"RegionId\": \"cn-hangzhou\",   \"StackName\": \"stack-1645688523068-3no_AKhOJ\",   \"DisableRollback\": true }",
      "StatusReason": "ApplicationGroup is Created."
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-09-19The request parameters of the API has changedView Change Details