1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-18 23:08:48 +00:00

gcloud: Wed May 8 09:17:12 UTC 2024

This commit is contained in:
Automated 2024-05-08 09:17:12 +00:00
parent 48fac7efd4
commit e8259d86b1
110 changed files with 1686 additions and 651 deletions

View file

@ -1,115 +1,180 @@
NAME
gcloud alpha pam entitlements - manage Privileged Access Manager
Entitlements
entitlements
SYNOPSIS
gcloud alpha pam entitlements COMMAND [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) The gcloud pam entitlements command group lets you manage
Privileged Access Manager (PAM) Entitlements.
Privileged Access Manager (PAM) entitlements.
EXAMPLES
To create a new entitlement with the name sample-entitlement, under a
project sample-project, location global and the entitlement body present in
the sample-entitlement.yaml file, run:
To create a new entitlement with a name of sample-entitlement, in a project
named sample-project, in location global, and the entitlement configuration
stored in a file named sample-entitlement.yaml, run:
$ gcloud alpha pam entitlements create sample-entitlement \
--project=sample-project --location=global \
--entitlement-file=sample-entitlement.yaml
To create a new entitlement with the name sample-entitlement, under a
folder sample-folder, location global and the entitlement body present in
the sample-entitlement.yaml file, run:
To create a new entitlement with a name of sample-entitlement, in a folder
with ID FOLDER_ID, in location global, and the entitlement configuration
stored in a file named sample-entitlement.yaml, run:
$ gcloud alpha pam entitlements create sample-entitlement \
--folder=sample-folder --location=global \
--folder=FOLDER_ID --location=global \
--entitlement-file=sample-entitlement.yaml
To create a new entitlement with the name sample-entitlement, under an
organization sample-organization, location global and the entitlement body
present in the sample-entitlement.yaml file, run:
To create a new entitlement with a name of sample-entitlement, in an
organization with ID ORGANIZATION_ID, in location global, and the
entitlement configuration stored in a file named sample-entitlement.yaml,
run:
$ gcloud alpha pam entitlements create sample-entitlement \
--organization=sample-organization --location=global \
--organization=ORGANIZATION_ID --location=global \
--entitlement-file=sample-entitlement.yaml
To update an entitlement with the full name ENTITLEMENT_NAME and the new
entitlement body present in the sample-entitlement.yaml file, run:
To update an entitlement with a name of sample-entitlement, in a project
named sample-project, in location global, and the new entitlement
configuration stored in a file named sample-entitlement.yaml, run:
$ gcloud alpha pam entitlements update ENTITLEMENT_NAME \
$ gcloud alpha pam entitlements update sample-entitlement \
--project=sample-project --location=global \
--entitlement-file=sample-entitlement.yaml
To describe an entitlement with the full name ENTITLEMENT_NAME, run:
To update an entitlement with a name of sample-entitlement, in a folder
with ID FOLDER_ID, in location global, and the new entitlement
configuration stored in a file named sample-entitlement.yaml, run:
$ gcloud alpha pam entitlements describe ENTITLEMENT_NAME
$ gcloud alpha pam entitlements update sample-entitlement \
--folder=FOLDER_ID --location=global \
--entitlement-file=sample-entitlement.yaml
To search and list all entitlements under a project sample-project and
location global for which you are a requester, run:
To update an entitlement with a name of sample-entitlement, in an
organization with ID ORGANIZATION_ID, in location global, and the new
entitlement configuration stored in a file named sample-entitlement.yaml,
run:
$ gcloud alpha pam entitlements update sample-entitlement \
--organization=ORGANIZATION_ID --location=global \
--entitlement-file=sample-entitlement.yaml
To describe an entitlement with a name of sample-entitlement, in a project
named sample-project, and in location global, run:
$ gcloud alpha pam entitlements describe sample-entitlement \
--project=sample-project --location=global
To describe an entitlement with a name of sample-entitlement, in a folder
with ID FOLDER_ID, and in location global, run:
$ gcloud alpha pam entitlements describe sample-entitlement \
--folder=FOLDER_ID --location=global
To describe an entitlement with a name of sample-entitlement, in an
organization with ID ORGANIZATION_ID, and in location global, run:
$ gcloud alpha pam entitlements describe sample-entitlement \
--organization=ORGANIZATION_ID --location=global
To search for and list all entitlements for which you are a requester, in a
project named sample-project, and in location global, run:
$ gcloud alpha pam entitlements search --project=sample-project \
--location=global --caller-access-type=grant-requester
To search and list all entitlements under a project sample-project and
location global for which you are an approver, run:
To search for and list all entitlements for which you are an approver, in a
project named sample-project, and in location global, run:
$ gcloud alpha pam entitlements search --project=sample-project \
--location=global --caller-access-type=grant-approver
To search and list all entitlements under a folder sample-folder and
location global for which you are a requester, run:
To search for and list all entitlements for which you are a requester, in a
folder with ID FOLDER_ID, and in location global, run:
$ gcloud alpha pam entitlements search --folder=sample-folder \
$ gcloud alpha pam entitlements search --folder=FOLDER_ID \
--location=global --caller-access-type=grant-requester
To search and list all entitlements under a folder sample-folder and
location global for which you are an approver, run:
To search for and list all entitlements for which you are an approver, in a
folder with ID FOLDER_ID, and in location global, run:
$ gcloud alpha pam entitlements search --folder=sample-folder \
$ gcloud alpha pam entitlements search --folder=FOLDER_ID \
--location=global --caller-access-type=grant-approver
To search and list all entitlements under an organization
sample-organization and location global for which you are a requester, run:
To search for and list all entitlements for which you are a requester, in
an organization with ID ORGANIZATION_ID, and in location global, run:
$ gcloud alpha pam entitlements search \
--organization=sample-organization --location=global \
--organization=ORGANIZATION_ID --location=global \
--caller-access-type=grant-requester
To search and list all entitlements under an organization
sample-organization and location global for which you are an approver, run:
To search for and list all entitlements for which you are an approver, in
an organization with ID ORGANIZATION_ID, and in location global, run:
$ gcloud alpha pam entitlements search \
--organization=sample-organization --location=global \
--organization=ORGANIZATION_ID --location=global \
--caller-access-type=grant-approver
To list all entitlement under a project sample-project and location global,
run:
To list all entitlements in a project named sample-project and in location
global, run:
$ gcloud alpha pam entitlements list --project=sample-project \
--location=global
To list all entitlement under a folder sample-folder and location global,
run:
To list all entitlements in a folder with ID FOLDER_ID and in location
global, run:
$ gcloud alpha pam entitlements list --folder=sample-folder \
$ gcloud alpha pam entitlements list --folder=FOLDER_ID \
--location=global
To list all entitlement under an organization sample-organization and
To list all entitlements in an organization with ID ORGANIZATION_ID and in
location global, run:
$ gcloud alpha pam entitlements list \
--organization=sample-organization --location=global
--organization=ORGANIZATION_ID --location=global
To delete an entitlement with the full name ENTITLEMENT_NAME along with all
grants under it, run:
To delete an entitlement with a name of sample-entitlement, in a project
named sample-project, and in location global, run:
$ gcloud alpha pam entitlements delete ENTITLEMENT_NAME
$ gcloud alpha pam entitlements delete sample-entitlement \
--project=sample-project --location=global
To export an entitlement with the full name ENTITLEMENT_NAME to a local
YAML file entitlement-file.yaml, run:
To delete an entitlement with a name of sample-entitlement, in a folder
with ID FOLDER_ID, and in location global, run:
$ gcloud alpha pam entitlements export ENTITLEMENT_NAME \
--destination=entitlement-file.yaml
$ gcloud alpha pam entitlements delete sample-entitlement \
--folder=FOLDER_ID --location=global
To delete an entitlement with a name of sample-entitlement, in an
organization with ID ORGANIZATION_ID, and in location global, run:
$ gcloud alpha pam entitlements delete sample-entitlement \
--organization=ORGANIZATION_ID --location=global
To export an entitlement with a name of sample-entitlement, in a project
named sample-project, and in location global to a local YAML file named
sample-entitlement.yaml, run:
$ gcloud alpha pam entitlements export sample-entitlement \
--project=sample-project --location=global \
--destination=sample-entitlement.yaml
To export an entitlement with a name of sample-entitlement, in a folder
with ID FOLDER_ID, and in location global to a local YAML file named
sample-entitlement.yaml, run:
$ gcloud alpha pam entitlements export sample-entitlement \
--folder=FOLDER_ID --location=global \
--destination=sample-entitlement.yaml
To export an entitlement with a name of sample-entitlement, in an
organization with ID ORGANIZATION_ID, and in location global to a local
YAML file named sample-entitlement.yaml, run:
$ gcloud alpha pam entitlements export sample-entitlement \
--organization=ORGANIZATION_ID --location=global \
--destination=sample-entitlement.yaml
GCLOUD WIDE FLAGS
These flags are available to all commands: --help.
@ -138,7 +203,7 @@ COMMANDS
search
(ALPHA) Search and list all Privileged Access Manager (PAM)
entitlements under a parent for which you are either a requester or an
entitlements in a parent for which you are either a requester or an
approver.
update