Records

Endpoints related to managing DNS zone records.

List DNS Zone Records

Requires the dns-view capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
zoneId
required
string

The ID of the zone.

query Parameters
include
Array of strings

A comma separated list of include values. Included resources will show up under the root document's include field, with the key being the id of the included resource. In the case of applying an include to a collection of resources, if two resources share the same include, it will only appear once in the return.

Items Enum: "creators" "containers"
object

Filter Field

The filter field is a key-value object, where the key is what you would like to filter, and the value is the value you're filtering for.

sort
Array of strings

An array of sort values. To sort descending, put a - in front of the value, e.g. -id.

object

In a list return, the data associated with the page number and size returned. 20 results per page, page 2 would be page[size]=20&page[number]=2

Responses
200

Returns a collection of DNS Zone Records.

default

General error response from the platform

get/v1/dns/zones/{zoneId}/records
Response samples
application/json
{
  • "data": [
    ],
  • "includes": {
    }
}

Create DNS Zone Record

Requires the dns-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
zoneId
required
string

The ID of the Zone.

Request Body schema: application/json

Parameters for creating a new DNS Zone Record.

required
object (RecordTypes)

DNS record types the platform supports.

name
required
string

A name for the given record where @ represents the desire to use the root of the origin.

Responses
201

Returns the DNS zone resource.

default

General error response from the platform

post/v1/dns/zones/{zoneId}/records
Request samples
application/json
{
  • "type": {
    },
  • "name": "string"
}
Response samples
application/json
{
  • "data": {
    }
}

Update DNS Zone Record

Requires the dns-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
zoneId
required
string

The ID of the Zone.

recordId
required
string

The ID of the record.

Request Body schema: application/json

Parameters for updating a DNS Zone Record. The name value cannot be updated and is omitted from the properties.

required
object (RecordTypes)

DNS record types the platform supports.

Responses
200

Returns a DNS Zone Record.

default

General error response from the platform

patch/v1/dns/zones/{zoneId}/records/{recordId}
Request samples
application/json
{
  • "type": {
    }
}
Response samples
application/json
{
  • "data": {
    }
}

Delete DNS Zone Record

Requires the dns-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
zoneId
required
string

The ID of the Zone.

recordId
required
string

The ID of the DNS Zone Record.

Responses
202

Returns a Job Descriptor.

default

General error response from the platform

delete/v1/dns/zones/{zoneId}/records/{recordId}
Response samples
application/json
{
  • "data": {
    }
}

Create a DNS Zone Record Job

Used to perform different actions on a given DNS Zone record.

Requires the dns-manage capability.

SecuritybearerAuth and hubAuth
Request
path Parameters
zoneId
required
string

The ID of the zone.

recordId
required
string

The ID of the record.

Request Body schema: application/json

Parameters for creating a new DNS Zone Record Job.

action
required
string

The action that the job will take.

Value: "generateCert"
Responses
202

Returns a Job Descriptor.

default

General error response from the platform

post/v1/dns/zones/{zoneId}/records/{recordId}/tasks
Request samples
application/json
{
  • "action": "generateCert"
}
Response samples
application/json
{
  • "data": {
    }
}