Menu
Amazon Route 53
API Reference

CreateReusableDelegationSet

Creates a delegation set (a group of four name servers) that can be reused by multiple hosted zones. If a hosted zoned ID is specified, CreateReusableDelegationSet marks the delegation set associated with that zone as reusable

Note

A reusable delegation set can't be associated with a private hosted zone.

For information on how to use a reusable delegation set to configure white label name servers, see Configuring White Label Name Servers.

Request Syntax

POST /2013-04-01/delegationset HTTP/1.1
<?xml version="1.0" encoding="UTF-8"?>
<CreateReusableDelegationSetRequest xmlns="https://route53.amazonaws.com/doc/2013-04-01/">
   <CallerReference>string</CallerReference>
   <HostedZoneId>string</HostedZoneId>
</CreateReusableDelegationSetRequest>

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in XML format.

CreateReusableDelegationSetRequest

Root level tag for the CreateReusableDelegationSetRequest parameters.

Required: Yes

CallerReference

A unique string that identifies the request, and that allows you to retry failed CreateReusableDelegationSet requests without the risk of executing the operation twice. You must use a unique CallerReference string every time you submit a CreateReusableDelegationSet request. CallerReference can be any unique string, for example a date/time stamp.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: Yes

HostedZoneId

If you want to mark the delegation set for an existing hosted zone as reusable, the ID for that hosted zone.

Type: String

Length Constraints: Maximum length of 32.

Required: No

Response Syntax

HTTP/1.1 201
Location: Location
<?xml version="1.0" encoding="UTF-8"?>
<CreateReusableDelegationSetResponse>
   <DelegationSet>
      <CallerReference>string</CallerReference>
      <Id>string</Id>
      <NameServers>
         <NameServer>string</NameServer>
      </NameServers>
   </DelegationSet>
</CreateReusableDelegationSetResponse>

Response Elements

If the action is successful, the service sends back an HTTP 201 response.

The response returns the following HTTP headers.

Location

The unique URL representing the new reusable delegation set.

Length Constraints: Maximum length of 1024.

The following data is returned in XML format by the service.

CreateReusableDelegationSetResponse

Root level tag for the CreateReusableDelegationSetResponse parameters.

Required: Yes

DelegationSet

A complex type that contains name server information.

Type: DelegationSet object

Errors

For information about the errors that are common to all actions, see Common Errors.

DelegationSetAlreadyCreated

A delegation set with the same owner and caller reference combination has already been created.

HTTP Status Code: 400

DelegationSetAlreadyReusable

The specified delegation set has already been marked as reusable.

HTTP Status Code: 400

DelegationSetNotAvailable

You can create a hosted zone that has the same name as an existing hosted zone (example.com is common), but there is a limit to the number of hosted zones that have the same name. If you get this error, Amazon Route 53 has reached that limit. If you own the domain name and Amazon Route 53 generates this error, contact Customer Support.

HTTP Status Code: 400

HostedZoneNotFound

The specified HostedZone can't be found.

HTTP Status Code: 400

InvalidArgument

Parameter name is invalid.

HTTP Status Code: 400

InvalidInput

The input is not valid.

HTTP Status Code: 400

LimitsExceeded

The limits specified for a resource have been exceeded.

HTTP Status Code: 400

Examples

Example Request

Copy
POST /2013-04-01/delegationset HTTP/1.1 <?xml version="1.0" encoding="UTF-8"?> <CreateReusableDelegationSetRequest xmlns="https://route53.amazonaws.com/doc/2013-04-01/"> <CallerReference>2017-03-15T01:36:41.958Z</CallerReference> <HostedZoneId>Z1D633PJN98FT9</HostedZoneId> </CreateReusableDelegationSetRequest>

Example Response

Copy
HTTP/1.1 201 Created <?xml version="1.0" encoding="UTF-8"?> <CreateReusableDelegationSetResponse xmlns="https://route53.amazonaws.com/doc/2013-04-01/"> <DelegationSet> <Id>/delegationset/N1PA6795SAMPLE</Id> <CallerReference>2017-03-15T01:36:41.958Z</CallerReference> <NameServers> <NameServer>ns-2048.awsdns-64.com</NameServer> <NameServer>ns-2049.awsdns-65.net</NameServer> <NameServer>ns-2050.awsdns-66.org</NameServer> <NameServer>ns-2051.awsdns-67.co.uk</NameServer> </NameServers> </DelegationSet> </CreateReusableDelegationSetResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: