SecondaryZones

Create primary server

Changed on

Create a primary server for a secondary zone.

post/dns/v2/secondary-zones/{zoneName}/primaries

Request

  • Base URL
    https://api.gcore.com
  • URL
    https://api.gcore.com/dns/v2/secondary-zones/{zoneName}/primaries
  • Auth
    HTTP apikey

Path parameters

zoneNamestring required

Request body

addressstring

Hostname or IP literal, optionally with a :port suffix. Public/routable IP literals are accepted; private, link-local, unspecified, and multicast IP literals are rejected with a 400 error. Hostnames and loopback addresses are accepted as-is and resolved only at transfer time.

metaobject
priorityinteger

Priority of this primary relative to the zone's other primaries. Defaults to 10 when omitted; an explicit 0 is retained rather than replaced by the default.

Response

PrimaryServerResponse

addressstring
consecutive_failuresinteger
created_atstring date-time
enabledboolean
idinteger
last_error_atstring date-time
last_error_msgstring
last_success_atstring date-time
metaobject
priorityinteger
secondary_zone_idinteger
updated_atstring date-time

Changes