1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-11 23:49:35 +00:00
gcloud-help/gcloud/alpha/access-context-manager/cloud-bindings/create

71 lines
2.7 KiB
Text
Raw Normal View History

2022-03-01 04:29:52 +00:00
NAME
2022-10-18 11:38:19 +00:00
gcloud alpha access-context-manager cloud-bindings create - create cloud
access bindings for a specific group
2022-03-01 04:29:52 +00:00
SYNOPSIS
gcloud alpha access-context-manager cloud-bindings create
2023-01-19 00:56:33 +00:00
--group-key=GROUP_KEY [--dry-run-level=[DRY_RUN_LEVEL,...]]
[--level=[LEVEL,...]] [--organization=ORGANIZATION]
2022-10-18 11:38:19 +00:00
[GCLOUD_WIDE_FLAG ...]
2022-03-01 04:29:52 +00:00
DESCRIPTION
2022-10-18 11:38:19 +00:00
(ALPHA) Create a new cloud access binding. The access level will be bound
with the group. The access level will be enforced when any user in the
group tries to access the Google cloud console or API.
2022-03-01 04:29:52 +00:00
EXAMPLES
2023-04-06 10:23:36 +00:00
To create a new cloud access binding, run:
$ gcloud alpha access-context-manager cloud-bindings create \
--group-key=my-group-key \
--level=accessPolicies/123/accessLevels/abc
To create a new cloud access binding for the dry run access level, run:
2022-03-01 04:29:52 +00:00
$ gcloud alpha access-context-manager cloud-bindings create \
2022-10-18 11:38:19 +00:00
--group-key=my-group-key \
2023-01-19 00:56:33 +00:00
--level=accessPolicies/123/accessLevels/abc \
--dry-run-level=accessPolicies/123/accessLevels/def
2022-03-01 04:29:52 +00:00
REQUIRED FLAGS
--group-key=GROUP_KEY
Google Group id whose members are subject to the restrictions of this
binding.
2023-01-19 00:56:33 +00:00
OPTIONAL FLAGS
--dry-run-level=[DRY_RUN_LEVEL,...]
2023-04-06 10:23:36 +00:00
The dry run access level that binds to the given group. The dry run
2023-01-19 00:56:33 +00:00
access level will be evaluated but won't be enforced. Denial on dry run
2023-04-06 10:23:36 +00:00
access level will be logged. The input must be the full identifier of
an access level, such as accessPolicies/123/accessLevels/new-def.
2023-01-19 00:56:33 +00:00
2022-10-18 11:38:19 +00:00
--level=[LEVEL,...]
2023-04-06 10:23:36 +00:00
The access level that binds to the given group. The input must be the
full identifier of an access level, such as
2022-10-18 11:38:19 +00:00
accessPolicies/123/accessLevels/abc.
2022-03-01 04:29:52 +00:00
--organization=ORGANIZATION
2022-10-18 11:38:19 +00:00
Parent organization for this binding.
2022-03-01 04:29:52 +00:00
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.
2022-10-18 11:38:19 +00:00
API REFERENCE
This command uses the accesscontextmanager/v1alpha API. The full
documentation for this API can be found at:
https://cloud.google.com/access-context-manager/docs/reference/rest/
2022-03-01 04:29:52 +00:00
NOTES
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct
project, you might be trying to access an API with an invitation-only early
access allowlist. This variant is also available:
$ gcloud access-context-manager cloud-bindings create