Domain name for API request: intlpartnersmgt.intl.tencentcloudapi.com.
Cost analysis API
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: DescribeCustomerOwnCostExplorerSummary. |
| Version | Yes | String | Common Params. The value used for this API: 2022-09-28. |
| Region | No | String | Common Params. This parameter is not required. |
| Dimension | Yes | String | Classification dimension Enumeration value:
|
| FeeType | Yes | String | Fee type Enumeration value:
|
| BillType | Yes | Integer | Billing mode Enumeration value:
|
| StartTime | Yes | String | Start time Parameter format: YYYY-MM-DD hh:mm:ss, for example 2006-01-02 00:00:00 Input limit: When PeriodType is month, the time range is 6 calendar months; when PeriodType is day, the time range is 2 calendar months; |
| EndTime | Yes | String | End time Parameter format: YYYY-MM-DD hh:mm:ss, for example 2006-01-02 00:00:00 Input limit: When PeriodType is month, the time range is 6 calendar months. When PeriodType is day, the time range is 2 calendar months. |
| PeriodType | Yes | String | Time type Enumeration value:
|
| Page | Yes | Integer | Page number Value range: [1, 10000] |
| PageSize | Yes | Integer | Page size Value range: [1, 200] |
| TagKey | No | String | Tag key of the statistical dimension. When Dimension is Tag, TagKey is required. |
| Filter | No | CostAnalyzeFilter | Filter You can pass the data returned by DescribeCustomerOwnCostExplorerFilter as a parameter to filter the data. |
| Parameter Name | Type | Description |
|---|---|---|
| DimensionName | String | Classification dimension |
| Detail | Array of DimensionPeriodData | Details |
| TotalDetail | CostAnalyzeDimensionData | Classification dimension statistics |
| 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. |
For sub-accounts to query cost analysis data
POST / HTTP/1.1
Host: intlpartnersmgt.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeCustomerOwnCostExplorerSummary
<Common request parameters>
{
"Dimension": "Default",
"FeeType": "originalCost",
"BillType": 1,
"StartTime": "2024-09-01 00:00:00",
"EndTime": "2024-09-12 23:59:59",
"PeriodType": "day",
"Page": 1,
"PageSize": 10,
"Filter": {
"BusinessIn": [
"p_cbs"
],
"ProductIn": [
"sp_cbs_premium"
],
"RegionIn": [
"1"
],
"ActionTypeIn": [
"pre_purchase"
],
"PayModeIn": [
"prePay"
],
"ProjectIn": [
"default"
],
"PayerUinIn": [
"8000********"
],
"ZoneIn": [
"100002"
],
"OwnerUinIn": [
"80000*******"
],
"ResourceIn": [
"disk-f*******"
]
}
}
{
"Response": {
"Detail": [
{
"Code": "",
"ItemDetail": [
{
"Cost": "0.7",
"Period": "2024-09-09"
}
],
"Name": "default",
"SumCost": "0.7"
}
],
"DimensionName": "Default",
"TotalDetail": {
"PeriodItemDetail": [
{
"Cost": "0.7",
"Period": "2024-09-09"
}
],
"SumCost": "0.7",
"TotalCount": 1
},
"RequestId": "af9d9375-bc8e-4bf5-ad4c-7a83033f4fc3"
}
}
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 |
|---|---|
| OperationDenied.ServiceBusy | System busy. Please try again later. |
| UnauthorizedOperation.UinNoAuth | The current user doesn’t have permission for the operation. |
フィードバック