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
hiddenBooleanNameserver defined as hidden. Available for primary nameservers only
synchronizedBooleanNameserver synchronized with Nameshield's nameservers. Available for external secondary nameservers only

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
routingRoutingPolicynullThe routing policy configured for the record. This feature requires to activate the GSLB service

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

RoutingPolicy

NameTypeDefault valueDescription
policyStringThe type of routing policy. Routing policies allows you to configure multiple (A, AAAA, CNAME) records for the same subdomain and determine the amount of traffic routed to each resource.
Allowed values:
  • WEIGHTED: The proportion of traffic allocated to the resource is based on the weight of the record relative to the total weight of all records in the same RRset. The "weight" parameter must be specified
  • GEOIP: The traffic is based on the geographic location of users (by mapping IP addresses to locations). The "location" parameter must be specified
  • FAILOVER: The traffic is routed to the resource with the lowest priority having an 'Healthy' health check. Failover routing must be associated with a health check to monitor the status of the resource. The "priority" parameter must be specified
weightIntegerThe relative weight defined for the record (value between 1 and 1000). Required for Weighted routing policy
priorityIntegerThe priority defined for the record (value between 1 and 1000). Required for Failover routing policy
locationStringThe geographic location defined for the record. Required for Geolocation routing policy.
You can configure geographic locations by continent or by country, or specify IP ranges. A default location must be specified to handle requests that do not match any of the configured geographic locations
healthcheckStringA health check uuid. Required for Failover routing policy and optional for Weighted and Geolocation routing policies.
  • Associating a health check with a Failover routing policy allows the traffic to be switched to another active resource when the health check becomes 'Unhealthy'
  • Associating a health check with a Weighted routing policy allows the resource to be automatically removed from the zone when the health check becomes 'Unhealthy'
  • Associating a health check with a Geolocation routing policy allows the corresponding location to be automatically removed from the zone when the health check becomes 'Unhealthy'. Queries are routed to the next higher available level


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

InputZoneUpdate

NameRequiredTypeDefault valueDescription
customer_idNoIntegerThe customer ID associated with the zone
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
primaryYesBooleanDefine the nameserver as primary. Only one nameserver can be defined as primary
hiddenNoBooleanDefine the nameserver as hidden. Only the primary nameserver can be defined as hidden
synchronizedNoBooleanEnable synchronisation with Nameshield's nameservers. Available for external secondary nameservers only

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
routingNoInputRoutingPolicynullConfigure a routing policy for the record. This feature requires to activate the GSLB service, please contact your account manager for more information

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

InputRoutingPolicy

NameRequiredTypeDefault valueDescription
policyYesStringThe type of routing policy. Routing policies allows you to configure multiple (A, AAAA, CNAME) records for the same subdomain and determine the amount of traffic routed to each resource.
Allowed values:
  • WEIGHTED: The proportion of traffic allocated to the resource is based on the weight of the record relative to the total weight of all records in the same RRset. The "weight" parameter must be specified
  • GEOIP: The traffic is based on the geographic location of users (by mapping IP addresses to locations). The "location" parameter must be specified
  • FAILOVER: The traffic is routed to the resource with the lowest priority having an 'Healthy' health check. Failover routing must be associated with a health check to monitor the status of the resource. The "priority" parameter must be specified
weightNoIntegerThe relative weight defined for the record (value between 1 and 1000). Required for Weighted routing policy
priorityNoIntegerThe priority defined for the record (value between 1 and 1000). Required for Failover routing policy
locationNoStringThe geographic location defined for the record. Required for Geolocation routing policy.
You can configure geographic locations by continent or by country, or specify IP ranges. A default location must be specified to handle requests that do not match any of the configured geographic locations
healthcheckNoStringA health check uuid. Required for Failover routing policy and optional for Weighted and Geolocation routing policies.
  • Associating a health check with a Failover routing policy allows the traffic to be switched to another active resource when the health check becomes 'Unhealthy'.
  • Associating a health check with a Weighted routing policy allows the resource to be automatically removed from the zone when the health check becomes 'Unhealthy'
  • Associating a health check with a Geolocation routing policy allows the corresponding location to be automatically removed from the zone when the health check becomes 'Unhealthy'. Queries are routed to the next higher available level

Location

Continent

CodeDescription
defaultdefault
AFAfrica
ANAntarctica
ASAsia
EUEurope
NANorth America
OCOceania
SASouth America

Country

