mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 14:56:05 +00:00
gcloud: Wed Apr 17 09:40:58 UTC 2024
This commit is contained in:
parent
7e2535c53d
commit
3740758467
178 changed files with 2958 additions and 1351 deletions
|
|
@ -14,17 +14,16 @@ DESCRIPTION
|
|||
an optional condition.
|
||||
|
||||
EXAMPLES
|
||||
To add an IAM policy binding for the role of 'roles/editor' for the user
|
||||
'test-user@gmail.com' on a project with identifier 'example-project-id-1',
|
||||
run:
|
||||
To add an IAM policy binding for the role of roles/editor for the user
|
||||
test-user@gmail.com on a project with identifier example-project-id-1, run:
|
||||
|
||||
$ gcloud alpha projects add-iam-policy-binding \
|
||||
example-project-id-1 --member='user:test-user@gmail.com' \
|
||||
--role='roles/editor'
|
||||
|
||||
To add an IAM policy binding for the role of 'roles/editor' to the service
|
||||
account 'test-proj1@example.domain.com' on a project with identifier
|
||||
'example-project-id-1', run:
|
||||
To add an IAM policy binding for the role of roles/editor to the service
|
||||
account test-proj1@example.domain.com on a project with identifier
|
||||
example-project-id-1, run:
|
||||
|
||||
$ gcloud alpha projects add-iam-policy-binding \
|
||||
example-project-id-1 \
|
||||
|
|
@ -32,8 +31,8 @@ EXAMPLES
|
|||
--role='roles/editor'
|
||||
|
||||
To add an IAM policy binding that expires at the end of the year 2021 for
|
||||
the role of 'roles/browser' and the user 'test-user@gmail.com' on a project
|
||||
with identifier 'example-project-id-1', run:
|
||||
the role of roles/browser and the user test-user@gmail.com on a project
|
||||
with identifier example-project-id-1, run:
|
||||
|
||||
$ gcloud alpha projects add-iam-policy-binding \
|
||||
example-project-id-1 --member='user:test-user@gmail.com' \
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ FLAGS
|
|||
|
||||
--tags=[KEY=VALUE,...]
|
||||
List of tags KEY=VALUE pairs to bind. Each item must be expressed as
|
||||
"<tag-key-namespaced-name>=<tag-value-short-name>".
|
||||
<tag-key-namespaced-name>=<tag-value-short-name>.
|
||||
|
||||
Example: 123/environment=production,123/costCenter=marketing
|
||||
|
||||
|
|
|
|||
|
|
@ -14,27 +14,25 @@ DESCRIPTION
|
|||
optional condition.
|
||||
|
||||
EXAMPLES
|
||||
To remove an IAM policy binding for the role of 'roles/editor' for the user
|
||||
'test-user@gmail.com' on project with identifier 'example-project-id-1',
|
||||
run:
|
||||
To remove an IAM policy binding for the role of roles/editor for the user
|
||||
test-user@gmail.com on project with identifier example-project-id-1, run:
|
||||
|
||||
$ gcloud alpha projects remove-iam-policy-binding \
|
||||
example-project-id-1 --member='user:test-user@gmail.com' \
|
||||
--role='roles/editor'
|
||||
|
||||
To remove an IAM policy binding for the role of 'roles/editor' from all
|
||||
authenticated users on project 'example-project-id-1', run:
|
||||
To remove an IAM policy binding for the role of roles/editor from all
|
||||
authenticated users on project example-project-id-1, run:
|
||||
|
||||
$ gcloud alpha projects remove-iam-policy-binding \
|
||||
example-project-id-1 --member='allAuthenticatedUsers' \
|
||||
--role='roles/editor'
|
||||
|
||||
To remove an IAM policy binding with a condition of
|
||||
expression='request.time < timestamp("2019-01-01T00:00:00Z")',
|
||||
title='expires_end_of_2018', and description='Expires at midnight on
|
||||
2018-12-31' for the role of 'roles/browser' for the user
|
||||
'test-user@gmail.com' on project with identifier 'example-project-id-1',
|
||||
run:
|
||||
expression='request.time < timestamp("2019-01-01T00:00:00Z"),
|
||||
title='expires_end_of_2018', and description=Expires at midnight on
|
||||
2018-12-31 for the role of roles/browser for the user test-user@gmail.com
|
||||
on project with identifier example-project-id-1, run:
|
||||
|
||||
$ gcloud alpha projects remove-iam-policy-binding \
|
||||
example-project-id-1 --member='user:test-user@gmail.com' \
|
||||
|
|
@ -44,8 +42,8 @@ EXAMPLES
|
|||
tion=Expires at midnight on 2018-12-31'
|
||||
|
||||
To remove all IAM policy bindings regardless of the condition for the role
|
||||
of 'roles/browser' and for the user 'test-user@gmail.com' on project with
|
||||
identifier 'example-project-id-1', run:
|
||||
of roles/browser and for the user test-user@gmail.com on project with
|
||||
identifier example-project-id-1, run:
|
||||
|
||||
$ gcloud alpha projects remove-iam-policy-binding \
|
||||
example-project-id-1 --member='user:test-user@gmail.com' \
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ DESCRIPTION
|
|||
|
||||
EXAMPLES
|
||||
The following command updates a project with the ID example-foo-bar-1 to
|
||||
have the name "Foo Bar & Grill" and removes the label dive:
|
||||
have the name Foo Bar & Grill and removes the label dive:
|
||||
|
||||
$ gcloud alpha projects update example-foo-bar-1 \
|
||||
--name="Foo Bar & Grill" --remove-labels=dive
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue