Cloud Panel

Add a public address

POST/api/v1/vms/{vm_uuid}/public-ip

Gives the server its own public IPv4 and IPv6 address, billed by the hour while it has them. This is the server's own pair, not a floating IP.

Parameters

NameInDescription
vm_uuidpath, stringrequiredServer id, from Create a VM or List VMs

Example request

curl -X POST "https://platform.serverscamp.com/api/v1/vms/$VM_UUID/public-ip" \
  -H "Authorization: Bearer $API_TOKEN"

Answer

Status 200 with this body.

FieldTypeDescription
public_ip_v4string, optionalPublic IPv4 address; null after a release
public_ip_v6string, optionalPublic IPv6 address; null after a release
{
  "public_ip_v4": "185.236.10.44",
  "public_ip_v6": "2a01:ea05:20:1::44"
}

Errors

StatusWhen
400The server's network is not on a router
401No token, or a token that is not valid
409The server has an address already, or is not active
422The body or a parameter is not what the operation takes

Every operation can also answer 401 without a valid token. All errors