- NAME
-
- gcloud beta pam grants - manage Privileged Access Manager grants
- SYNOPSIS
-
-
gcloud beta pam grants
COMMAND
[GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(BETA)
Thegcloud pam grants
command group lets you manage Privileged Access Manager (PAM) grants. - EXAMPLES
-
To create a new grant against an entitlement with the full name
, a requested duration ofENTITLEMENT_NAME
1 hour 30 minutes
, a justification ofsome justification
, and two additional email recipients[email protected]
and[email protected]
, run:gcloud beta pam grants create --entitlement=ENTITLEMENT_NAME --requested-duration=5400s --justification="some justification" --additional-email-recipients=[email protected],[email protected]
To describe a grant with the full name
, run:GRANT_NAME
gcloud beta pam grants describe GRANT_NAME
To list all grants associated with an entitlement with the full name
, run:ENTITLEMENT_NAME
gcloud beta pam grants list --entitlement=ENTITLEMENT_NAME
To deny a grant with the full name
and a reasonGRANT_NAME
denial reason
, run:gcloud beta pam grants deny GRANT_NAME --reason="denial reason"
To approve a grant with the full name
and a reasonGRANT_NAME
approval reason
, run:gcloud beta pam grants approve GRANT_NAME --reason="approval reason"
To revoke a grant with the full name
and a reasonGRANT_NAME
revoke reason
, run:gcloud beta pam grants revoke GRANT_NAME --reason="revoke reason"
To search for and list all grants that you have created that are associated with an entitlement with the full name
, run:ENTITLEMENT_NAME
gcloud beta pam grants search --entitlement=ENTITLEMENT_NAME --caller-relationship=had-created
To search for and list all grants that you have approved or denied, that are associated with an entitlement with the full name
, run:ENTITLEMENT_NAME
gcloud beta pam grants search --entitlement=ENTITLEMENT_NAME --caller-relationship=had-approved
To search for and list all grants that you can approve that are associated with an entitlement with the full name
, run:ENTITLEMENT_NAME
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
-
is one of the following:COMMAND
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
-
(BETA)
List all Privileged Access Manager (PAM) grants associated with an entitlement. revoke
-
(BETA)
Revoke a Privileged Access Manager (PAM) grant. search
-
(BETA)
Search for and list all Privileged Access Manager (PAM) grants you have created, have approved, or can approve.
- NOTES
-
This command is currently in beta and might change without notice. These
variants are also available:
gcloud pam grants
gcloud alpha pam grants
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-30 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-07-30 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-30 UTC."]]