Attach a floating public IP to a virtual machine. Pick one of two modes:
ip_id)Pass ip_id set to a previously reserved IP (from POST /api/v1/ips/reserve or GET /api/v1/ips?reserved=true). The IP must:
reserved: trueNo new billing — you’re already paying for the reserved IP.
type)Leave ip_id empty and pass type to allocate a fresh IP from the pool:
type: IPv4 (default if omitted)type: IPv6A new IP is allocated and billed to your account from the moment of attach. Detach to release it back to the pool.
security_groups (UUID array) to apply security groups to the new NIC.Updated May 8, 2026Documentation Index
Fetch the complete documentation index at: https://docs.rafftechnologies.com/llms.txt
Use this file to discover all available pages before exploring further.
API key for authentication. Each key is bound to a specific account.
Project ID. Required for all mutating operations (create, delete, power actions, resize).
VM ID (UUID)
Provide either ip_id (attach an existing reserved IP) or type (auto-allocate a new IP). Don't combine — ip_id takes precedence and type is ignored when both are sent.
ID of a previously reserved IP. The IP must belong to the same account, be reserved, and not already attached to another VM. No new billing — you're already paying for the reserved IP.
IP family to auto-allocate. Used only when ip_id is omitted. Defaults to IPv4. A new IP is allocated from the pool and billed to your account from the moment of attach.
IPv4, IPv6 Security group IDs (UUIDs) to apply to the new NIC.