Domain name for API request: vod.intl.tencentcloudapi.com.
This API is used to query CDN bandwidth, traffic, and other stats for a VOD domain.
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: DescribeCDNStatDetails. |
| Version | Yes | String | Common Params. The value used for this API: 2018-07-17. |
| Region | No | String | Common Params. This parameter is not required. |
| Metric | Yes | String | Queried metric. Valid values: |
| StartTime | Yes | String | Start time. Use the ISO date format. |
| EndTime | Yes | String | End time in ISO date format. |
| SubAppId | No | Integer | VOD application ID. For customers who activate VOD after December 25, 2023, this field must be set to the app ID when accessing resources in VOD applications (whether the default application or a newly created application). |
| DomainNames.N | No | Array of String | Domain name list. Up to 20 domain names can be queried for data at a time. By default, the combined usage data of all domain names is returned. |
| Area | No | String | Service area. Valid values: Default value: Chinese mainland. |
| Districts.N | No | Array of String | User's located region. When Area is Chinese Mainland, the value is the following region information. When Area is other values, the Districts parameter is ignored. |
| Isps.N | No | Array of String | User's Operator Information. When Area is Chinese Mainland, the value is the following carrier information. When Area is other values, ignore the Isps parameter. |
| DataInterval | No | Integer | Time granularity of each data entry. Unit: minute. Valid values: When the time span between StartTime and EndTime is more than 24 hours, DataInterval defaults to 1440. |
| Parameter Name | Type | Description |
|---|---|---|
| DataInterval | Integer | Time granularity of each data entry. Unit: minute. |
| Data | Array of StatDataItem | CDN usage data. |
| 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. |
Query traffic data of the domain name example.com in the Chinese mainland.
https://vod.intl.tencentcloudapi.com/?Action=DescribeCDNStatDetails
&DomainNames.0=example.com
&StartTime=2018-12-01T00:00:00+08:00
&EndTime=2018-12-03T00:00:00+08:00
&Area=Chinese Mainland
&Metric=Traffic
&<Common request parameters>
{
"Response": {
"DataInterval": 1440,
"Data": [
{
"Time": "2018-12-01T00:00:00+08:00",
"Value": 1000000
},
{
"Time": "2018-12-02T00:00:00+08:00",
"Value": 1500000
},
{
"Time": "2018-12-03T00:00:00+08:00",
"Value": 1500000
}
],
"RequestId": "requestId"
}
}
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. |
| FailedOperation | Operation failed. |
| FailedOperation.InvalidAccount | User account exception. |
| FailedOperation.InvalidVodUser | The VOD service is not enabled. |
| InternalError.DBError | Internal error. Failed to access the DB. |
| InvalidParameterValue.Area | Area parameter error. |
| InvalidParameterValue.Districts | District parameter value error. |
| InvalidParameterValue.DomainNames | Parameter value error: The domain name list is too large. |
| InvalidParameterValue.EndTime | Invalid parameter value: EndTime is invalid. |
| InvalidParameterValue.Isps | Invalid Isps parameter. |
| InvalidParameterValue.Metric | Parameter error: Metric is invalid. |
| InvalidParameterValue.StartTime | Invalid parameter value: StartTime is invalid. |
フィードバック