gcloud alpha domains registrations create

NAME
gcloud alpha domains registrations create - create a new domain registration
SYNOPSIS
gcloud alpha domains registrations create REGISTRATION [--async] [--labels=[KEY=VALUE,…]] [--registrant-contact-from-file=REGISTRANT_CONTACT_FROM_FILE] [--validate-only] [--whois-privacy=WHOIS_PRIVACY] [--cloud-dns-zone=CLOUD_DNS_ZONE     | --name-servers=NAME_SERVER,…,[…]] [GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) This command creates a new domain registration.
POSITIONAL ARGUMENTS
Registration resource - The domain registration to create. This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways. To set the [project] attribute: provide the argument [registration] on the command line with a fully specified name; provide the argument [--project] on the command line; set the property [core/project]. To set the [location] attribute: provide the argument [registration] on the command line with a fully specified name; location is always global. This must be specified.
REGISTRATION
ID of the registration or fully qualified identifier for the registration.
FLAGS
--async
Return immediately, without waiting for the operation in progress to complete.
--labels=[KEY=VALUE,…]
List of label KEY=VALUE pairs to add.

Keys must start with a lowercase character and contain only hyphens (-), underscores (_), lowercase characters, and numbers. Values must contain only hyphens (-), underscores (_), lowercase characters, and numbers.

--registrant-contact-from-file=REGISTRANT_CONTACT_FROM_FILE
A YAML file containing the required WHOIS data. If specified, this file must contain values for all required fields: email, phoneNumber and postalAddress in google.type.PostalAddress format.

For more guidance on how to specify postalAddress, please see: https://support.google.com/business/answer/6397478

Example file contents:

  email: 'example@example.com'
  phoneNumber: '+11234567890'
  postalAddress:
    regionCode: 'US'
    postalCode: '94043'
    administrativeArea: 'CA'
    locality: 'Mountain View'
    addressLines: ['1600 Amphitheatre Pkwy']
    recipients: ['Jane Doe']
--validate-only
Don't actually create registration. Only validate arguments.
--whois-privacy=WHOIS_PRIVACY
The WHOIS privacy mode to use. WHOIS_PRIVACY must be one of:
publish-redacted-contact-data
Limited personal info will be available to the public. The actual information redacted depends on the domain.
use-whois-privacy-proxy
Your contact info won't be available to the public. To help protect your info and prevent spam, a third party provides alternate contact info for your domain in the WHOIS directory at no extra cost.
Set the addresses of authoritative name servers for the given domain. At most one of these may be specified:
--cloud-dns-zone=CLOUD_DNS_ZONE
The name of the Cloud DNS managed-zone to set as the name server for the domain. If it's in the same project, you can use short name. If not, use the full resource name, e.g.: --cloud-dns-zone=projects/example-project/managedZones/example-zone
--name-servers=NAME_SERVER,…,[…]
List of DNS name servers for the domain.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.

Run $ gcloud help for details.

EXAMPLES
To create a new registration for example.com interactively, run:
  $ gcloud alpha domains registrations create example.com
NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you may be trying to access an API with an invitation-only early access whitelist.