Queries the Diversion from Origin Server configurations of one or more Anti-DDoS Pro instances.

Note This operation is suitable only for Anti-DDoS Pro.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeBlockStatus

The operation that you want to perform. Set the value to DescribeBlockStatus.

InstanceIds.N RepeatList Yes ddoscoo-cn-mp91j1ao****

The ID of instance N.

Note You can call the DescribeInstanceIds operation to query the IDs of all instances.
ResourceGroupId String No default

The ID of the resource group to which the instance belongs in Resource Management. This parameter is empty by default, which indicates that the instance belongs to the default resource group.

RegionId String No cn-hangzhou

The region ID of the instance. Set the value to cn-hangzhou, which indicates an Anti-DDoS Pro instance.

Response parameters

Parameter Type Example Description
RequestId String C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E

The ID of the request.

StatusList Array

Details about the Diversion from Origin Server configurations of the instance.

BlockStatusList Array

Details about the Diversion from Origin Server configuration.

BlockStatus String areablock

The status of the network traffic from a specific region. Valid values:

  • areablock: The network traffic is blocked.
  • normal: The network traffic is not blocked.
EndTime Long 1540196323

The end time of the blocking. This value is a UNIX timestamp representing the number of seconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

Line String cut

The blocked line. Valid values:

  • ct: China Telecom (International)
  • cut: China Unicom (International)
StartTime Long 1540195323

The start time of the blocking. This value is a UNIX timestamp representing the number of seconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

Ip String 203.***. ***.88

The IP address of the instance.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeBlockStatus
&InstanceIds.1=ddoscoo-cn-mp91j1ao****
&<Common request parameters>

Sample success responses

XML format

<DescribeBlockStatusResponse>
      <RequestId>C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E</RequestId>
      <StatusList>
            <Ip>203. ***. ***.88</Ip>
            <BlockStatusList>
                  <BlockStatus>areablock</BlockStatus>
                  <Line>cut</Line>
                  <StartTime>1540195323</StartTime>
                  <EndTime>1540196323</EndTime>
            </BlockStatusList>
      </StatusList>
</DescribeBlockStatusResponse>

JSON format

{
    "RequestId": "C33EB3D5-AF96-43CA-9C7E-37A81BC06A1E",
    "StatusList": [
        {
            "Ip": "203. ***. ***.88",
            "BlockStatusList": [
                {
                    "BlockStatus": "areablock",
                    "Line": "cut",
                    "StartTime": 1540195323,
                    "EndTime": 1540196323
                }
            ]
        }
    ]
}

Error codes

For a list of error codes, visit the API Error Center.