docs
api
Cloud Delivery(UCDN)
GetUcdnDomainRequestNumV3

Get Domain Request Count [New] - GetUcdnDomainRequestNumV3

Overview

Get Domain Request Count

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetUcdnDomainRequestNumV3.Yes
PublicKeystringThe user's public key can be obtained from Console (opens in a new tab)Yes
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
ProtocolstringProtocol, when IsDcdn=false, you can pass http, https, or not pass to check the bandwidth of all protocols.
If IsDcdn=true, you can pass http_dynamic, http_static, https_dynamic, https_static, quic_dynamic, quic_static, websocket, and support querying multiple protocols at the same time separated by commas.
No
IsDcdnbooleanIs acceleration enabled for the entire site, default is falseNo

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[RequestInfoV2]Request number instance table.No

Data Model

RequestInfoV2

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

Example

Request Example

https://api.surfercloud.com/?Action=GetUcdnDomainRequestNumV3
&ProjectId=AYZTzHAS
&Type=2
&BeginTime=8
&EndTime=5
&DomainId.n=vUdMJHuU
&Areacode=QklBnnEs
&Protocol=IhnvpTpf
&IsDcdn=true

Response Example

{
  "Action": "GetUcdnDomainRequestNumV3Response",
  "RequestList": [
    {
      "CdnRequest": 3,
      "OriginRequest": 2,
      "Time": 4
    }
  ],
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved