dns.zones.createCreate a hosted zone for a domain you own
One owner per domain platform-wide, and the platform root domain cannot be hosted. Delegate by setting the returned nameservers as the NS records at the registrar.
Request syntax
POST /dns/api/zones
{
"name": "string",
"tags": "map of string"
}Request body
nameRequiredstring
The domain, such as example.com: trimmed, lowercased, trailing dot dropped, at most 253 characters. Refused (400) when it is not a hostname or is, sits under or encloses the platform domain; refused (409) when another organization holds it or an overlapping name as a zone or app domain, or when it lies inside an existing hosted zone
Constraints: 1-253 chars
tagsOptionalmap of string
Tags for the new resource, e.g. {"env": "prod", "project": "shop"}. Keys your organization marks required must be present, or the create is refused with the missing keys (GET /tags/api/keys lists them).
Constraints: key=value
Response
201 with the new zone (delegationStatus pending, dnssecStatus off): id, name, serial (the SOA serial, bumped on every record change), delegationStatus (pending, delegated or elsewhere), delegationNameservers, delegationCheckedAt, dnssecStatus (off, signing or disabling), queryLogging, createdAt, …, plus nameservers: the platform nameservers to set at the registrar. 400 for the platform's own domain or a tag refusal; 409 when the name or an overlapping one is held by another organization, lies inside an existing hosted zone, or the Hosted zones quota is reached.
A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.
Errors
- 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
- 401No credentials, or an access key that is unknown, revoked or expired.
- 403The caller's policies do not allow dns:CreateZone on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
- 404The resource does not exist in your organization.
Examples
The required parameters only, with example values. Replace id and the other placeholders with your own.
dcloud dns zones create --name examplecurl -X POST "https://console.platform-development.deutschecloud.app/dns/api/zones" \
-H "Authorization: EWS-ACCESS-KEY $ACCESS_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"example"}'Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_dns_zones_create.