List zones for an account.

List zones for an account.

SecuritybearerAuth
Request
path Parameters
accountId
required
string <uuid>

Account ID to list zones for.

query Parameters
page
integer <int64>
Default: 0

The page of results you wish to be returned with page numbers starting at 0.

limit
integer <int64>
Default: 500

A limit on the number of results to be returned, between 1 and 500, with a default of 500. Use with page parameter.

Responses
200

Successful Operation

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

429

Too many requests

get/accounts/{accountId}/zones
Request samples
$apiKey = 'your_automox_api_key'
$headers = @{
  "Authorization" = "Bearer $apiKey"
  "Content-Type" = "application/json"
  }
$url = "https://console.automox.com/api/accounts/{accountId}/zones"

$response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
Response samples
application/json
{
  • "metadata": {
    • "total_pages": 10,
    • "current_page": 0,
    • "limit": 500,
    • "total_count": 500,
    • "links": []
    },
  • "data": [
    • {
      • "id": "2e9a5cab-31af-402e-87b7-a691371d42d0",
      • "organization_id": 845230,
      • "account_id": "c8e7dd4e-569d-4280-90f8-706fc944baf8",
      • "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
      • "name": "My New Zone",
      • "created_by": {
        • "id": "03703083-591e-43cb-b02f-716520a8705e",
        • "user_id": 2506247,
        • "email": "somebody@example.com",
        • "first_name": "John",
        • "last_name": "Doe",
        • "status": "pending-invite",
        • "account_rbac_role": "global-admin",
        • "is_verified": true,
        • "two_factor_authentication": "email",
        • "created_at": "2021-10-20T16:03:25+0000"
        },
      • "access_key": "e763151d-9cdb-410b-99ff-d812b8f4723c",
      • "created_at": "2021-10-20T16:03:25+0000",
      • "updated_at": "2021-10-20T16:03:25+0000"
      }
    ]
}