File: //snap/google-cloud-cli/394/lib/surface/compute/target_tcp_proxies/config/export.yaml
release_tracks: [ALPHA]
command_type: CONFIG_EXPORT
help_text:
brief: Export the configuration for a Compute Engine target tcp proxy.
description: |
*{command}* exports the configuration for a Compute Engine target tcp proxy.
Target tcp proxy 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
target tcp proxies within the project.
Specifying `--path` allows you to export the configuration(s) to
a local directory.
examples: |
To export the configuration for a target tcp proxy, run:
$ {command} my-target-tcp-proxy
To export the configuration for a target tcp proxy to a file, run:
$ {command} my-target-tcp-proxy --path=/path/to/dir/
To export the configuration for a target tcp proxy in Terraform
HCL format, run:
$ {command} my-target-tcp-proxy --resource-format=terraform
To export the configurations for all target tcp proxies within a
project, run:
$ {command} --all
arguments:
resource:
help_text: Target tcp proxy to export the configuration for.
spec: !REF googlecloudsdk.command_lib.compute.resources:target_tcp_proxy