POST
/
cloud
/
v1
/
ddos
/
profiles
/
{project_id}
/
{region_id}
/
{profile_id}
/
action
Activate or deactivate DDoS protection profile
curl --request POST \
  --url https://api.gcore.com/cloud/v1/ddos/profiles/{project_id}/{region_id}/{profile_id}/action \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "active": true,
  "bgp": true
}'
{
  "tasks": [
    "d478ae29-dedc-4869-82f0-96104425f565"
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Unique identifier of the cloud project that owns the DDoS protection resources

Examples:

1

region_id
integer
required

Unique identifier of the cloud region where DDoS protection operations will be performed

Examples:

1

profile_id
integer
required

Unique identifier of the specific DDoS protection profile to be operated on

Examples:

1

Body

application/json
active
boolean
required

Controls whether to enable or disable the DDoS protection profile

bgp
boolean
required

Controls whether to enable or disable BGP routing for DDoS protection traffic

Response

200 - application/json

OK

tasks
string[]
required

List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress: * GET /v1/tasks/{task_id} - Check individual task status and details Poll task status until completion (FINISHED/ERROR) before proceeding with dependent operations.

Examples:
["d478ae29-dedc-4869-82f0-96104425f565"]