Queries the details of the resources in an application group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeMonitorGroupInstanceAttribute

The operation that you want to perform. Set the value to DescribeMonitorGroupInstanceAttribute.

GroupId Long Yes 123456

The ID of the application group.

PageNumber Integer No 1

The number of the page to return.

Valid values: 1 to 1000000000.

Default value: 1.

PageSize Integer No 10

The number of entries to return on each page.

Valid values: 1 to 1000000000.

Default value: 10.

Total Boolean No true

Specifies whether to return the total number of resources in the specified application group. Valid values:

  • true (default value)
  • false
Category String No ecs

The abbreviation of the Alibaba Cloud service name.

To obtain the abbreviation of an Alibaba Cloud service name, call the DescribeProjectMeta operation. The metricCategory tag in the Labels response parameter indicates the abbreviation of the Alibaba Cloud service name.

Keyword String No portal

The keyword that is used to search for resources.

InstanceIds String No i-m5e0k0bexac8tykr****

The ID of the resource. Separate multiple resource IDs with commas (,). You can query the details about a maximum of 20 resources in each request.

Response parameters

Parameter Type Example Description
RequestId String 9FB8EA79-7279-4482-8D6D-3D28EEDD871A

The ID of the request.

Success Boolean true

Indicates whether the call was successful. Valid values:

  • true: The call was successful.
  • false: The call failed.
Code Integer 200

The HTTP status code.

Note The status code 200 indicates that the call was successful.
Message String The specified resource is not found.

The error message.

PageNumber Integer 1

The page number of the returned page.

PageSize Integer 2

The total number of returned pages.

Total Integer 12

The total number of returned entries.

Resources Array of Resource

The resources that are associated with the application group.

Resource
InstanceName String hostName

The name of the instance.

Dimension String {"instanceId":"i-m5e0k0bexac8tykr****"}

The dimensions of the resource that is associated with the application group.

Category String ecs

The name of the cloud service.

InstanceId String i-m5e0k0bexac8tykr****

The ID of the instance.

NetworkType String vpc

The network type.

Desc String desc_test

The description of the resource.

Tags Array of Tag

The tags of the resource.

Tag
Key String instanceNetworkType

The tag key.

Value String VPC

The tag value.

Region Object

The region information.

AvailabilityZone String cn-hangzhou-f

The ID of the zone.

RegionId String cn-hangzhou

The ID of the region.

Vpc Object

The information about the virtual private cloud (VPC).

VswitchInstanceId String vsw-2ze36seq79n992****

The ID of the vSwitch to which the instance belongs.

VpcInstanceId String vpc-2zew7etgiceg21****

The ID of the VPC.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeMonitorGroupInstanceAttribute
&GroupId=123456
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeMonitorGroupInstanceAttributeResponse>
	<PageNumber>1</PageNumber>
	<PageSize>30</PageSize>
	<RequestId>7DB8DA3D-EDA6-46F8-9222-70C52416AE7D</RequestId>
	<Success>true</Success>
	<Code>200</Code>
	<Total>1</Total>
	<Resources>
		<Resource>
			<Vpc>
				<VswitchInstanceId>vsw-2ze36seq79n992****</VswitchInstanceId>
				<VpcInstanceId>vpc-2zew7etgiceg21****</VpcInstanceId>
			</Vpc>
			<Tags>
				<Tag>
					<Value>12345</Value>
					<Key>aliUid</Key>
				</Tag>
				<Tag>
					<Value>26842</Value>
					<Key>bid</Key>
				</Tag>
			</Tags>
			<NetworkType>VPC</NetworkType>
			<Category>RDS</Category>
			<Region>
				<RegionId>cn-hangzhou</RegionId>
				<AvailabilityZone>cn-hangzhou-MAZ8(f,g)</AvailabilityZone>
			</Region>
			<AliUid>127067667954****</AliUid>
			<InstanceId>i-m5e0k0bexac8tykr****</InstanceId>
			<Dimension>{\"userId\":\"127067667954****\",\"instanceId\":\"rm-bp179a8xfaz4i****\"}</Dimension>
			<Desc>test_name</Desc>
			<InstanceName>test_name</InstanceName>
		</Resource>
	</Resources>
</DescribeMonitorGroupInstanceAttributeResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "PageNumber" : 1,
  "PageSize" : 30,
  "RequestId" : "7DB8DA3D-EDA6-46F8-9222-70C52416AE7D",
  "Success" : true,
  "Code" : 200,
  "Total" : 1,
  "Resources" : {
    "Resource" : [ {
      "Vpc" : {
        "VswitchInstanceId" : "vsw-2ze36seq79n992****",
        "VpcInstanceId" : "vpc-2zew7etgiceg21****"
      },
      "Tags" : {
        "Tag" : [ {
          "Value" : "12345",
          "Key" : "aliUid"
        }, {
          "Value" : "26842",
          "Key" : "bid"
        } ]
      },
      "NetworkType" : "VPC",
      "Category" : "RDS",
      "Region" : {
        "RegionId" : "cn-hangzhou",
        "AvailabilityZone" : "cn-hangzhou-MAZ8(f,g)"
      },
      "AliUid" : "127067667954****",
      "InstanceId" : "i-m5e0k0bexac8tykr****",
      "Dimension" : "{\"userId\":\"127067667954****\",\"instanceId\":\"rm-bp179a8xfaz4i****\"}",
      "Desc" : "test_name",
      "InstanceName" : "test_name"
    } ]
  }
}

Error codes

HttpCode Error code Error message Description
404 ResourceNotFound The specified resource is not found. The error message returned because the specified resource is not found.

For a list of error codes, see Service error codes.