Get Domain Back-to-Source Request Count [New] - GetUcdnDomainOriginRequestNum
Overview
Get the number of domain name back-to-source requests
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is GetUcdnDomainOriginRequestNum . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
ProjectId | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface. | No |
Type | int | Time granularity (0 represents a 5-minute granularity, 1 represents a 1-hour granularity, 2 represents a daily granularity, 3= per minute) | Yes |
BeginTime | int | The start time of the query, in Unix Timestamp format. | Yes |
EndTime | int | The end time of the query, in Unix Timestamp format. | Yes |
DomainId.N | string | Domain ID, the ID generated when creating a domain. Default to all domains. | No |
Areacode | string | The query area 'cn' represents domestic, 'abroad' represents overseas, only supports domestic. | No |
IsDcdn | boolean | Is the whole site accelerated? Default is false | No |
Response Field
Field Name | Type | Description Information | Required |
---|---|---|---|
RetCode | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. | Yes |
Action | string | Operation command name. | Yes |
Message | string | Returns an error message, providing detailed description when RetCode is non-zero. | No |
RequestList | array[RequestInfoV2] | Request number instance table. | No |
Data Model
RequestInfoV2
Field Name | Type | Description Information | Required |
---|---|---|---|
Time | int | Time point for bandwidth acquisition. Format: Timestamp | No |
CdnRequest | float | Returns the sum of the requests received by the CDN within the specified time interval. | No |
Example
Request Example
https://api.surfercloud.com/?Action=GetUcdnDomainOriginRequestNum
&ProjectId=YGfHLRKv
&Type=6
&BeginTime=1
&EndTime=2
&DomainId.n=EOvOmBca
&Areacode=IGnjREZm
&IsDcdn=false
Response Example
{
"Action": "GetUcdnDomainOriginRequestNumResponse",
"RequestList": [
{
"CdnRequest": 7,
"OriginRequest": 8,
"Time": 6
}
],
"RetCode": 0
}