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