gcloud alpha dns record-sets export

NAME
gcloud alpha dns record-sets export - export your record-sets into a file
SYNOPSIS
gcloud alpha dns record-sets exportRECORDS_FILE--zone=ZONE,-zZONE[--location=LOCATION][--zone-file-format][GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) This command exports the record-sets contained within thespecified managed-zone into a file. The formats you can export to are YAMLrecords format (default) and BIND zone file format.
EXAMPLES
To export record-sets into a yaml file, run:
gcloudalphadnsrecord-setsexportrecords.yaml--zone=examplezonename

To export record-sets into a BIND zone formatted file instead, run:

gcloudalphadnsrecord-setsexportpathto.zonefile--zone=examplezonename--zone-file-format

Similarly, to import record-sets into a BIND zone formatted zone file, run:

gclouddnsrecord-setsimportpathto.zonefile--zone-file-format--zone=examplezonename
POSITIONAL ARGUMENTS
RECORDS_FILE
File to which record-sets should be exported.
REQUIRED FLAGS
--zone=ZONE,-zZONE
Name of the managed zone whose record sets you want to manage.
OPTIONAL FLAGS
--location=LOCATION
Specifies the desired service location the request is sent to. Defaults to CloudDNS global service. Use --location=global if you want to target the globalservice.
--zone-file-format
Indicates that records-file should be in the zone file format. When using thisflag, expect the record-set to be exported to a BIND zone formatted file. If youomit this flag, the record-set is exported into a YAML formatted records file.Note, this format flag determines the format of the output recorded in therecords-file; it is different from the global--format flag whichaffects console output alone.
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--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.

NOTES
This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gclouddnsrecord-setsexport
gcloudbetadnsrecord-setsexport

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-17 UTC.