gcloud beta artifacts docker upgrade print-iam-policy

NAME
gcloud beta artifacts docker upgrade print-iam-policy - print an Artifact Registry IAM policy for Container Registry to Artifact Registry upgrade
SYNOPSIS
gcloud beta artifacts docker upgrade print-iam-policyDOMAIN[GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) Print an Artifact Registry IAM policy that is equivalent tothe IAM policy applied to the storage bucket for the specified ContainerRegistry hostname. Apply the returned policy to the Artifact Registry repositorythat will replace the specified host. If the project has an organization, thiscommand analyzes IAM policies at the organization level. Otherwise, this commandanalyzes IAM policies at the project level. See required permissions athttps://cloud.google.com/policy-intelligence/docs/analyze-iam-policies#required-permissions.
EXAMPLES
To print an equivalent Artifact Registry IAM policy for 'gcr.io/my-project':
gcloudbetaartifactsdockerupgradeprint-iam-policyupgradeprint-iam-policygcr.io--project=my-project
POSITIONAL ARGUMENTS
DOMAIN
A Container Registry domain. Valid values are: [gcr.io, asia.gcr.io, eu.gcr.io,us.gcr.io]
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 help for details.

NOTES
This command is currently in beta and might change without notice.

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.