File: //snap/google-cloud-cli/396/lib/surface/compute/networks/subnets/config/export.yaml
release_tracks: [ALPHA]
command_type: CONFIG_EXPORT
help_text:
brief: Export the configuration for a Compute Engine subnetwork.
description: |
*{command}* exports the configuration for a Compute Engine subnetwork.
Subnetwork configurations can be exported in
Kubernetes Resource Model (krm) or Terraform HCL formats. The
default format is `krm`.
Specifying `--all` allows you to export the configurations for all
subnetworks within the project.
Specifying `--path` allows you to export the configuration(s) to
a local directory.
examples: |
To export the configuration for a subnetwork, run:
$ {command} my-subnetwork
To export the configuration for a subnetwork to a file, run:
$ {command} my-subnetwork --path=/path/to/dir/
To export the configuration for a subnetwork in Terraform
HCL format, run:
$ {command} my-subnetwork --resource-format=terraform
To export the configurations for all subnetworks within a
project, run:
$ {command} --all
arguments:
resource:
help_text: Subnetwork to export the configuration for.
spec: !REF googlecloudsdk.command_lib.compute.resources:subnet