Retrieve information for a specific zone.
Successful Operation
Invalid Request
Access token is missing or invalid
You do not have permission to perform this action.
Entity not found
Too many requests
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" "Content-Type" = "application/json" } $url = "https://console.automox.com/api/accounts/{accountId}/zones/{zoneId}" $response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
{- "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"
}