PATCH
/
cloud
/
v1
/
ddos
/
profiles
/
{project_id}
/
{region_id}
/
{profile_id}
Update DDoS protection profile
curl --request PATCH \
  --url https://api.gcore.com/cloud/v1/ddos/profiles/{project_id}/{region_id}/{profile_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "bm_instance_id": null,
  "fields": [
    {
      "base_field": 10,
      "field_value": [
        45046,
        45047
      ]
    }
  ],
  "ip_address": "11.111.111.1",
  "profile_template": 123,
  "resource_id": null,
  "resource_type": "instance"
}'
{
  "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

Project ID

region_id
integer
required

Region ID

profile_id
integer
required

Protection profile identifier

Body

application/json
ip_address
required

IP address to be protected

Examples:

"11.111.111.1"

profile_template
integer
required

Advanced DDoS template ID

Examples:

123

bm_instance_id
string | null
deprecated

Deprecated. Use resource_id field.

Examples:

null

"ff3bdce6-ad26-40d2-ae5a-854c53050969"

fields
CreateClientProfileFieldSerializer · object[]

DDoS profile parameters

Examples:
[
{
"base_field": 10,
"field_value": [45046, 45047]
}
]
resource_id
string | null

ID of resource (bare metal, load balancer, instance)

Examples:

null

"ff3bdce6-ad26-40d2-ae5a-854c53050969"

resource_type
enum<string>
default:instance

Resource type to be protected

Available options:
instance,
loadbalancer
Examples:

"instance"

Response

List of created tasks

tasks
string[]
required

List of task IDs

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