Help Center> Anti-DDoS> API Reference (Paris Region)> APIs of Anti-DDoS> Querying Configured Anti-DDoS Defense Policies

Querying Configured Anti-DDoS Defense Policies

Function

This API enables you to query configured Anti-DDoS defense policies. You can query the policy of a specified EIP.

URI

  • URI format

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

  • 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

Response

  • Element description

    Parameter

    Mandatory

    Type

    Description

    enable_L7

    Yes

    Boolean

    Whether L7 defense has been enabled

    traffic_pos_id

    Yes

    Integer

    Position ID of traffic. The value ranges from 1 to 9.

    http_request_pos_id

    Yes

    Integer

    Position ID of number of HTTP requests. The value ranges from 1 to 15.

    cleaning_access_pos_id

    Yes

    Integer

    Position ID of access limit during cleaning. The value ranges from 1 to 8.

    app_type_id

    Yes

    Integer

    Application type ID. Possible values:
    • 0
    • 1
  • Response example
    {
       "enable_L7": true,
       "traffic_pos_id": 1,
       "http_request_pos_id": 1,
       "cleaning_access_pos_id": 1,
       "app_type_id": 1
    }

Returned Value

See Common Returned Values.