Domain name for API request: billing.intl.tencentcloudapi.com.
This API is used to query the filter conditions of a resource directory.
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: DescribeAllocateConditions. |
| Version | Yes | String | Common Params. The value used for this API: 2018-07-09. |
| Region | No | String | Common Params. This parameter is not required. |
| Month | No | String | Bill month, in the format of 2024-02, which is the current month by default if not provided |
| Parameter Name | Type | Description |
|---|---|---|
| Business | Array of BillBusinessLink | Product filter list |
| Product | Array of BillProduct | Subproduct filter list |
| Item | Array of BillItem | Component name filter list |
| Region | Array of BillRegion | Region filter list |
| InstanceType | Array of BillInstanceType | Instance type filter list |
| PayMode | Array of BillPayMode | Billing mode filter list |
| Project | Array of BillProject | Project filter list |
| Tag | Array of BillTag | Tag filter list |
| OwnerUin | Array of BillOwnerUin | User UIN filter list |
| OperateUin | Array of BillOperateUin | Operator UIN filter list |
| ActionType | Array of BillActionType | Transaction type filter list |
| 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. |
This example shows you how to query cost allocation conditions.
POST / HTTP/1.1
Host: billing.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAllocateConditions
<Common request parameters>
{}
{
"Business": [
{
"BusinessCode": "p_cbs",
"BusinessCodeName": "cloud block storage",
"Children": [
{
"ProductCode": "sp_cbs_essd",
"ProductCodeName": "HSSD cloud block storage",
"Children": [
{
"ItemCode": "sv_cbs_data_backuppoint_quota_general",
"ItemCodeName": "data backup point quota"
},
{
"ItemCode": "sv_cbs_memspace_essd",
"ItemCodeName": "ESSD cloud block storage-volume size"
}
]
},
{
"ProductCode": "sp_cbs_ssd",
"ProductCodeName": "SSD cloud block storage",
"Children": [
{
"ItemCode": "sv_cbs_memspace_ssd",
"ItemCodeName": "SSD cloud block storage-volume size"
}
]
}
]
},
{
"BusinessCode": "p_cloudfirewall",
"BusinessCodeName": "Cloud Firewall",
"Children": [
{
"ProductCode": "sp_cloudfirewall_svv1",
"ProductCodeName": "CFW/SaaS service/Self Developed/General industry /Svv1",
"Children": [
{
"ItemCode": "sv_cloudfirewall_basic_aeps",
"ItemCodeName": "CFW/SaaS service/Advanced Edition/Public Cloud/Subscription"
},
{
"ItemCode": "sv_cloudfirewall_extended_clasps",
"ItemCodeName": "CFW/SaaS service/Cloud Log Analysis Service/Public Cloud/Subscription"
}
]
}
]
}
],
"OwnerUin": [
{
"OwnerUin": "1000104xxxxx"
},
{
"OwnerUin": "200029xxxxx"
}
],
"OperateUin": [
{
"OperateUin": "1000104xxxxx"
},
{
"OperateUin": "200029xxxxx"
}
],
"Product": [
{
"ProductCode": "sp_cbs_essd",
"ProductCodeName": "HSSD cloud block storage"
},
{
"ProductCode": "sp_cloudfirewall_svv1",
"ProductCodeName": "CFW/SaaS service/Self Developed/General industry /Svv1"
}
],
"Item": [
{
"ItemCode": "sv_cbs_data_backuppoint_quota_general",
"ItemCodeName": "data backup point quota"
},
{
"ItemCode": "sv_cbs_memspace_essd",
"ItemCodeName": "ESSD cloud block storage-volume size"
}
],
"InstanceType": [
{
"InstanceType": "ri",
"InstanceTypeName": "Standard RI"
},
{
"InstanceType": "svp",
"InstanceTypeName": "Savings Plan"
},
{
"InstanceType": "si",
"InstanceTypeName": "Spot Instances"
},
{
"InstanceType": "rp",
"InstanceTypeName": "Resource Pack"
},
{
"InstanceType": "periodicContractSale",
"InstanceTypeName": "Periodic Contract"
}
],
"Region": [
{
"RegionId": 0,
"RegionName": "other"
},
{
"RegionId": 1,
"RegionName": "South China (Guangzhou)"
}
],
"PayMode": [
{
"PayMode": "prePay",
"PayModeName": "Yearly/monthly subscription"
},
{
"PayMode": "postPay",
"PayModeName": "Pay-As-You-Go resources"
},
{
"PayMode": "riPay",
"PayModeName": "Standard RI"
}
],
"Project": [
{
"ProjectId": 0,
"ProjectName": "default"
},
{
"ProjectId": 1183047,
"ProjectName": "peltonyuan"
}
],
"Tag": [
{
"TagKey": "CloudappId",
"TagValue": "cloudapp-howw2iq4"
},
{
"TagKey": "business unit",
"TagValue": "1"
}
],
"RequestId": "ef1a8f48-ef7c-4c94-a0c9-a696752c4ab0"
}
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 |
|---|---|
| AuthFailure | CAM signature/authentication error. |
| AuthFailure.UnauthorizedOperation | No permission. |
| InternalError | Internal error. |
| InvalidParameter | Invalid parameter. |
| InvalidParameterValue | Invalid parameter value. |
| MissingParameter | Parameters are missing |
피드백