This endpoint allocates a routed IPv6 prefix to a specific virtual server (VPS). You need to provide the VPS ID, which can be retrieved from endpoints like GET /api/vm/{vmid}/status. This is useful when your VPS requires a direct IPv6 connection for network configurations.
vmid integer · min: 1 required Example Unique vmid identifier
Accept Example Content-Type Example action string · enum required allocate refresh_next_hop success boolean timestamp string requestId string data object success boolean timestamp string requestId string data object https://cloud.hostup.se/api/vm/{vmid}/routed-ipv6 curl -X POST "https://cloud.hostup.se/api/vm/16228/routed-ipv6" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "allocate"
}' {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"created": true,
"allocation": {
"id": 0,
"rack_id": "string",
"client_id": "string",
"account_id": "string",
"proxmox_vm_id": "string",
"prefix": "string",
"prefix_length": 0,
"next_hop": "string",
"status": "string",
"allocated_at": "string",
"released_at": "string",
"cooldown_until": "string",
"metadata": {
"updatedAt": "string",
"updatedBy": "string"
},
"created_at": "string",
"updated_at": "string"
}
}
} {
"action": "allocate"
}