retrieve_domain_auth_code

Route53Domains.Client.retrieve_domain_auth_code(**kwargs)

This operation returns the authorization code for the domain. To transfer a domain to another registrar, you provide this value to the new registrar.

See also: AWS API Documentation

Request Syntax

response = client.retrieve_domain_auth_code(
    DomainName='string'
)
Parameters
DomainName (string) --

[REQUIRED]

The name of the domain that you want to get an authorization code for.

Return type
dict
Returns
Response Syntax
{
    'AuthCode': 'string'
}

Response Structure

  • (dict) --

    The RetrieveDomainAuthCode response includes the following element.

    • AuthCode (string) --

      The authorization code for the domain.

Exceptions

  • Route53Domains.Client.exceptions.InvalidInput
  • Route53Domains.Client.exceptions.UnsupportedTLD