gcloud beta container binauthz policy import Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta container binauthz policy import - import a Binary Authorization policy to the current project
- SYNOPSIS
gcloud beta container binauthz policy importPOLICY_FILE[--strict-validation][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)This command accepts a description of the desired policy inthe form of a YAML-formatted file. A representation of the current policy can beretrieved using the $gcloud betacontainer binauthz policy export command. One method of modifying the policyis to run$gcloud betacontainer binauthz policy export, dump the contents to a file, modifythe policy file to reflect the desired new policy, and provide this modifiedfile to$ gcloud beta container binauthz policy import.- EXAMPLES
- To update the current project's policy:
gcloudbetacontainerbinauthzpolicyexport >my_policy.yamleditmy_policy.yamlgcloudbetacontainerbinauthzpolicyimportmy_policy.yaml - 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:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudcontainerbinauthzpolicyimportgcloudalphacontainerbinauthzpolicyimport
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.