1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-16 20:36:39 +00:00
gcloud-help/gcloud/beta/pam/grants/help

103 lines
3.3 KiB
Text
Raw Normal View History

2024-05-01 09:26:55 +00:00
NAME
2024-05-08 09:17:12 +00:00
gcloud beta pam grants - manage Privileged Access Manager grants
2024-05-01 09:26:55 +00:00
SYNOPSIS
gcloud beta pam grants COMMAND [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) The gcloud pam grants command group lets you manage Privileged
2024-05-08 09:17:12 +00:00
Access Manager (PAM) grants.
2024-05-01 09:26:55 +00:00
EXAMPLES
2024-05-08 09:17:12 +00:00
To create a new grant against an entitlement with the full name
ENTITLEMENT_NAME, a requested duration of 1 hour 30 minutes, a
justification of some justification, and two additional email recipients
2024-05-01 09:26:55 +00:00
abc@example.com and xyz@example.com, run:
$ gcloud beta pam grants create --entitlement=ENTITLEMENT_NAME \
--requested-duration=5400s \
--justification="some justification" \
--additional-email-recipients=abc@example.com,xyz@example.com
To describe a grant with the full name GRANT_NAME, run:
$ gcloud beta pam grants describe GRANT_NAME
2024-05-08 09:17:12 +00:00
To list all grants associated with an entitlement with the full name
2024-05-01 09:26:55 +00:00
ENTITLEMENT_NAME, run:
$ gcloud beta pam grants list --entitlement=ENTITLEMENT_NAME
To deny a grant with the full name GRANT_NAME and a reason denial reason,
run:
$ gcloud beta pam grants deny GRANT_NAME --reason="denial reason"
To approve a grant with the full name GRANT_NAME and a reason approval
reason, run:
$ gcloud beta pam grants approve GRANT_NAME \
--reason="approval reason"
To revoke a grant with the full name GRANT_NAME and a reason revoke reason,
run:
$ gcloud beta pam grants revoke GRANT_NAME --reason="revoke reason"
2024-05-08 09:17:12 +00:00
To search for and list all grants that you have created that are associated
with an entitlement with the full name ENTITLEMENT_NAME, run:
2024-05-01 09:26:55 +00:00
$ gcloud beta pam grants search --entitlement=ENTITLEMENT_NAME \
--caller-relationship=had-created
2024-05-08 09:17:12 +00:00
To search for and list all grants that you have approved or denied, that
are associated with an entitlement with the full name ENTITLEMENT_NAME,
run:
2024-05-01 09:26:55 +00:00
$ gcloud beta pam grants search --entitlement=ENTITLEMENT_NAME \
--caller-relationship=had-approved
2024-05-08 09:17:12 +00:00
To search for and list all grants that you can approve that are associated
with an entitlement with the full name ENTITLEMENT_NAME, run:
2024-05-01 09:26:55 +00:00
$ gcloud beta pam grants search --entitlement=ENTITLEMENT_NAME \
--caller-relationship=can-approve
GCLOUD WIDE FLAGS
These flags are available to all commands: --help.
Run $ gcloud help for details.
COMMANDS
COMMAND is one of the following:
approve
(BETA) Approve a Privileged Access Manager (PAM) grant.
create
(BETA) Create a new Privileged Access Manager (PAM) grant.
deny
(BETA) Deny a Privileged Access Manager (PAM) grant.
describe
(BETA) Show details of a Privileged Access Manager (PAM) grant.
list
2024-05-08 09:17:12 +00:00
(BETA) List all Privileged Access Manager (PAM) grants associated with
an entitlement.
2024-05-01 09:26:55 +00:00
revoke
(BETA) Revoke a Privileged Access Manager (PAM) grant.
search
2024-05-08 09:17:12 +00:00
(BETA) Search for and list all Privileged Access Manager (PAM) grants
you have created, have approved, or can approve.
2024-05-01 09:26:55 +00:00
NOTES
This command is currently in beta and might change without notice. This
variant is also available:
$ gcloud alpha pam grants