Domain name for API request: smh.intl.tencentcloudapi.com.
This API is used to query traffic packages.
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: DescribeTrafficPackages. |
| Version | Yes | String | Common Params. The value used for this API: 2021-07-12. |
| Region | No | String | Common Params. This parameter is not required for this API. |
| ResourceIds.N | No | Array of String | Specifies one or more resource ids for querying, with a maximum of 100 per request. |
| PageNumber | No | Integer | Page number, int, used in conjunction with PageSize. default value is 1. |
| PageSize | No | Integer | Number of items per page, integer, used in conjunction with PageNumber. default value is 20. maximum value is 100. |
| OrderBy | No | String | Specifies the column to sort. |
| OrderByType | No | String | Sorting method. |
| Type | No | Integer | Specifies the source type filter criteria. |
| Parameter Name | Type | Description |
|---|---|---|
| List | Array of TrafficPackage | Package list. |
| TotalCount | Integer | Total number. |
| 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: smh.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeTrafficPackages
<Common request parameters>
{}{
"Response": {
"List": [
{
"InstanceId": "jexrwwoa",
"Domain": "jexrwwoa.cofile.net",
"Type": 0,
"Size": "107374182400",
"SizeGB": 100,
"Remain": "89017835619",
"Used": "18356346781",
"UsedPercentage": "17.10",
"EffectiveTime": "2021-10-12T03:53:29Z",
"ExpireTime": "2021-11-12T15:59:59Z"
}
],
"TotalCount": 1,
"RequestId": "27ec9933-ad39-46b0-9ea1-f863a89dd00c"
}
}
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 |
|---|---|
| InternalError | Internal error. |
| InvalidParameterValue.LimitExceeded | The number of parameter values or characters exceeds the limit. |
Feedback