Example 2: Configuring the Default Protection Policy
Scenario
You can configure the default protection policy for newly purchased IP addresses on the Anti-DDoS console or by call the API.
- Query the default protection settings for the newly purchased IP addresses.
- Configure the default protection policy for newly purchased IP addresses.
Involved APIs
Procedure
- Query default protection settings for the newly purchased IP addresses.
- API information
URI format: GET /v1/{project_id}/antiddos/default-config
For details, see section "Querying the Default Protection Policy Configured for the Newly Purchased Public IP Addresses".
- Example request
GET: https://{endpoint}/v1/1858a4e1f99d4454bd6a539d5477f5de/antiddos/default/config
Obtain {endpoint} from Regions and Endpoints.
Body:
{ }
- Example response
{ "app_type_id": 1, "cleaning_access_pos_id": 8, "enable_L7": false, "http_request_pos_id": 8, "traffic_pos_id": 8 }
- API information
- Configure default protection policy for newly purchased IP addresses.
- API information
URI format: POST /v1/{project_id}/antiddos/default-config
For details, see section "Configuring the Default Protection Policy for Newly Purchased Public IP Addresses".
- Example request
POST: https://{endpoint}/v1/1858a4e1f99d4454bd6a539d5477f5de/antiddos/default-config
Obtain {endpoint} from Regions and Endpoints.
Body:
{ "app_type_id": 1, "cleaning_access_pos_id": 8, "enable_L7": false, "http_request_pos_id": 8, "traffic_pos_id": 8 }
- Example response
{ }
- API information
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot