ListDiscoveredResources

Last updated: 2020-12-17 17:00:42
This document is currently invalid. Please refer to the documentation page of the product.

1. API Description

Domain name for API request: cloudaudit.tencentcloudapi.com.

This API is used to view the list of discovered 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 parameter. The value used for this API: ListDiscoveredResources.
Version Yes String Common parameter. The value used for this API: 2019-03-19.
Region Yes String Common parameter. For more information, please see the list of regions supported by the product.
ResourceType No String Resource type
ResourceId No String Resource ID
Limit No Integer Returned number. default: 20, maximum: 200.
ResourceRegion No String Resource region
Offset No Integer Offset. Default: 0.
IsDeleted No Boolean Whether the resource is deleted

3. Output Parameters

Parameter Name Type Description
TotalCount Integer Total number
Resources Array of Resources Resource list
Note: this field may return null, indicating that no valid values can be obtained.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Viewing the list of discovered resources

Input Example

https://cloudaudit.tencentcloudapi.com/?Action=ListDiscoveredResources
&ResourceId=xx
&ResourceRegion=xx
&ResourceType=xx
&IsDeleted=true
&Limit=1
&Offset=10
&<Common request parameters>

Output Example

{
  "Response": {
    "Resources": [
      {
        "ResourceId": "audit/xxxx",
        "ResourceAlias": "xxxx",
        "ResourceType": "TCS::CloudAudit::Audit",
        "ResourceRegion": "ap-guangzhou",
        "IsDeleted": false,
        "CreateTime": "2019-10-18 17:13:49"
      },
      {
        "ResourceId": "groupid/28410",
        "ResourceAlias": "Test 1",
        "ResourceType": "TCS::CAM::Group",
        "ResourceRegion": "",
        "IsDeleted": false,
        "CreateTime": "2017-11-30 15:33:58"
      },
      {
        "ResourceId": "groupid/28421",
        "ResourceAlias": "Test 2",
        "ResourceType": "TCS::CAM::Group",
        "ResourceRegion": "",
        "IsDeleted": false,
        "CreateTime": "2017-11-30 16:51:39"
      },
      {
        "ResourceId": "groupid/28423",
        "ResourceAlias": "Test 3",
        "ResourceType": "TCS::CAM::Group",
        "ResourceRegion": "",
        "IsDeleted": false,
        "CreateTime": "2017-11-30 16:52:55"
      },
      {
        "ResourceId": "groupid/81635",
        "ResourceAlias": "test_role",
        "ResourceType": "TCS::CAM::Group",
        "ResourceRegion": "",
        "IsDeleted": false,
        "CreateTime": "2019-07-15 14:18:25"
      },
      {
        "ResourceId": "groupid/89249",
        "ResourceAlias": "ayisun_test_config_group_2",
        "ResourceType": "TCS::CAM::Group",
        "ResourceRegion": "",
        "IsDeleted":