Get Secondary Zone Groups - BETA

Applies To:
Route

This endpoint is currently available as a BETA. Business-critical processes should not depend on this functionality.

Retrieves either all or a specific secondary zone group.

Request

A request to retrieve secondary zone groups is described below.

HTTP Method Request URI

GET

Retrieve all secondary zone groups:

https://api.edgecast.com/v2/mcc/customers/AccountNumber/dns/secondarygroup

Retrieve a specific secondary zone group:

https://api.edgecast.com/v2/mcc/customers/AccountNumber/dns/secondarygroup?id=SecondaryZoneGroupID

Define the following variable when submitting the above request:

VariableA variable represents a value that must be replaced. A variable consists of either a URL segment (e.g., "0001" in /0001/) or a query string value (e.g., "3" in mediaTypes=3). Description

AccountNumber

Required

Replace this variable with a customer account number. This account number may be found in the upper right-hand corner of the MCC.

SecondaryZoneGroupID

Replace this variable with the system-defined ID associated with the desired secondary zone group.

If you don't know the ID of the desired secondary zone group, then please retrieve all secondary zone groups by omitting the query string from the request.

Request Headers

This endpointIdentifies a request's connection point to our REST API service. only takes advantage of common request headers.

Request Body

Request body parameters are not required by this endpoint.

Response

The response to the above request includes an HTTP status code, response headers, and a response body.

Status Code

A status code indicates whether the request was successfully performed.

Response Headers

The response for this endpoint only includes standard HTTP response headers.

View common response headers.

Response Body

The response body for a successful request contains the following response parameters for each secondary zone group returned by this endpoint:

Name Data Type Description

Id

Integer

Indicates the system-defined ID assigned to a secondary zone group.

Name

String

Indicates the name assigned to a secondary zone group.

ZoneComposition

Object

Contains parameters that define the secondary zone group.

MasterGroupId

Integer

ZoneComposition object

Indicates the system-defined ID for the master server group associated with the secondary zone group.

MasterServerTsigs

Array

ZoneComposition object

Lists the TSIG key(s) through which our name servers will authenticate to master name server(s).

MasterServer

Object

ZoneComposition object > MasterServerTsigs array

Contains the master name server associated with the TSIG key identified in the Tsig object.

Id

Integer

ZoneComposition object > MasterServerTsigs array > MasterServer object

Indicates the system-defined ID for the master name server defined within this object.

IpAddress

String

ZoneComposition object > MasterServerTsigs array > MasterServer object

Indicates the IP address for the master name server defined within this object.

Name

String

ZoneComposition object > MasterServerTsigs array > MasterServer object

Indicates the name for the master name server defined within this object.

Tsig

Object

ZoneComposition object > MasterServerTsigs array

Identifies the TSIG key assigned to the master name server defined by the MasterServer object.

Id

Integer

ZoneComposition object > MasterServerTsigs array > Tsig object

Indicates the system-defined ID for the TSIG key.

Alias

String

ZoneComposition object > MasterServerTsigs array > Tsig object

Indicates a brief description for the TSIG key.

KeyName

String

ZoneComposition object > MasterServerTsigs array > Tsig object

Indicates a unique name for the TSIG key.

KeyValue

String

ZoneComposition object > MasterServerTsigs array > Tsig object

Indicates the hash value through which our name servers will authenticate to a master name server.

AlgorithmId

Integer

ZoneComposition object > MasterServerTsigs array > Tsig object

Indicates the system-defined ID for the cryptographic hash function used to generate the hash value defined in the KeyValue parameter.

AlgorithmName

String

ZoneComposition object > MasterServerTsigs array > Tsig object

Indicates the system-defined name for the cryptographic hash function used to generate the hash value identified in the KeyValue parameter.

Zones

Array

ZoneComposition object

Contains the secondary zone(s) associated with this secondary zone group.

Comment

String

ZoneComposition object > Zones array

This parameter is reserved for future use.

DomainName

String

ZoneComposition object > Zones array

Indicates the name (e.g., example.com) for a secondary zone.

FixedZoneId

Integer

ZoneComposition object > Zones array

This parameter is reserved for future use.

IsCustomerOwned

Boolean

ZoneComposition object > Zones array

This parameter is reserved for future use. The only supported value for this parameter is "true."

Status

Integer

ZoneComposition object > Zones array

Indicates the secondary zone's status. The only supported value for this parameter is "1."

StatusName

String

ZoneComposition object > Zones array

Indicates the secondary zone's status. The only supported value for this parameter is "Active."

ZoneId

Integer

ZoneComposition object > Zones array

Indicates the system-defined ID for a secondary zone.

ZoneType

Integer

ZoneComposition object > Zones array

This parameter is reserved for future use. The only supported value for this parameter is "2."

Errors

The response body for an unsuccessful request may contain an error parameter that provides additional information.

View common error messages.

Sample Request and Response (JSON)

A sample JSON request is shown below.

GET https://api.edgecast.com/v2/mcc/customers/0001/dns/secondarygroup?id=450 HTTP/1.1

Authorization: TOK:12345678-1234-1234-1234-1234567890ab

Accept: application/json

Content-Type: application/json

Host: api.edgecast.com

A sample JSON response is shown below.

HTTP/1.1 200 OK

Cache-Control: private

Content-Type: application/json; charset=utf-8

Date: Thu, 15 Apr 2021 12:00:00 GMT

Content-Length: 731

[{
		"Id": 450,
		"Name": "My Secondary Zone Group",
		"ZoneComposition": {
			"MasterGroupId": 75,
			"MasterServerTsigs": [{
					"MasterServer": {
						"Id": 123,
						"IpAddress": "101.111.12.25",
						"Name": "MNS for external sites"
					},
					"Tsig": {
						"Id": 45,
						"Alias": "My TSIG Key",
						"KeyName": "Key4MNSES",
						"KeyValue": "1234567890abcdefghijkl",
						"AlgorithmId": 1,
						"AlgorithmName": "HMAC-MD5"
					}
				}
			],
			"Zones": [{
					"Comment": "",
					"DomainName": "example.com.",
					"FixedZoneId": 12345,
					"IsCustomerOwned": true,
					"Status": 1,
					"StatusName": "Active",
					"ZoneId": 78901,
					"ZoneType": 2
				}
			]
		}
	}
]