Skip to main content
POST
Attach security group to VM NIC
Updated May 8, 2026

Authorizations

X-API-Key
string
header
required

API key for authentication. Each key is bound to a specific account.

Headers

X-Project-ID
string<uuid>
required

Project ID. Required for all mutating operations (create, delete, power actions, resize).

Path Parameters

id
string<uuid>
required

VM ID (UUID)

Body

application/json
security_group_id
string<uuid>
required

Security group to attach.

nic_id
integer
required

NIC to attach the security group to. Get from GET /api/v1/vms/{id}/networks.

Response

Security group attached

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"

Last modified on May 8, 2026