Skip to main content

JSON objects

Response objects

ZoneSummary

NameTypeDefault valueDescription
idIntegerThe ID of the zone.
This information is not currently used by the API
customer_idIntegerThe customer ID associated with the zone
nameStringThe name of the zone
parent_zoneStringThe name of the parent zone if the zone is a subzone
statusStringThe status of the zone.
Allowed values :
  • ACTIVE: The zone is active
  • INSTALLING: The zone is awaiting installation on DNS
  • WAITING_VALIDATION: Modifications have been made and are awaiting validation.
  • DNS_PROPAGATION : Modifications have been validated and are awaiting propagation on DNS.
dnssec_statusStringThe DNSSEC status of the zone.
Allowed values :
  • UNSECURED: DNSSEC is disabled for the zone
  • SECURING: Enabling DNSSEC is in progress for the zone
  • SECURED: DNSSEC is enabled for the zone
  • UNSECURING: Disabling DNSSEC is in progress for the zone
strategicBooleanZone defined as strategic
dns_hosting_onlyBooleanZone with dns hosting only (the associated domain is not registered with Nameshield)
managed_primary_dnsBooleanZone with a primary nameserver managed by Nameshield
nameserversList of NameserverThe list of nameservers

Zone

NameTypeDefault valueDescription
idIntegerThe ID of the zone.
This information is not currently used by the API
customer_idIntegerThe customer ID associated with the zone
nameStringThe name of the zone
parent_zoneStringThe name of the parent zone if the zone is a subzone
statusStringThe status of the zone
Allowed values :
  • ACTIVE: The zone is active
  • WAITING_VALIDATION: Modifications have been made and are awaiting validation
  • DNS_PROPAGATION : Modifications have been validated and are awaiting propagation on DNS.
dnssec_statusStringThe DNSSEC status of the zone
Allowed values :
  • UNSECURED: DNSSEC is disabled for the zone
  • SECURING: Enabling DNSSEC is in progress for the zone
  • SECURED: DNSSEC is enabled for the zone
  • UNSECURING: Disabling DNSSEC is in progress for the zone
strategicBooleanZone defined as strategic
dns_hosting_onlyBooleanZone with dns hosting only (the associated domain is not registered with Nameshield)
managed_primary_dnsBooleanZone with a primary nameserver managed by Nameshield
nameserversList of NameserverThe list of nameservers
ttlIntegerThe default Time to live for the zone, in seconds.
Allowed values : 300, 600, 3600, 43200, 86400
soaSOAThe SOA of the zone
recordsList of RecordThe list of DNS records

Nameserver

NameTypeDefault valueDescription
nameStringThe name of the nameserver
primaryBooleanNameserver defined as primary

SOA

NameTypeDefault valueDescription
masterStringThe primary nameserver
emailStringtechnical@nameshield.netThe email address of the administrator
serialStringThe serial number for the zone
refreshInteger28800The refresh interval, in seconds.
Allowed values: 1800, 3600, 7200, 28800, 43200, 86400
retryInteger7200The retry interval, in seconds.
Allowed values: 3600, 10800, 28800, 43200, 86400
expireInteger604800The time to expire, in seconds.
Allowed values: 604800, 1209600, 2419200
minimumInteger7200The negative cache, in seconds.
Allowed values: 300, 600, 3600, 7200, 43200, 86400

Record

NameTypeDefault valueDescription
idIntegerThe ID of the DNS record
nameStringThe name of the DNS record
typeStringThe type of the DNS record
dataStringThe content of the DNS record
ttlIntegernullThe Time to live for the DNS record, in seconds.
Allowed values: 300, 600, 3600, 43200, 86400
created_atDateThe creation date of the record
modified_atDateLast time the record was modified
modified_byStringThe last user who modified the record
actionStringThe type of action.
Defined values:
  • CREATED: Record added
  • UPDATED: Record modified
  • DELETED: Record deleted
commentCommentnullThe comment on the record.
tagsList of TagnullThe list of tags on the record.
zoneStringThe name of the zone to which the record belongs.
This property is only specified on the List all zones records route

Comment

NameTypeDefault valueDescription
valueStringThe value of the comment
modified_atDateLast time the comment was modified
modified_byStringThe last user who modified the comment

Tag

NameTypeDefault valueDescription
tagStringThe name of the tag
valueStringThe value of the tag
created_atDateCreation date of the tag
created_byStringThe user who created the tag

DnssecKey

