mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-11 23:49:35 +00:00
49 lines
1.5 KiB
Text
49 lines
1.5 KiB
Text
NAME
|
|
gcloud beta iam policies create - create a policy on the given attachment
|
|
point with the given name
|
|
|
|
SYNOPSIS
|
|
gcloud beta iam policies create POLICY_ID
|
|
--attachment-point=ATTACHMENT_POINT --kind=KIND
|
|
--policy-file=POLICY_FILE [GCLOUD_WIDE_FLAG ...]
|
|
|
|
DESCRIPTION
|
|
(BETA) Create a policy on the given attachment point with the given name.
|
|
|
|
EXAMPLES
|
|
The following command creates the IAM policy defined at the resource
|
|
project 123 of kind denypolicies and id my-deny-policy from the file
|
|
policy.json:
|
|
|
|
$ gcloud beta iam policies create my-deny-policy \
|
|
--attachment-point=cloudresourcemanager.googleapis.com/\
|
|
projects/123 --kind=denypolicies --policy-file=policy.json
|
|
|
|
POSITIONAL ARGUMENTS
|
|
POLICY_ID
|
|
Id of the policy.
|
|
|
|
REQUIRED FLAGS
|
|
--attachment-point=ATTACHMENT_POINT
|
|
Resource to which the policy is attached.
|
|
|
|
--kind=KIND
|
|
Kind of the policy.
|
|
|
|
--policy-file=POLICY_FILE
|
|
Contents of the policy.
|
|
|
|
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. This
|
|
variant is also available:
|
|
|
|
$ gcloud alpha iam policies create
|
|
|