gcloud_beta_dns_record-sets_import (1)
NAME
- gcloud beta dns record-sets import - import record-sets into your managed-zone
SYNOPSIS
-
gcloud beta dns record-sets import RECORDS_FILE --zone=ZONE, -z ZONE [--delete-all-existing] [--replace-origin-ns] [--zone-file-format] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) This command imports record-sets contained within the specified
POSITIONAL ARGUMENTS
-
- RECORDS_FILE
-
File from which record-sets should be imported.
REQUIRED FLAGS
-
- --zone=ZONE, -z ZONE
-
Name of the managed-zone whose record-sets you want to manage.
OPTIONAL FLAGS
-
- --delete-all-existing
-
Indicates that all existing record-sets should be deleted before importing the
record-sets in the records-file.
- --replace-origin-ns
-
Indicates that NS records for the origin of a zone should be imported if defined
- --zone-file-format
-
Indicates that the input records-file is in BIND zone format. If omitted,
indicates that the records-file is in YAML format.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
EXAMPLES
To import record-sets from a yaml record-sets file, run:
-
$ gcloud beta dns record-sets import YAML_RECORDS_FILE \
--zone MANAGED_ZONE
To import record-sets from a zone file, run:
-
$ gcloud beta dns record-sets import ZONE_FILE --zone-file-format \
--zone MANAGED_ZONE
To replace all the record-sets in your zone with records from a yaml file, run:
-
$ gcloud beta dns record-sets import YAML_RECORDS_FILE \
--delete-all-existing --zone MANAGED_ZONE
NOTES
This command is currently in BETA and may change without notice. This variant is also available:
- $ gcloud dns record-sets import