v12

latestOpenAPI 3.0.3raw.githubusercontent.com2026-06-1811583196.1 KB
Networking

Detach security group from VM NIC

Remove a security group from a specific NIC on a VM.

delete/api/v1/vms/{id}/security-groups/{sg_id}/{nic_id}

Path parameters

idstring uuid required

VM ID (UUID)

sg_idstring uuid required

Security group ID (UUID). Get it from the security_group_id field of GET /api/v1/vms/{id}/networks, or list all account security groups via GET /api/v1/security-groups.

nic_idinteger required

Network interface ID. Get it from the nic_id field of GET /api/v1/vms/{id}/networks.

Headers

X-Project-IDstring uuid required

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

Response

Security group detached

successboolean
messagestring

Example response

{
  "success": true,
  "message": "Operation completed successfully"
}