tencent cloud

APIs

DescribeAllocateConditions

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-06-11 14:13:36

1. API Description

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.

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: 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

3. Output Parameters

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.

4. Example

Example1 Querying Cost Allocation Conditions

This example shows you how to query cost allocation conditions.

Input Example

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

{}

Output Example

{
    "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"
}

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
AuthFailure CAM signature/authentication error.
AuthFailure.UnauthorizedOperation No permission.
InternalError Internal error.
InvalidParameter Invalid parameter.
InvalidParameterValue Invalid parameter value.
MissingParameter Parameters are missing

도움말 및 지원

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

피드백