Africa AF
CodeDescription
AF_AOAngola
AF_BFBurkina Faso
AF_BIBurundi
AF_BJBenin
AF_BWBotswana
AF_CDDR Congo
AF_CFCentral African Republic
AF_CGCongo Republic
AF_CIIvory Coast
AF_CMCameroon
AF_CVCabo Verde
AF_DJDjibouti
AF_DZAlgeria
AF_EGEgypt
AF_EHWestern Sahara
AF_EREritrea
AF_ETEthiopia
AF_GAGabon
AF_GHGhana
AF_GMThe Gambia
AF_GNGuinea
AF_GQEquatorial Guinea
AF_GWGuinea-Bissau
AF_KEKenya
AF_KMComoros
AF_LRLiberia
AF_LSLesotho
AF_LYLibya
AF_MAMorocco
AF_MGMadagascar
AF_MLMali
AF_MRMauritania
AF_MUMauritius
AF_MWMalawi
AF_MZMozambique
AF_NANamibia
AF_NENiger
AF_NGNigeria
AF_RERéunion
AF_RWRwanda
AF_SCSeychelles
AF_SDSudan
AF_SHSaint Helena
AF_SLSierra Leone
AF_SNSenegal
AF_SOSomalia
AF_SSSouth Sudan
AF_STSão Tomé and Príncipe
AF_SZEswatini
AF_TDChad
AF_TGTogo
AF_TNTunisia
AF_TZTanzania
AF_UGUganda
AF_YTMayotte
AF_ZASouth Africa
AF_ZMZambia
AF_ZWZimbabwe
Antarctica AN
CodeDescription
AN_AQAntarctica
AN_BVBouvet Island
AN_GSSouth Georgia and South Sandwich Islands
AN_HMHeard and McDonald Islands
AN_TFFrench Southern Territories
Asia AS
CodeDescription
AS_AEUnited Arab Emirates
AS_AFAfghanistan
AS_AMArmenia
AS_AZAzerbaijan
AS_BDBangladesh
AS_BHBahrain
AS_BNBrunei
AS_BTBhutan
AS_CCCocos (Keeling) Islands
AS_CNChina
AS_GEGeorgia
AS_HKHong Kong
AS_IDIndonesia
AS_ILIsrael
AS_INIndia
AS_IOBritish Indian Ocean Territory
AS_IQIraq
AS_IRIran
AS_JOJordan
AS_JPJapan
AS_KGKyrgyzstan
AS_KHCambodia
AS_KPNorth Korea
AS_KRSouth Korea
AS_KWKuwait
AS_KZKazakhstan
AS_LALaos
AS_LBLebanon
AS_LKSri Lanka
AS_MMMyanmar
AS_MNMongolia
AS_MOMacao
AS_MVMaldives
AS_MYMalaysia
AS_NPNepal
AS_OMOman
AS_PHPhilippines
AS_PKPakistan
AS_PSPalestine
AS_QAQatar
AS_SASaudi Arabia
AS_SGSingapore
AS_SYSyria
AS_THThailand
AS_TJTajikistan
AS_TMTurkmenistan
AS_TRTurkey
AS_TWTaiwan
AS_UZUzbekistan
AS_VNVietnam
AS_YEYemen
Europe EU
CodeDescription
EU_ADAndorra
EU_ALAlbania
EU_ATAustria
EU_AXÅland
EU_BABosnia and Herzegovina
EU_BEBelgium
EU_BGBulgaria
EU_BYBelarus
EU_CHSwitzerland
EU_CYCyprus
EU_CZCzechia
EU_DEGermany
EU_DKDenmark
EU_EEEstonia
EU_ESSpain
EU_FIFinland
EU_FOFaroe Islands
EU_FRFrance
EU_GBUnited Kingdom
EU_GGGuernsey
EU_GIGibraltar
EU_GRGreece
EU_HRCroatia
EU_HUHungary
EU_IEIreland
EU_IMIsle of Man
EU_ISIceland
EU_ITItaly
EU_JEJersey
EU_LILiechtenstein
EU_LTLithuania
EU_LULuxembourg
EU_LVLatvia
EU_MCMonaco
EU_MDMoldova
EU_MEMontenegro
EU_MKNorth Macedonia
EU_MTMalta
EU_NLNetherlands
EU_NONorway
EU_PLPoland
EU_PTPortugal
EU_RORomania
EU_RSSerbia
EU_RURussia
EU_SESweden
EU_SISlovenia
EU_SJSvalbard and Jan Mayen
EU_SKSlovakia
EU_SMSan Marino
EU_UAUkraine
EU_VAVatican City
EU_XKKosovo
North America NA
CodeDescription
NA_AGAntigua and Barbuda
NA_AIAnguilla
NA_AWAruba
NA_BBBarbados
NA_BLSaint Barthélemy
NA_BMBermuda
NA_BQBonaire, Sint Eustatius, and Saba
NA_BSBahamas
NA_BZBelize
NA_CACanada
NA_CRCosta Rica
NA_CUCuba
NA_CWCuraçao
NA_DMDominica
NA_DODominican Republic
NA_GDGrenada
NA_GLGreenland
NA_GPGuadeloupe
NA_GTGuatemala
NA_HNHonduras
NA_HTHaiti
NA_JMJamaica
NA_KNSaint Kitts and Nevis
NA_KYCayman Islands
NA_LCSaint Lucia
NA_MFSaint Martin
NA_MQMartinique
NA_MSMontserrat
NA_MXMexico
NA_NINicaragua
NA_PAPanama
NA_PMSaint Pierre and Miquelon
NA_PRPuerto Rico
NA_SVEl Salvador
NA_SXSaint Martin
NA_TCTurks and Caicos Islands
NA_TTTrinidad and Tobago
NA_USUnited States
NA_VCSaint Vincent and the Grenadines
NA_VGBritish Virgin Islands
NA_VIU.S. Virgin Islands
Oceania OC
CodeDescription
OC_ASAmerican Samoa
OC_AUAustralia
OC_CKCook Islands
OC_CXChristmas Island
OC_FJFiji
OC_FMMicronesia
OC_GUGuam
OC_KIKiribati
OC_MHMarshall Islands
OC_MPNorthern Mariana Islands
OC_NCNew Caledonia
OC_NFNorfolk Island
OC_NRNauru
OC_NUNiue
OC_NZNew Zealand
OC_PFFrench Polynesia
OC_PGPapua New Guinea
OC_PNPitcairn Islands
OC_PWPalau
OC_SBSolomon Islands
OC_TKTokelau
OC_TLTimor-Leste
OC_TOTonga
OC_TVTuvalu
OC_UMU.S. Outlying Islands
OC_VUVanuatu
OC_WFWallis and Futuna
OC_WSSamoa
South America SA
CodeDescription
SA_ARArgentina
SA_BOBolivia
SA_BRBrazil
SA_CLChile
SA_COColombia
SA_ECEcuador
SA_FKFalkland Islands
SA_GFFrench Guiana
SA_GYGuyana
SA_PEPeru
SA_PYParaguay
SA_SRSuriname
SA_UYUruguay
SA_VEVenezuela