GET /projects/{project_id}/dns/zones
List DNS zones hosted by Galon
Administrator SESSION route (console). Served only when the service is open to the account (404 not_found otherwise). Non-administrator member: 403. Domains bought elsewhere, served by Galon's name servers after delegation.
Console session only (signed-in console).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
project_id | path | string · required | project identifier |
Responses
| Status | Description | Body |
|---|---|---|
200 | Zones, delegation status, name servers | object |
401 | Key missing or invalid | Error |
Examples
curl
curl -X GET "$GALON_API_BASE/projects/<project_id>/dns/zones" \
-H "Authorization: Bearer $GALON_API_KEY"POST /projects/{project_id}/dns/zones
Create a DNS zone for a domain bought elsewhere
Administrator SESSION route (console). Served only when the service is open to the account (404 not_found otherwise). Non-administrator member: 403. 50 zones per project.
Console session only (signed-in console).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
project_id | path | string · required | project identifier |
Request body
application/json
| Field | Type | Description |
|---|---|---|
domain | string · required |
Responses
| Status | Description | Body |
|---|---|---|
201 | Zone created | object |
200 | Zone already claimed by this project | object |
409 | dns_zone_claimed, dns_zone_in_portfolio | Error |
422 | dns_zone_domain_invalid, dns_zone_reserved, dns_zone_limit_reached | Error |
401 | Key missing or invalid | Error |
Examples
curl
curl -X POST "$GALON_API_BASE/projects/<project_id>/dns/zones" \
-H "Authorization: Bearer $GALON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "string"}'