File: //snap/google-cloud-cli/current/lib/surface/network_security/authz_policies/import.yaml
release_tracks: [BETA, GA]
help_text:
brief: |
Import an `AuthzPolicy` resource.
description: |
Import an `AuthzPolicy` resource defined in a YAML file.
examples: |
To import an `AuthzPolicy` resource named
`my-authz-poilcy` from a YAML file in `us-central1`, run:
$ {command} my-authz-policy --source=my-authz-policy.yaml --location=us-central1
request:
collection: networksecurity.projects.locations.authzPolicies
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
spec: !REF googlecloudsdk.command_lib.network_security.resources:authzPolicy
help_text: |
The ID of the new or updated `AuthzPolicy` resource.
async:
collection: networksecurity.projects.locations.operations
import:
abort_if_equivalent: true
create_if_not_exists: true
create_request:
collection: networksecurity.projects.locations.authzPolicies
BETA:
api_version: v1beta1
GA:
api_version: v1
method: create