tencent cloud

配置审计

产品简介
产品概述
产品优势
产品功能
应用场景
基本概念
使用限制
支持的资源类型
购买指南
快速入门
操作指南
资源
规则
合规包
设置
API 文档
History
Introduction
API Category
Making API Requests
Rule APIs
Resource APIs
Data Types
Error Codes
常见问题
一般性问题
功能性问题
联系我们
词汇表
文档配置审计API 文档Resource APIsListAggregateDiscoveredResources

ListAggregateDiscoveredResources

聚焦模式
字号
最后更新时间: 2025-10-30 21:37:05

1. API Description

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.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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

3. Output Parameters

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.

4. Example

Example1 Getting resource list

This API is used to get the resource list.

Input Example

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"
}

Output Example

{
    "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"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