v1

latestOpenAPI 3.1.12026-07-17111158225.7 KB
secondary dns

List primary servers

List the primary servers in the account.

get/{account}/secondary_dns/primaries

Path parameters

accountinteger required

The account id

Query parameters

sort'id:asc' | 'id:desc' | 'name:asc' | 'name:desc'

Sort results. Default sorting is ascending by id.

Response

Primary Server listing.

Example response

{
  "data": [
    {
      "id": 1,
      "account_id": 2020,
      "name": "Primary Server",
      "ip": "1.1.1.1",
      "port": 4567,
      "linked_secondary_zones": [
        "example.com"
      ],
      "created_at": "2016-08-11T10:16:03Z",
      "updated_at": "2016-08-11T10:16:03Z"
    }
  ],
  "pagination": {
    "current_page": 1,
    "per_page": 30,
    "total_entries": 2,
    "total_pages": 1
  }
}