Enable DDoS protection on your Vultr VX1™ Cloud Compute instance using the Customer Portal or API for improved security and uptime.
Distributed Denial of Service (DDoS) protection enables traffic monitoring and prevents potential DDoS attacks to an instance. It activates a set of tools that detect and block network flooding attempts, ensuring the instance remains active and operational.
Follow this guide to enable DDoS protection on a Vultr VX1™ Cloud Compute instance using the Vultr Customer Portal, or API.
Send a GET request to the List Instances endpoint and note your target instance's ID.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PATCH request to the Update Instance endpoint to enable DDoS protection on the instance.
$ curl "https://api.vultr.com/v2/instances/{instance-id}" \
-X PATCH \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"ddos_protection": true
}'
If successful, you receive a 200 HTTP status code response.