gcloud_alpha_container_binauthz_policy_import (1)
NAME
- gcloud alpha container binauthz policy import - import a Binary Authorization policy to the current project
SYNOPSIS
-
gcloud alpha container binauthz policy import POLICY_FILE [--strict-validation] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) This command accepts a description of the desired policy in the
POSITIONAL ARGUMENTS
-
- POLICY_FILE
-
The file containing the YAML-formatted policy description.
FLAGS
-
- --strict-validation
-
Whether to perform additional checks on the validity of policy contents.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
EXAMPLE
One way of updating the current project's policy is to run:
-
$ gcloud alpha container binauthz policy export > my_policy.yaml
$ edit my_policy.yaml
$ gcloud alpha container binauthz policy import \
--policy-file=my_policy.yaml
NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support This variant is also available:
- $ gcloud beta container binauthz policy import