Domain name for API request: config.intl.tencentcloudapi.com.
Account Group access the list of resources.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: ListAggregateDiscoveredResources. |
Version | Yes | String | Common Params. The value used for this API: 2022-08-02. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
MaxResults | Yes | Integer | Items per Page |
AccountGroupId | Yes | String | Account group ID |
Filters.N | No | Array of Filter | resourceName: Resource name; resourceId: Resource ID; resourceType: Resource type |
Tags.N | No | Array of Tag | |
NextToken | No | String | Next page token. |
OrderType | No | String | Sorting method asc, desc |
Parameter Name | Type | Description |
---|---|---|
Items | Array of AggregateResourceInfo | Details. |
NextToken | String | next page Note: This field may return null, indicating that no valid value is found. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This API is used to get the resource list.
POST / HTTP/1.1
Host: config.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ListAggregateDiscoveredResources
<Common request parameters>
{
"AccountGroupId": "ca-sdfsdfsdf",
"OrderType": "DESC",
"Tags": [
{
"TagKey": "TAG1",
"TagValue": "TAG3"
}
],
"MaxResults": 1,
"Filters": [
{
"Values": [
"CVM"
],
"Name": "resourceType"
}
],
"NextToken": "sdfsdfsdf456457rsf"
}
{
"Response": {
"Items": [
{
"ResourceOwnerName": "nickname",
"ResourceStatus": "1",
"ResourceOwnerId": 1,
"Tags": [
{
"TagKey": "TAG2",
"TagValue": "33ATG5"
}
],
"ResourceType": "cvm",
"ResourceId": "ins-324234",
"ResourceCreateTime": "234234234234",
"ResourceRegion": "ap-hangzhou",
"ResourceName": "server"
"ResourceZone": "ap-guanghzou",
"ResourceDelete": 1,
"ComplianceResult": "COMPLIANCE"
}
],
"NextToken": "0f6ac54682ee49d5b0",
"RequestId": "3d105d8-5820-434f-9fac-76f92"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InternalError | Internal error. |
InvalidParameter | Parameter error. |
ResourceNotFound.AccountGroupIsNotExist | Account group does not exist. |