docs
api
Cloud Delivery(UCDN)
GetUcdnDomainHttpCodeV2

Obtain domain status code information [New] - GetUcdnDomainHttpCodeV2

Overview

Get domain status code information

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is GetUcdnDomainHttpCodeV2.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 granularity of 5 minutes, 1 represents a granularity of 1 hour, 2 represents a granularity of one day, 3 represents a granularity of 1 minute)Yes
DomainId.NstringDomain ID, the ID generated when creating a domain. Default to all domains.No
AreacodestringThe query bandwidth area 'cn' represents domestic, 'abroad' represents overseas, only supports domestic.No
BeginTimeintThe start time of the query, formatted as Unix Timestamp. If there is an EndTime, BeginTime must be assigned. If not assigned, a missing parameter error will be returned. If there is no EndTime, BeginTime can also be unassigned. The default EndTime is the current time, and the default BeginTime is the current time of the previous day.No
EndTimeintThe end time of the query, in Unix Timestamp format. EndTime defaults to the current time, and BeginTime defaults to the time one day before the current time.No
LayerstringedgeNo
IsDcdnbooleanWhether to accelerate the whole site by default 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
HttpCodeDetailarray[HttpCodeInfoV2]Status code instance table. See HttpCodeInfoV2 for details.No

Data Model

HttpCodeInfoV2

Field NameTypeDescription InformationRequired
TimeintTime point for bandwidth acquisition. Format: TimestampNo
Http1XXHttpCodeV2Detail1xx Information, refer to HttpCodeV2Detail structureNo
Http2XXHttpCodeV2Detail2xx information, refer to HttpCodeV2Detail structureNo
Http3XXHttpCodeV2Detail3xx information, refer to HttpCodeV2Detail structureNo
Http4XXHttpCodeV2Detail4xx information, refer to HttpCodeV2Detail structureNo
Http5XXHttpCodeV2Detail5xx information, refer to HttpCodeV2Detail structureNo
Http6XXHttpCodeV2Detail6xx information, refer to HttpCodeV2Detail structureNo

HttpCodeV2Detail

Field NameTypeDescription InformationRequired
TimeintTimeNo
TotalintTotal status code count of the current groupNo
Http100inthttp100 QuantityNo
Http101inthttp101 QuantityNo
Http102inthttp102 QuantityNo
Http200intNumber of HTTP 200No
Http201inthttp201 QuantityNo
Http202inthttp202 QuantityNo
Http203inthttp203 quantityNo
Http204inthttp204 countNo
Http205inthttp205 QuantityNo
Http206inthttp206 QuantityNo
Http207inthttp207 QuantityNo
Http300inthttp300 QuantityNo
Http301intNumber of HTTP 301No
Http302intNumber of HTTP 302No
Http303inthttp303 QuantityNo
Http304inthttp304 countNo
Http305inthttp305 QuantityNo
Http306intHTTP 306 QuantityNo
Http307inthttp307 countNo
Http400intNumber of HTTP400No
Http401inthttp401 quantityNo
Http402inthttp402 QuantityNo
Http403intNumber of HTTP 403No
Http404intNumber of HTTP 404No
Http405inthttp405 countNo
Http406intHTTP 406 QuantityNo
Http407inthttp407 QuantityNo
Http408inthttp408 countNo
Http409inthttp409 countNo
Http410inthttp410 QuantityNo
Http411inthttp411 QuantityNo
Http412inthttp412 QuantityNo
Http413inthttp413 QuantityNo
Http414inthttp414QuantityNo
Http415inthttp415 QuantityNo
Http416inthttp416 QuantityNo
Http417inthttp417 QuantityNo
Http418inthttp418 QuantityNo
Http421inthttp421 QuantityNo
Http422inthttp422 QuantityNo
Http423inthttp423 QuantityNo
Http424inthttp424 QuantityNo
Http425inthttp425 QuantityNo
Http426inthttp426 QuantityNo
Http449inthttp449 QuantityNo
Http451inthttp451 QuantityNo
Http500intNumber of HTTP 500No
Http501intNumber of HTTP 501No
Http502intNumber of HTTP 502No
Http503intNumber of HTTP 503No
Http504inthttp504 countNo
Http505intHTTP505 QuantityNo
Http506inthttp506 QuantityNo
Http507inthttp507 QuantityNo
Http509inthttp509 QuantityNo
Http510inthttp510 QuantityNo

Example

Request Example

https://api.surfercloud.com/?Action=GetUcdnDomainHttpCodeV2
&ProjectId=BeqyjoQb
&Type=2
&DomainId.n=EioEXfOq
&Areacode=DheArqzT
&BeginTime=4
&EndTime=6
&Layer=enynJrfS
&IsDcdn=true

Response Example

{
  "Action": "GetUcdnDomainHttpCodeV2Response",
  "HttpCodeDetail": [
    {
      "Http1XX": {},
      "Http2XX": {},
      "Http3XX": {},
      "Http4XX": {},
      "Http5XX": {},
      "Http6XX": {},
      "Time": 1
    }
  ],
  "RetCode": 0
}
  • Company
  • ContactUs
  • Blog
Copyright © 2024 SurferCloud All Rights Reserved