1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-17 06:11:59 +00:00
gcloud-help/gcloud/beta/iam/policies/update
2022-10-26 10:52:11 +00:00

53 lines
1.8 KiB
Text

NAME
gcloud beta iam policies update - update the policy on the given attachment
point with the given name
SYNOPSIS
gcloud beta iam policies update POLICY_ID
--attachment-point=ATTACHMENT_POINT --kind=KIND
--policy-file=POLICY_FILE [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Update the policy on the given attachment point with the given name.
EXAMPLES
The following command updates the IAM policy defined at the resource
project 123 of kind denypolicies and id my-deny-policy:
$ gcloud beta iam policies update my-deny-policy \
--attachment-point=cloudresourcemanager.googleapis.com/\
projects/123 --kind=denypolicies --policy-file=policy.json
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, see
https://cloud.google.com/iam/help/deny/attachment-point.
--kind=KIND
Policy type. Use denypolicies for deny policies.
--policy-file=POLICY_FILE
Path to the file that contains the policy, in JSON or YAML format. For
valid syntax, see https://cloud.google.com/iam/help/deny/policy-syntax.
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. These
variants are also available:
$ gcloud iam policies update
$ gcloud alpha iam policies update