Skip to main content
POST
Python

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

Example:

1

region_id
integer
required

Region ID

Example:

1

instance_id
string<uuid4>
required

Instance ID

Example:

"bf325375-9af6-4c8b-a2fc-7f6f4ca02e2e"

Body

application/json
ddos_profile
AttachInterfaceDdosProfileSerializer · object | null

Advanced DDoS protection.

interface_name
string | null

Interface name.

Maximum string length: 37
ip_family
enum<string> | null
Available options:
dual,
ipv4,
ipv6
port_group
integer
default:0

Each group will be added to a separate trunk.

Required range: 0 <= x <= 3
Example:

0

security_groups
MandatoryIdSchema schema · object[] | null

List of security group IDs.

type
string
default:external
Allowed value: "external"

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.
Example: