Domain name for API request: billing.intl.tencentcloudapi.com.
This API is used to create allocation units.
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: CreateAllocationUnit. |
| Version | Yes | String | Common Params. The value used for this API: 2018-07-09. |
| Region | No | String | Common Params. This parameter is not required. |
| ParentId | Yes | Integer | New cost allocation unit parent node ID. |
| Name | No | String | Specifies the name of a newly-added cost allocation unit. |
| Month | No | String | Month, which is the current month by default if not provided. |
| Parameter Name | Type | Description |
|---|---|---|
| Id | Integer | Specifies the ID of a newly-added cost allocation unit. |
| TreeNodeUniqKey | String | Unique identifier of a cost allocation unit |
| 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. |
POST / HTTP/1.1
Host: billing.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateAllocationUnit
<Common request parameters>
{
"Name": "Finance Department",
"ParentId": "1"
}{
"Response": {
"Id": 2,
"RequestId": "5ac3b178-3434-452e-9a1e-dc8b8089a2d8"
}
}
POST / HTTP/1.1
Host: billing.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateAllocationUnit
<Common request parameters>
{
"ParentId": "0"
}{
"Response": {
"Id": 1,
"RequestId": "ebe202d2-9746-4c9a-a931-f569651e5894"
}
}
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 |
|---|---|
| FailedOperation.NumLimitError | The quantity exceeds the maximum limit. |
| InternalError | Internal error. |
| InternalError.DbOperatError | Database operation failed. |
| InternalError.GatewayError | Gateway error. |
| InvalidParameter | Invalid parameter. |
| OperationDenied | Operation denied. |
Feedback