NameTypeDefault valueDescription
idIntegerThe key ID.
domainStringThe name of the domain related to the key.
keytagIntegerThe keytag of the key.
flagsIntegerThe key flags.
Possible values :
  • 257: KSK key
  • 256: ZSK key
algorithmIntegerThe key algorithm.
Possible values :
  • 5: RSASHA1 (deprecated)
  • 7: RSASHA1NSEC3SHA1 (deprecated)
  • 8: RSASHA256
  • 10: RSASHA512
  • 13: ECDSA256
  • 14: ECDSA384
digestStringThe key digest.
digest_typeIntegerThe key digest type value.
Possible values :
  • 1: SHA1 (deprecated)
  • 2: SHA256
  • 4: SHA384
public_keyStringThe public key.
statusStringThe key status.
Possible values :
  • PENDING_PUBLISH: The key has been added and is awaiting publication to the registry.
  • PUBLISHED: The key is published to the registry.
  • PENDING_UNPUBLISH: The key has been removed and is awaiting unpublication to the registry.
  • UNPUBLISHED: The key is unpublished to the registry.
created_atDateCreation date of the key.
published_atDatePublish date to the registry.
deleted_atDateDeletion date of the key.
unpublished_atDateUnpublish date to the registry.

ZoneSearchResults

NameTypeDefault valueDescription
totalIntegerTotal number of zones matching the search criteria
limitInteger100Number of zones returned
offsetInteger0Offset used
resultsList of ZoneSummaryList of zones matching the search criteria

RecordSearchResults

NameTypeDefault valueDescription
totalIntegerTotal number of DNS records matching the search criteria
limitIntegerNumber of DNS records returned
offsetInteger0Offset used
resultsList of RecordList of DNS records matching the search criteria

DnssecKeySearchResults

NameTypeDefault valueDescription
totalIntegerTotal number of keys matching the search criteria
limitInteger100Number of keys returned
offsetInteger0Offset used
sortStringdomainField used to sort the results
domainStringSearch filter on the domain name
statusStringSearch filter on the key status
algorithmStringSearch filter on the key algorithm
digest_typeStringSearch filter on the key digest type
customer_idStringSearch filter on customer
include_subsidiariesBooleanTrueInclude subsidiaries in the search
resultsList of DnssecKeyList of keys matching the search criteria


Input objects

InputZone

NameRequiredTypeDefault valueDescription
ttlYesIntegerThe default Time to live for the zone, in seconds.
Allowed values : 300, 600, 3600, 43200, 86400
soaNoInputSOAThe SOA of the zone
recordsNoList of InputRecordThe list of DNS records

InputSOA

NameRequiredTypeDefault valueDescription
emailNoStringtechnical@nameshield.netThe email address of the administrator
refreshNoInteger28800The refresh interval, in seconds.
Allowed values: 1800, 3600, 7200, 28800, 43200, 86400
retryNoInteger7200The retry interval, in seconds.
Allowed values: 3600, 10800, 28800, 43200, 86400
expireNoInteger604800The time to expire, in seconds.
Allowed values: 604800, 1209600, 2419200
minimumNoInteger7200The negative cache, in seconds.
Allowed values: 300, 600, 3600, 7200, 43200, 86400

InputZoneCreation

NameRequiredTypeDefault valueDescription
nameYesStringThe name of the zone.
customer_idNoIntegerThe customer ID associated with the zone.
If not set, the customer associated with the user will be used.
nameserversNoList of InputNameserverNameshield Premium nameserversList of nameservers associated with the zone.
You can define up to 12 nameservers.

InputNameserver

NameRequiredTypeDefault valueDescription
nameYesStringThe name of the server.
primaryYesBooleanOnly one server can be defined as primary.

InputRecord

NameRequiredTypeDefault valueDescription
nameYesStringThe name of the DNS record
typeYesStringThe type of the DNS record
dataYesStringThe content of the DNS record
ttlNoIntegernullThe Time to live for the DNS record, in seconds.
Allowed values: 300, 600, 3600, 43200, 86400
commentNoStringnullThe comment on the record
tagsNoList of InputTagnullList of tags on the record

InputTag

NameRequiredTypeDefault valueDescription
tagYesStringThe name of the tag
valueNoStringThe value of the tag

InputDnssecKey

NameRequiredTypeDefault valueDescription
public_keyYesStringThe public key.
algorithmYesIntegerThe key algorithm.
Allowed values :
  • 8: RSASHA256
  • 10: RSASHA512
  • 13: ECDSA256
  • 14: ECDSA384
digest_typeNoInteger2The key digest type.
Allowed values :
  • 2: SHA256
  • 4: SHA384