List server public IPs

List a server's public IP addresses with their reverse DNS records.

GET https://{availability_zone}.betterstackcloud.com/v1/servers/{server_id}/ips
server_id string required

The ID of the server whose addresses to list.

page integer default: 1

The page to return, starting at 1.

per_page integer default: 25

How many entries to return per page. Maximum 1000.

Authorization string required

Bearer $TOKEN

Results are paginated

Use page and per_page to move through pages. See Pagination.

200 OK
{
  "data": [
    {
      "id": "example",
      "ip": "example",
      "type": "ipv4",
      "device_name": "Example server public IP",
      "ptr_record": "example"
    }
  ],
  "meta": {}
}

Returns the list of server public IPs.

id string

The ID of the address on this server, a UUID.

ip string

The IP address.

type string

Whether it's an IPv4 or IPv6 address. Possible values: ipv4, ipv6.

device_name string or null

The network interface on the server that has the address, such as eth0.

ptr_record string or null

The reverse DNS name for the address. When the address is a reserved IP, this name replaces the reserved IP's own reverse DNS name.