gcloud alpha iam policies get

NAME
gcloud alpha iam policies get - get a policy on the given attachment point with the given name
SYNOPSIS
gcloud alpha iam policies getPOLICY_ID--attachment-point=ATTACHMENT_POINT--kind=KIND[GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Get a policy on the given attachment point with the givenname.
EXAMPLES
The following command gets the IAM policy defined at the resource project123 of kinddenypolicies and idmy-deny-policy:
gcloudalphaiampoliciesgetmy-deny-policy--attachment-point=cloudresourcemanager.googleapis.com/projects/123--kind=denypolicies
POSITIONAL ARGUMENTS
POLICY_ID
Policy ID that is unique for the resource to which the policy is attached.
REQUIRED FLAGS
--attachment-point=ATTACHMENT_POINT
Resource to which the policy is attached. For valid formats, seehttps://cloud.google.com/iam/help/deny/attachment-point.
--kind=KIND
Policy type. Usedenypolicies for deny policies.
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 alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudiampoliciesget
gcloudbetaiampoliciesget

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.