tencent cloud

APIs

DescribeConsumptionDetailList

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-11-05 11:26:25

1. API Description

Domain name for API request: adp.intl.tencentcloudapi.com.

Query resource consumption details, including billing fields such as consumption type, consumption target, consumption scenario, package, and PU consumption.

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: DescribeConsumptionDetailList.
Version Yes String Common Params. The value used for this API: 2026-05-20.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
TimeRange Yes TimeRange

Query time range (Unix seconds)

ViewScope Yes ViewScope

View scope: business view / space view

FilterList.N No Array of Filter

Extended filtering. Filter combination rule: multiple conditions use AND, values within the same condition use OR. Supported Name: metric_source_type (metric_source_type_* OR integer), source_ids (multi-option source ID), resource_ID/source_ID (select one source ID, this parameter is valid only when source_ids is not passed), space_ID, user_ID

PageNumber No Integer

Page number, starting from 0

PageSize No Integer

Number of items per page. Maximum: 100.

3. Output Parameters

Parameter Name Type Description
ConsumptionDetailList Array of ConsumptionDetail

Resource consumption details list

TotalCount String

Total record count for frontend pagination

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 DescribeConsumptionDetailList

Input Example

POST / HTTP/1.1
Host: adp.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeConsumptionDetailList
<Common request parameters>

{
    "TimeRange": {
        "EndTime": "1786550699",
        "StartTime": "1786550399"
    },
    "ViewScope": {
        "ViewType": 1,
        "ScopeId": "default_space"
    }
}

Output Example

{
    "Response": {
        "ConsumptionDetailList": [
            {
                "Classification": {
                    "ConsumptionScene": "chat",
                    "ConsumptionTarget": "hunyuan-turbo",
                    "ConsumptionType": "model",
"PackageName": "Enterprise standard package"
                },
                "EventTime": "1754956800",
                "MetricSourceType": 1,
"Name": "Smart Customer Service Application",
"SpaceName": "Product R&D space"
                "Usage": {
                    "ConsumptionPU": 0.00897,
                    "Usage": 8970,
                    "UsageUnit": 0
                },
"UserName": "Zhang San"
            }
        ],
        "TotalCount": "328",
        "RequestId": "90431410-173a-4e44-b79e-d77a399da29b"
    }
}

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.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백