Docs
api
Cloud Delivery(UCDN)
Get Ucdn Domain Request Num V2

[To be offline] Get Domain Request Count - GetUcdnDomainRequestNumV2

Overview

Get Domain Request Count

💡 This interface is about to be deprecated, to get the domain request number, please use the latest interface GetUcdnDomainRequestNumV3

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetUcdnDomainRequestNumV2.Yes
PublicKeystringThe user’s public key can be obtained from ConsoleYes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
ProjectIdstringProject ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the GetProjectList interface.No
TypeintTime granularity (0 represents a 5-minute granularity, 1 represents a 1-hour granularity, 2 represents a daily granularity, 3= per minute)Yes
BeginTimeintThe start time of the query, in Unix Timestamp format.Yes
EndTimeintThe end time of the query, in Unix Timestamp format.Yes
DomainId.NstringDomain ID, the ID generated when creating a domain. Default to all domains.No
AreacodestringThe query area ‘cn’ represents domestic, ‘abroad’ represents overseas, only supports domestic.No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No
RequestListarray[RequestInfo]Request number instance table.No

Data Model

RequestInfo

Field NameTypeDescription InformationRequired
TimeintTime point for bandwidth acquisition. Format: TimestampNo
CdnRequestfloatReturns the sum of the requests received by the CDN within the specified time interval.No
OriginRequestfloatReturns the sum of CDN back-to-source requests within the specified time range.No

Example

Request Example

https://api.dezai.com/?Action=GetUcdnDomainRequestNumV2
&ProjectId=TGTBMbzo
&Type=1
&DomainId.n=mTbgqcTn
&Areacode=nAPpQFkD
&BeginTime=2
&EndTime=9

Response Example

{
  "Action": "GetUcdnDomainRequestNumV2Response",
  "RequestList": [
    {
      "CdnRequest": 6,
      "OriginRequest": 7,
      "Time": 4
    }
  ],
  "RetCode": 0
}