Queries the resources in an account group.
In this example, the ca-c560626622af0005****
account group is used. The return result shows a total of eight resources in this
sample account group.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListAggregateDiscoveredResources |
The operation that you want to perform. Set the value to ListAggregateDiscoveredResources. |
ResourceId | String | No | eni-hp31cqoba96jagtz**** |
The ID of the resource. |
ResourceDeleted | Integer | No | 1 |
The status of the resource. Valid values:
|
PageSize | Integer | Yes | 10 |
The number of entries to return on each page. Valid values: 1 to 100. A minimum of 1 entry can be returned on each page. Default value: 10. |
PageNumber | Integer | Yes | 1 |
The number of the page to return. Pages start from page 1. Default value: 1. |
ResourceTypes | String | No | ACS::ECS::NetworkInterface |
The type of the resource. Separate multiple resource types with commas (,). |
Regions | String | No | cn-huhehaote |
The ID of the region in which the resource resides. Separate multiple region IDs with commas (,). For more information about how to obtain the region ID of a resource, see ListAggregateDiscoveredResources. |
AggregatorId | String | Yes | ca-c560626622af0005**** |
The ID of the account group. For more information about how to obtain the ID of an account group, see ListAggregators. |
ResourceOwnerId | Long | No | 161259599160**** |
The ID of the Alibaba Cloud account to which the resource belongs. |
For more information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
DiscoveredResourceProfiles | Object |
The information about the returned resources. |
|
DiscoveredResourceProfileList | Array of DiscoveredResourceProfile |
The information about the resource. |
|
ResourceType | String | ACS::ECS::NetworkInterface |
The type of the resource. |
Region | String | cn-huhehaote |
The ID of the region. |
ResourceCreationTime | Long | 1618675206000 |
The timestamp when the resource was created. Unit: milliseconds. |
Tags | String | {\"key1\":[\"value2\"]} |
The tags of the resource. |
AccountId | Long | 161259599160**** |
The ID of the Alibaba Cloud account to which the resource belongs. |
ResourceId | String | eni-hp31cqoba96jagtz**** |
The ID of the resource. |
ResourceName | String | Cloud Firewall |
The name of the resource. |
ResourceDeleted | Integer | 1 |
Indicates whether the resource is deleted. Valid values:
|
ResourceStatus | String | InUse |
The status of the resource. The parameter value varies based on the resource type and may be left empty. Examples:
|
ResourceOwnerId | Long | 161259599160**** |
The ID of the Alibaba Cloud account to which the resource belongs. |
PageNumber | Integer | 1 |
The page number of the returned page. Pages start from page 1. |
PageSize | Integer | 10 |
The number of entries returned per page. Valid values: 1 to 100. |
TotalCount | Integer | 8 |
The total number of resources. |
RequestId | String | C7817373-78CB-4F9A-8AFA-E7A88E9D64A2 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListAggregateDiscoveredResources
&PageSize=10
&PageNumber=1
&AggregatorId=ca-c560626622af0005****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListAggregateDiscoveredResourcesResponse>
<DiscoveredResourceProfiles>
<DiscoveredResourceProfileList>
<ResourceType>ACS::ECS::NetworkInterface</ResourceType>
<Region>cn-huhehaote</Region>
<ResourceCreationTime>1618675206000</ResourceCreationTime>
<Tags>{\"key1\":[\"value2\"]}</Tags>
<ResourceId>eni-hp31cqoba96jagtz****</ResourceId>
<ResourceName>Cloud Firewall</ResourceName>
<ResourceDeleted>1</ResourceDeleted>
<ResourceStatus>InUse</ResourceStatus>
</DiscoveredResourceProfileList>
<PageNumber>1</PageNumber>
<PageSize>10</PageSize>
<TotalCount>8</TotalCount>
</DiscoveredResourceProfiles>
<RequestId>C7817373-78CB-4F9A-8AFA-E7A88E9D64A2</RequestId>
</ListAggregateDiscoveredResourcesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"DiscoveredResourceProfiles" : {
"DiscoveredResourceProfileList" : [ {
"ResourceType" : "ACS::ECS::NetworkInterface",
"Region" : "cn-huhehaote",
"ResourceCreationTime" : 1618675206000,
"Tags" : "{\"key1\":[\"value2\"]}",
"ResourceId" : "eni-hp31cqoba96jagtz****",
"ResourceName" : "Cloud Firewall",
"ResourceDeleted" : 1,
"ResourceStatus" : "InUse"
} ],
"PageNumber" : 1,
"PageSize" : 10,
"TotalCount" : 8
},
"RequestId" : "C7817373-78CB-4F9A-8AFA-E7A88E9D64A2"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission | You are not authorized to perform this operation. | The error message returned because you are not authorized to perform the specified operation. |
400 | MemberNotBelongToMaster | The specified member does not belong to your organization. | The error message returned because the specified member account does not belong to your resource directory. |
404 | AccountNotExisted | Your account does not exist. | The error message returned because the specified account does not exist. |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | The error message returned because the service is unavailable. |
For a list of error codes, visit the API Error Center.