Skip to main content

registrations_authorization_code

Creates, updates, deletes, gets or lists a registrations_authorization_code resource.

Overview

Nameregistrations_authorization_code
TypeResource
Idgoogle.domains.registrations_authorization_code

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
codestringThe Authorization Code in ASCII. It can be used to transfer the domain to or from another registrar.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
retrieve_authorization_codeselectprojectsId, locationsId, registrationsIdGets the authorization code of the Registration for the purpose of transferring the domain to another registrar. You can call this method only after 60 days have elapsed since the initial domain registration. Domains that have the REQUIRE_PUSH_TRANSFER property in the list of domain_properties don't support authorization codes and must use the InitiatePushTransfer method to initiate the process to transfer the domain to a different registrar.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
registrationsIdstring

SELECT examples

Gets the authorization code of the Registration for the purpose of transferring the domain to another registrar. You can call this method only after 60 days have elapsed since the initial domain registration. Domains that have the REQUIRE_PUSH_TRANSFER property in the list of domain_properties don't support authorization codes and must use the InitiatePushTransfer method to initiate the process to transfer the domain to a different registrar.

SELECT
code
FROM google.domains.registrations_authorization_code
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND registrationsId = '{{ registrationsId }}' -- required;