Attach security group to VM NIC
VM network attachments
Attach firewall to VM NIC
Attach a security group to a specific network interface on a VM. The security group’s rules apply to inbound and outbound traffic on that NIC.
Use nic_id from GET /api/v1/vms/{id}/networks to target a specific interface.
POST
Attach security group to VM NIC
Updated May 8, 2026
Authorizations
API key for authentication. Each key is bound to a specific account.
Headers
Project ID. Required for all mutating operations (create, delete, power actions, resize).
Path Parameters
VM ID (UUID)
Body
application/json
Last modified on May 8, 2026