Create a DNS Zone
To create a DNS zone with Cloud DNS API, follow this step:
Perform a POST request with the domain or subdomain, a description of your DNS zone (optional), and the DNS zone status (enable), true or false.
Result: On a successful POST request, you receive a response containing the DNS zone UUID, Name Servers, and the request status.
Request
Response
202 Successful operation
Response Fields
id
string
UUID of the newly created DNS zone
2a4428b3-dbe0-4357-9c02-609025b3a40f
type
string
Type of the resource
zone
href
string
Absolute path to the newly created DNS zone
createdDate
string
DNS zone creation timestamp
2023-03-15T09:58:59.147746133Z
createdBy
string
Unique name of the identity that created the resource
ionos:iam:cloud:31960002:users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3
createdByUserId
string
The unique ID of the user who created the resource
87f9a82e-b28d-49ed-9d04-fba2c0459cd3
lastModifiedDate
string
DNS zone update timestamp
2023-03-15T09:58:59.147746133Z
lastModifiedBy
string
Unique ID of the user has last modified the resource
ionos:iam:cloud:31960002:users/87f9a82e-b28d-49ed-9d04-fba2c0459cd3
lastModifiedByUserId
string
DNS zone update timestamp
63cef532-26fe-4a64-a4e0-de7c8a506c90
resourceURN
string
Unique name of the resource
ionos:<product>:<location>:<contract>:<resource-path>
nameservers
array
Name Servers assigned to the DNS zone
"ns-ic.ui-dns.com", "ns-ic.ui-dns.de", "ns-ic.ui-dns.org", "ns-ic.ui-dns.biz"
state
string
State of the request
CREATED
Quota
To retrieve the quota of DNS zones, perform a GET request to the /quota
endpoint.
Result: On a successful GET request, you receive a response containing the quota limits and quota usage for your contract.
Request
Response
200 OK
Response Fields
records
string
Number of DNS records
100000
reverseRecords
string
Number of reverse DNS records
5000
secondaryZones
string
Number of secondary DNS zones
100000
zones
string
Number of DNS zones
50000
records
string
Number of DNS records used
9
reverseRecords
string
Number of reverse DNS records used
1
secondaryZones
string
Number of secondary DNS zones used
6
zones
string
Number of DNS zones used
5
Last updated
Was this helpful?