Skip to content

Create a DNS zone

Request

Requires virtual-networks::modify permission.

Security
JWTAuthorizer
Path
networkNamestringrequired

Network name

domainNamestringrequired

Domain name

Bodyapplication/jsonrequired

DNS zone configuration

namestring

DNS zone name (e.g. "test.com")

descriptionstring
resolverstring

Custom resolver IP (if set)

networkNamestring

Virtual network this zone belongs to

domainNamestring

Domain this zone belongs to

orgIdstring

Organization ID

typestring

Object type discriminator

Example:"DNSZone"
curl -i -X POST \
  'https://apidocs.trustgrid.io/_mock/v2/domain/{domainName}/network/{networkName}/dns-zone' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "description": "string",
    "resolver": "string",
    "networkName": "string",
    "domainName": "string",
    "orgId": "string",
    "type": "DNSZone"
  }'

Responses

OK

Response
No content