Claim a server from a pool

Claim the oldest warm server of the pool. The server is already running on the addresses it booted with, and the pool's default keys work at once. Keys in ssh_keys and a root_password the claim adds reach the server a few seconds later. The server has already booted, so a claim accepts no user_data, reserved IPs, server type or disk.

POST https://{availability_zone}.betterstackcloud.com/v1/servers/pools/{id}/claim
id string required

The ID of the server pool to claim.

Authorization string required

Bearer $TOKEN

Content-Type string

application/json

name string required

The server's name, unique among the organization's live servers.

ssh_keys array of strings

The slugs of SSH keys of the pool's team to add to the pool's default keys.

root_password boolean default: false

Whether to set a root password. The response shows the password once.

metadata object

Tags for the server, added to the pool's default tags. Accepts any keys.

firewall_ids array of strings

The ID of one firewall of the pool's team to attach. Refused when the pool's defaults already attach a firewall.

network_ids array of strings

The IDs of private networks of the pool's team to join. Each one gets a private IP and is attached shortly after the response, as when you create a server.

subdomain boolean default: true

Whether the server gets its generic subdomain.

200 OK
{
  "root_password": "example"
}

Returns the server.

root_password string

The root password, shown only this once, when the request sets root_password to true.