Obtain domain status code information [New] - GetUcdnDomainHttpCodeV2
Overview
Get domain status code information
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is GetUcdnDomainHttpCodeV2 . | Yes |
PublicKey | string | The user’s public key can be obtained from Console | 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 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.N | string | Domain ID, the ID generated when creating a domain. Default to all domains. | No |
Areacode | string | The query bandwidth area ‘cn’ represents domestic, ‘abroad’ represents overseas, only supports domestic. | No |
BeginTime | int | The 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 |
EndTime | int | The 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 |
Layer | string | edge | No |
IsDcdn | boolean | Whether to accelerate the whole site by default 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 |
HttpCodeDetail | array[HttpCodeInfoV2] | Status code instance table. See HttpCodeInfoV2 for details. | No |
Data Model
HttpCodeInfoV2
Field Name | Type | Description Information | Required |
---|---|---|---|
Time | int | Time point for bandwidth acquisition. Format: Timestamp | No |
Http1XX | HttpCodeV2Detail | 1xx Information, refer to HttpCodeV2Detail structure | No |
Http2XX | HttpCodeV2Detail | 2xx information, refer to HttpCodeV2Detail structure | No |
Http3XX | HttpCodeV2Detail | 3xx information, refer to HttpCodeV2Detail structure | No |
Http4XX | HttpCodeV2Detail | 4xx information, refer to HttpCodeV2Detail structure | No |
Http5XX | HttpCodeV2Detail | 5xx information, refer to HttpCodeV2Detail structure | No |
Http6XX | HttpCodeV2Detail | 6xx information, refer to HttpCodeV2Detail structure | No |
HttpCodeV2Detail
Field Name | Type | Description Information | Required |
---|---|---|---|
Time | int | Time | No |
Total | int | Total status code count of the current group | No |
Http100 | int | http100 Quantity | No |
Http101 | int | http101 Quantity | No |
Http102 | int | http102 Quantity | No |
Http200 | int | Number of HTTP 200 | No |
Http201 | int | http201 Quantity | No |
Http202 | int | http202 Quantity | No |
Http203 | int | http203 quantity | No |
Http204 | int | http204 count | No |
Http205 | int | http205 Quantity | No |
Http206 | int | http206 Quantity | No |
Http207 | int | http207 Quantity | No |
Http300 | int | http300 Quantity | No |
Http301 | int | Number of HTTP 301 | No |
Http302 | int | Number of HTTP 302 | No |
Http303 | int | http303 Quantity | No |
Http304 | int | http304 count | No |
Http305 | int | http305 Quantity | No |
Http306 | int | HTTP 306 Quantity | No |
Http307 | int | http307 count | No |
Http400 | int | Number of HTTP400 | No |
Http401 | int | http401 quantity | No |
Http402 | int | http402 Quantity | No |
Http403 | int | Number of HTTP 403 | No |
Http404 | int | Number of HTTP 404 | No |
Http405 | int | http405 count | No |
Http406 | int | HTTP 406 Quantity | No |
Http407 | int | http407 Quantity | No |
Http408 | int | http408 count | No |
Http409 | int | http409 count | No |
Http410 | int | http410 Quantity | No |
Http411 | int | http411 Quantity | No |
Http412 | int | http412 Quantity | No |
Http413 | int | http413 Quantity | No |
Http414 | int | http414Quantity | No |
Http415 | int | http415 Quantity | No |
Http416 | int | http416 Quantity | No |
Http417 | int | http417 Quantity | No |
Http418 | int | http418 Quantity | No |
Http421 | int | http421 Quantity | No |
Http422 | int | http422 Quantity | No |
Http423 | int | http423 Quantity | No |
Http424 | int | http424 Quantity | No |
Http425 | int | http425 Quantity | No |
Http426 | int | http426 Quantity | No |
Http449 | int | http449 Quantity | No |
Http451 | int | http451 Quantity | No |
Http500 | int | Number of HTTP 500 | No |
Http501 | int | Number of HTTP 501 | No |
Http502 | int | Number of HTTP 502 | No |
Http503 | int | Number of HTTP 503 | No |
Http504 | int | http504 count | No |
Http505 | int | HTTP505 Quantity | No |
Http506 | int | http506 Quantity | No |
Http507 | int | http507 Quantity | No |
Http509 | int | http509 Quantity | No |
Http510 | int | http510 Quantity | No |
Example
Request Example
https://api.dezai.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
}