Skip to main content

registrations

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

Overview

Nameregistrations
TypeResource
Idgoogle.domains.registrations

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Name of the Registration resource, in the format projects/*/locations/*/registrations/.
contactSettingsobjectRequired. Settings for contact information linked to the Registration. You cannot update these with the UpdateRegistration method. To update these settings, use the ConfigureContactSettings method. (id: ContactSettings)
createTimestring (google-datetime)Output only. The creation timestamp of the Registration resource.
dnsSettingsobjectSettings controlling the DNS configuration of the Registration. You cannot update these with the UpdateRegistration method. To update these settings, use the ConfigureDnsSettings method. (id: DnsSettings)
domainNamestringRequired. Immutable. The domain name. Unicode domain names must be expressed in Punycode format.
domainPropertiesarrayOutput only. Special properties of the domain.
expireTimestring (google-datetime)Output only. The expiration timestamp of the Registration.
issuesarrayOutput only. The set of issues with the Registration that require attention.
labelsobjectSet of labels associated with the Registration.
managementSettingsobjectSettings for management of the Registration, including renewal, billing, and transfer. You cannot update these with the UpdateRegistration method. To update these settings, use the ConfigureManagementSettings method. (id: ManagementSettings)
pendingContactSettingsobjectOutput only. Pending contact settings for the Registration. Updates to the contact_settings field that change its registrant_contact or privacy fields require email confirmation by the registrant_contact before taking effect. This field is set only if there are pending updates to the contact_settings that have not been confirmed. To confirm the changes, the registrant_contact must follow the instructions in the email they receive. (id: ContactSettings)
registerFailureReasonstringOutput only. The reason the domain registration failed. Only set for domains in REGISTRATION_FAILED state.
statestringOutput only. The state of the Registration
supportedPrivacyarrayOutput only. Set of options for the contact_settings.privacy field that this Registration supports.
transferFailureReasonstringOutput only. Deprecated: For more information, see Cloud Domains feature deprecation. The reason the domain transfer failed. Only set for domains in TRANSFER_FAILED state.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, registrationsIdGets the details of a Registration resource.
listselectprojectsId, locationsIdpageSize, pageToken, filterLists the Registration resources in a project.
patchupdateprojectsId, locationsId, registrationsIdupdateMaskUpdates select fields of a Registration resource, notably labels. To update other fields, use the appropriate custom update method: * To update management settings, see ConfigureManagementSettings * To update DNS configuration, see ConfigureDnsSettings * To update contact information, see ConfigureContactSettings
deletedeleteprojectsId, locationsId, registrationsIdDeletes a Registration resource. This method works on any Registration resource using Subscription or Commitment billing, provided that the resource was created at least 1 day in the past. When an active registration is successfully deleted, you can continue to use the domain in Google Domains until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains. After January 2024 you will only be able to delete Registration resources when state is one of: EXPORTED, EXPIRED,REGISTRATION_FAILED or TRANSFER_FAILED. See Cloud Domains feature deprecation for more details.
search_domainsexecprojectsId, locationsIdquerySearches for available domain names similar to the provided query. Availability results from this method are approximate; call RetrieveRegisterParameters on a domain before registering to confirm availability.
registerexecprojectsId, locationsIdRegisters a new domain name and creates a corresponding Registration resource. Call RetrieveRegisterParameters first to check availability of the domain name and determine parameters like price that are needed to build a call to this method. A successful call creates a Registration resource in state REGISTRATION_PENDING, which resolves to ACTIVE within 1-2 minutes, indicating that the domain was successfully registered. If the resource ends up in state REGISTRATION_FAILED, it indicates that the domain was not registered successfully, and you can safely delete the resource and retry registration.
transferexecprojectsId, locationsIdDeprecated: For more information, see Cloud Domains feature deprecation Transfers a domain name from another registrar to Cloud Domains. For domains already managed by Google Domains, use ImportDomain instead. Before calling this method, go to the domain's current registrar to unlock the domain for transfer and retrieve the domain's transfer authorization code. Then call RetrieveTransferParameters to confirm that the domain is unlocked and to get values needed to build a call to this method. A successful call creates a Registration resource in state TRANSFER_PENDING. It can take several days to complete the transfer process. The registrant can often speed up this process by approving the transfer through the current registrar, either by clicking a link in an email from the registrar or by visiting the registrar's website. A few minutes after transfer approval, the resource transitions to state ACTIVE, indicating that the transfer was successful. If the transfer is rejected or the request expires without being approved, the resource can end up in state TRANSFER_FAILED. If transfer fails, you can safely delete the resource and retry the transfer.
importexecprojectsId, locationsIdDeprecated: For more information, see Cloud Domains feature deprecation Imports a domain name from Google Domains for use in Cloud Domains. To transfer a domain from another registrar, use the TransferDomain method instead. Since individual users can own domains in Google Domains, the calling user must have ownership permission on the domain.
configure_management_settingsexecprojectsId, locationsId, registrationsIdUpdates a Registration's management settings.
configure_dns_settingsexecprojectsId, locationsId, registrationsIdUpdates a Registration's DNS settings.
configure_contact_settingsexecprojectsId, locationsId, registrationsIdUpdates a Registration's contact settings. Some changes require confirmation by the domain's registrant contact . Caution: Please consider carefully any changes to contact privacy settings when changing from REDACTED_CONTACT_DATA to PUBLIC_CONTACT_DATA. There may be a delay in reflecting updates you make to registrant contact information such that any changes you make to contact privacy (including from REDACTED_CONTACT_DATA to PUBLIC_CONTACT_DATA) will be applied without delay but changes to registrant contact information may take a limited time to be publicized. This means that changes to contact privacy from REDACTED_CONTACT_DATA to PUBLIC_CONTACT_DATA may make the previous registrant contact data public until the modified registrant contact details are published.
exportexecprojectsId, locationsId, registrationsIdDeprecated: For more information, see Cloud Domains feature deprecation Exports a Registration resource, such that it is no longer managed by Cloud Domains. When an active domain is successfully exported, you can continue to use the domain in Google Domains until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains.
reset_authorization_codeexecprojectsId, locationsId, registrationsIdResets the authorization code of the Registration to a new random string. 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.
initiate_push_transferexecprojectsId, locationsId, registrationsIdInitiates the Push Transfer process to transfer the domain to another registrar. The process might complete instantly or might require confirmation or additional work. Check the emails sent to the email address of the registrant. The process is aborted after a timeout if it's not completed. This method is only supported for domains that have the REQUIRE_PUSH_TRANSFER property in the list of domain_properties. The domain must also be unlocked before it can be transferred to a different registrar. For more information, see Transfer a registered domain to another registrar.
renew_domainexecprojectsId, locationsId, registrationsIdRenews a recently expired domain. This method can only be called on domains that expired in the previous 30 days. After the renewal, the new expiration time of the domain is one year after the old expiration time and you are charged a yearly_price for the renewal.

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
filterstring
pageSizeinteger (int32)
pageTokenstring
querystring
updateMaskstring (google-fieldmask)

