GetConfigurationItems

Last updated: 2020-12-17 17:00:42

1. API Description

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

This API is used to get the list of resource configuration items and display resource configuration changes in chronological order.

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: GetConfigurationItems.
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.
ResourceId Yes String Resource ID
ChronologicalOrder No String Chronological order. Valid values: Reverse, Forward (default).
StartTime No Timestamp Start time
Offset No Integer Offset. Default value: 0.
DiffMode No Boolean Whether to enable DiffMode. Valid values: true, false (default).
Limit No Integer Returned number. default: 10, maximum: 100.
EndTime No Timestamp End time

3. Output Parameters

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

4. Example

Example1 Getting the resource configuration item list

Input Example

https://cloudaudit.tencentcloudapi.com/?Action=GetConfigurationItems
&Limit=1
&Offset=10
&ChronologicalOrder=xx
&ResourceId=xx
&StartTime=2014-08-03 12:00:00
&DiffMode=true
&EndTime=2014-08-03 12:00:00
&<Common request parameters>

Output Example

{
  "Response": {
    "ConfigurationItems": [
      {
        "ConfigurationStateId": "c6d39f90a4e308e38c0ea8e56e444487",
        "Version": "1.0",
        "ResourceId": "clb/lb-elcmnqgz",
        "ResourceAlias": "lb-9e7cf",
        "ResourceType": "TCS::CLB::Instance",
        "ResourceRegion": "ap-guangzhou",
        "ResourceCreateTime": "2019-10-12 17:38:59",
        "ConfigurationItemStatus": "OK",
        "Relationships": "[{\"resourceType\":\"TCS::VPC::Vpc\",\"resourceId\":\"vpc/vpc-8jrf965y\"},{\"resourceType\":\"TCS::VPC::Subnet\",\"resourceId\":\"subnet/subnet-3osq5emo\"}]",
        "Configuration": "{\"LoadBalancerVips\":[\"172.16.0.9\"],\"TargetRegionInfo\":{\"Region\":\"ap-guangzhou\",\"VpcId\":\"vpc-8jrf965r\"},\"Log\":\"\",\"ExtraInfo\":null,\"BackupZoneSet\":null,\"NetworkAttributes\":null,\"Forward\":1,\"AnycastZone\":\"\",\"StatusTime\":\"2019-10-12 17:39:01\",\"Snat\":false,\"Status\":3,\"MasterZone\":null,\"VpcId\":\"vpc-8jrf965r\",\"IsolatedTime\":null,\"Tags\":[],\"NumericalVpcId\":1036916,\"Isolation\":0,\"SubnetId\":\"subnet-3osq5emo\",\"AddressIPVersion\":\"ipv4\",\"PrepaidAttributes\":null,\"VipIsp\":\"INTERNAL\",\"AddressIPv6\":null,\"ProjectId\":0,\"LogTopicId\":\"\",\"LoadBalancerName\":\"lb-9e7cf\",\"SecureGroups\":[],\"LoadBalancerType\":\"INTERNAL\",\"Domain\":\"\",\"LogSetId\":\"\",\"ExpireTime\":null,\"ChargeType\":\"POSTPAID_BY_HOUR\",\"LoadBalancerId\":\"lb-elcmnqgz\",\"OpenBgp\":0,\"CreateTime\":\"2019-10-12 17:38:59\"}",
        "ConfigurationItemCaptureTime": "2019-10-23 11:38:59",
        "RelatedEvents": [
          {
            "EventReqId": "24651741636774_d0d5b8d6f3722a138ef5fb601330bd0463e929bf_v2",
            "EventName": "cam:UpdateSubAccount",
            "OperateUin": 1150691759,
            "EventTime": "2019-10-12 18:11:23"
          }
        ],
        "LastItemInfo": "[]"
      },
      {
        "ConfigurationStateId": "e0323505d9348643c31057df338c2a81",
        "Version": "1.0",
        "ResourceId": "clb/lb-elcmnqgz",
        "ResourceAlias": "lb-9e7cf",
        "ResourceType": "TCS::CLB::Instance",
        "ResourceRegion": "ap-guangzhou",
        "ResourceCreateTime": "2019-10-12 17:38:59",
        "ConfigurationItemStatus": "OK",
        "Relationships": "[{\"resourceType\":\"TCS::VPC::Vpc\",\"resourceId\":\"vpc/vpc-8jrf965y\"},{\"resourceType\":\"TCS::VPC::Subnet\",\"resourceId\":\"subnet/subnet-3osq5emo\"}]",
        "Configuration": "{\"LoadBalancerVips\":[\"172.16.0.9\"],\"TargetRegionInfo\":{\"Region\":\"ap-guangzhou\",\"VpcId\":\"vpc-8jrf965r\"},\"Log\":\"\",\"ExtraInfo\":null,\"BackupZoneSet\":null,\"NetworkAttributes\":null,\"Forward\":1,\"AnycastZone\":\"\",\"StatusTime\":\"2019-10-12 17:39:01\",\"Snat\":false,\"Status\":1,\"MasterZone\":null,\"VpcId\":\"vpc-8jrf965r\",\"IsolatedTime\":null,\"Tags\":[],\"NumericalVpcId\":1036916,\"Isolation\":0,\"SubnetId\":\"subnet-3osq5emo\",\"AddressIPVersion\":\"ipv4\",\"PrepaidAttributes\":null,\"VipIsp\":\"INTERNAL\",\"AddressIPv6\":null,\"ProjectId\":0,\"LogTopicId\":\"\",\"LoadBalancerName\":\"lb-9e7cf\",\"SecureGroups\":[],\"LoadBalancerType\":\"INTERNAL\",\"Domain\":\"\",\"LogSetId\":\"\",\"ExpireTime\":null,\"ChargeType\":\"POSTPAID_BY_HOUR\",\"LoadBalancerId\":\"lb-elcmnqgz\",\"OpenBgp\":0,\"CreateTime\":\"2019-10-12 17:38:59\"}",
        "ConfigurationItemCaptureTime": "2019-10-23 10:38:59",
        "RelatedEvents": [],
        "LastItemInfo": "{\"Configuration\":{\"LoadBalancerVips\":[\"172.16.0.8\"],\"TargetRegionInfo\":{\"Region\":\"ap-guangzhou\",\"VpcId\":\"vpc-8jrf965r\"},\"Log\":\"\",\"ExtraInfo\":null,\"BackupZoneSet\":null,\"NetworkAttributes\":null,\"Forward\":1,\"AnycastZone\":\"\",\"StatusTime\":\"2019-10-12 17:39:01\",\"Snat\":false,\"Status\":1,\"MasterZone\":null,\"VpcId\":\"vpc-8jrf965r\",\"IsolatedTime\":null,\"Tags\":[],\"NumericalVpcId\":1036916,\"Isolation\":0,\"SubnetId\":\"subnet-3osq5emo\",\"AddressIPVersion\":\"ipv4\",\"PrepaidAttributes\":null,\"VipIsp\":\"INTERNAL\",\"AddressIPv6\":null,\"ProjectId\":0,\"LogTopicId\":\"\",\"LoadBalancerName\":\"lb-9e7cf\",\"SecureGroups\":[],\"LoadBalancerType\":\"INTERNAL\",\"Domain\":\"\",\"LogSetId\":\"\",\"ExpireTime\":null,\"ChargeType\":\"POSTPAID_BY_HOUR\",\"LoadBalancerId\":\"lb-elcmnqgz\",\"OpenBgp\":0,\"CreateTime\":\"2019-10-12 17:38:59\"},\"Relationships\":[{\"resourceType\":\"TCS::VPC::Vpc\",\"resourceId\":\"vpc\\/vpc-8jrf965r\"},{\"resourceType\":\"TCS::VPC::Subnet\",\"resourceId\":\"subnet\\/subnet-3osq5emo\"}]}"
      }
    ],
    "TotalCount": 3,
    "RequestId": "34874f69-8057-4d75-a869-a7f912cc1b83"
  }
}

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
ResourceNotFound.ResourceNotFound Resource not found.

Was this page helpful?

Was this page helpful?

  • Not at all
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful
Send Feedback
Help