List placement groups

List the placement groups in this zone. Filter by part of a name or by metadata.

GET https://{availability_zone}.betterstackcloud.com/v1/placement-groups
query string

Only groups whose name contains this text, ignoring case.

metadata object

Only groups with this tag, sent as metadata[<key>]=<value>. Repeat it to match groups that have every given tag. Accepts any keys.

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",
      "name": "Example placement group",
      "placement_type": "spread",
      "server_ids": [
        "123456789"
      ],
      "created_at": "2026-07-01T12:00:00.000Z",
      "updated_at": "2026-07-01T12:00:00.000Z",
      "team_id": "t123",
      "metadata": {
        "example": "value"
      }
    }
  ],
  "meta": {}
}

Returns the list of placement groups.

id string

The placement group's ID, a UUID.

name string

The group's name.

placement_type string

How we place the group's servers. When there isn't room, the server is still created, on another host.
Valid values:
spread: We put each server on a different host when we can.
compact: We put the servers on as few hosts as we can.

server_ids array of strings

The IDs of the servers in the group. A server joins the group when you create it with placement_group_id.

created_at datetime

When the group was created. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

updated_at datetime

When the group was last updated. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

team_id string

The ID of the team that owns the group. betterstack team list shows it.

metadata object

Your own tags, as string keys and values.