Help Center/ Anti-DDoS/ API Reference (Kuala Lumpur Region)/ API/ DDoS Protection Management/ Querying the Defense Status of a Specified EIP
Updated on 2024-07-09 GMT+08:00

Querying the Defense Status of a Specified EIP

Functions

This API is used to query the defense status of a specified EIP.

URI

  • URI format

    GET /v1/{project_id}/antiddos/{floating_ip_id}/status

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID

    floating_ip_id

    Yes

    String

    ID corresponding to the EIP of a user

Request

Table 1 Parameter description

Parameter

Mandatory

Type

Description

ip

No

String

EIP of a user

Response

  • Parameter description

    Parameter

    Type

    Description

    status

    String

    Defense status, the possible value of which is one of the following:
    • normal: indicates that the defense status is normal.
    • configuring: indicates that defense is being configured.
    • notConfig: indicates that defense is not configured.
    • packetcleaning: indicates traffic scrubbing.
    • packetdropping: indicates blackhole.

Example

  • Example request
    GET /v1/67641fe6886f43fcb78edbbf0ad0b99f/antiddos/1df977c2-fdc6-4483-bc1c-ba46829f57b8/status
  • Example response
    {
      "status": "normal"
    }

Status Code

See Status Code.