SELECT examples

Gets the details of a Registration resource.

SELECT
name,
contactSettings,
createTime,
dnsSettings,
domainName,
domainProperties,
expireTime,
issues,
labels,
managementSettings,
pendingContactSettings,
registerFailureReason,
state,
supportedPrivacy,
transferFailureReason
FROM google.domains.registrations
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND registrationsId = '{{ registrationsId }}' -- required;

UPDATE examples

Updates select fields of a Registration resource, notably labels. To update other fields, use the appropriate custom update method: * To update management settings, see ConfigureManagementSettings * To update DNS configuration, see ConfigureDnsSettings * To update contact information, see ConfigureContactSettings

UPDATE google.domains.registrations
SET
data__domainName = '{{ domainName }}',
data__labels = '{{ labels }}',
data__managementSettings = '{{ managementSettings }}',
data__dnsSettings = '{{ dnsSettings }}',
data__contactSettings = '{{ contactSettings }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND registrationsId = '{{ registrationsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a Registration resource. This method works on any Registration resource using Subscription or Commitment billing, provided that the resource was created at least 1 day in the past. When an active registration is successfully deleted, you can continue to use the domain in Google Domains until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains. After January 2024 you will only be able to delete Registration resources when state is one of: EXPORTED, EXPIRED,REGISTRATION_FAILED or TRANSFER_FAILED. See Cloud Domains feature deprecation for more details.

DELETE FROM google.domains.registrations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND registrationsId = '{{ registrationsId }}' --required;

Lifecycle Methods

Searches for available domain names similar to the provided query. Availability results from this method are approximate; call RetrieveRegisterParameters on a domain before registering to confirm availability.

EXEC google.domains.registrations.search_domains 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@query='{{ query }}';