Help Center> Anti-DDoS> API Reference (Paris Region)> APIs of Anti-DDoS> Querying the Defense Status of a Specified EIP

Querying the Defense Status of a Specified EIP

Function

This API allows you 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

    A user's ID

    floating_ip_id

    Yes

    String

    ID corresponding to the EIP of a user

Request

  • Request example
    GET /v1/67641fe6886f43fcb78edbbf0ad0b99f/antiddos/1df977c2-fdc6-4483-bc1c-ba46829f57b8/status

Response

  • Element description

    Parameter

    Mandatory

    Type

    Description

    status

    Yes

    String

    Defense status, the possible value of which is one of the following:
    • normal: indicates that the defense status is normal.
    • configging: indicates that defense is being configured.
    • notConfig: indicates that defense is not configured.
    • packetcleaning: indicates that traffic cleaning is underway.
    • packetdropping: indicates that traffic is discarded.
  • Response example
    {"status": "normal"}

Returned Value

See Common Returned Values.