Domain name for API request: ecdn.tencentcloudapi.com.
This API is used to query the statistical metrics of domain name access within a specified time period.
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.
This document describes the parameters for Signature V1. It's recommended to use the V3 signature, which provides higher security. Note that for Signature V3, the common parameters need to be placed in the HTTP Header. See details.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common parameter. The value used for this API: DescribeEcdnDomainStatistics. |
Version | Yes | String | Common parameter. The value used for this API: 2019-10-12. |
Region | No | String | Common parameter. This parameter is not required for this API. |
StartTime | Yes | Timestamp | Query start time, such as 2019-12-13 00:00:00. The time span cannot exceed 90 days. |
EndTime | Yes | Timestamp | Query end time, such as 2019-12-13 23:59:59. The time span cannot exceed 90 days. |
Metrics.N | Yes | Array of String | Statistical metric names: flux: traffic (in bytes) bandwidth: bandwidth (in bps) request: number of requests |
Domains.N | No | Array of String | Specifies the list of domain names to be queried |
Projects.N | No | Array of Integer | Specifies the project ID to be queried, which can be viewed here If no domain name is entered, the specified project will be queried; otherwise, the domain name will prevail |
Offset | No | Integer | Pagination offset. Default value: 0. |
Limit | No | Integer | Number of entries per page. Default value: 1000. Maximum value: 3,000. |
Area | No | String | Statistical areas: mainland: Chinese mainland oversea: outside the Chinese mainland global: global Default value: global |
Parameter Name | Type | Description |
---|---|---|
Data | Array of DomainData | Domain name data |
TotalCount | Integer | Quantity |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://ecdn.tencentcloudapi.com/?Action=DescribeEcdnDomainStatistics
&StartTime=2018-09-04 00:00:00
&EndTime=2018-09-04 12:00:00
&Metrics.0=flux
&Metrics.1=delay
&Metrics.2=request
&Metrics.3=bandwidth
&Domains.0=www.test.com
&Projects.0=0
&<Common request parameters>
{
"Response": {
"RequestId": "13d41d37-546f-42ed-a3b9-ff82a51ecd0a",
"Data": [
{
"Resource": "stsdk.vivo.com.cn",
"DetailData": [
{
"Name": "request",
"Value": 5628872958
},
{
"Name": "flux",
"Value": 3535122082980
},
{
"Name": "delay",
"Value": 87
},
{
"Name": "bandwidth",
"Value": 825782981
}
]
}
],
"TotalCount": 20
}
}
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.EcdnDbError | Internal data error. Please submit a ticket for troubleshooting. |
InternalError.EcdnSystemError | System error. Please submit a ticket for troubleshooting. |
InvalidParameter.EcdnParamError | Parameter error. Please see the sample parameters in the documentation. |
InvalidParameter.EcdnStatInvalidDate | Invalid date. Please see the sample date in the documentation. |
InvalidParameter.EcdnStatInvalidMetric | Invalid statistical type. Please see the sample statistical analysis in the documentation. |
InvalidParameter.ParamError | Parameter error |
LimitExceeded.EcdnDomainOpTooOften | Domain name operations are too frequent. |
ResourceNotFound.EcdnDomainNotExists | This domain name does not exist under the account. Please check and try again. |
ResourceNotFound.EcdnProjectNotExists | The project does not exist. |
ResourceNotFound.EcdnUserNotExists | The ECDN service has not been activated. Please activate it first before using this API. |
UnauthorizedOperation.CdnAccountUnauthorized | The sub-account is unauthorized to query full data. |
UnauthorizedOperation.CdnCamUnauthorized | No CAM policy is configured for the sub-account. |
UnauthorizedOperation.CdnDomainUnauthorized | The acceleration domain name is not authorized for the ECDN sub-account. |
UnauthorizedOperation.CdnHostUnauthorized | The acceleration domain name is not authorized for the ECDN sub-account. |
UnauthorizedOperation.CdnNoDomainUnauthorized | The sub-account does not have the permission to access the domain name. Please try again after authorization. |
UnauthorizedOperation.CdnProjectUnauthorized | The project is not authorized for the sub-account. |
UnauthorizedOperation.DomainNoPermission | The acceleration domain name is not authorized for the ECDN sub-account. |
UnauthorizedOperation.DomainsNoPermission | The acceleration domain name is not authorized for the ECDN sub-account. |
UnauthorizedOperation.EcdnAccountUnauthorized | The sub-account is unauthorized to query full data. |
UnauthorizedOperation.EcdnCamUnauthorized | No CAM policy is configured for the sub-account. |
UnauthorizedOperation.EcdnDomainUnauthorized | The acceleration domain name is not authorized for the ECDN sub-account. |
UnauthorizedOperation.EcdnHostUnauthorized | The acceleration domain name is not authorized for the ECDN sub-account. |
UnauthorizedOperation.EcdnNoDomainUnauthorized | The sub-account does not have the permission to access the domain name. Please try again after authorization. |
UnauthorizedOperation.EcdnProjectUnauthorized | The project is not authorized for the sub-account. |
UnauthorizedOperation.NoPermission | CAM is not authorized for the ECDN sub-account. |
UnauthorizedOperation.ProjectNoPermission | The project is not authorized for the ECDN sub-account. |
UnauthorizedOperation.ProjectsNoPermission | The project is not authorized for the ECDN sub-account. |
本页内容是否解决了您的问题?