Cloud Storage - using gsutil Flashcards
(6 cards)
1
Q
What is a Principle Type
A
type of principal to which you are granting bucket access. For example, user.
2
Q
What is PRINCIPAL_NAME
A
the name of the principal to which you are granting bucket access. For example, jane@gmail.com.
3
Q
Format of gsutil command to update IAM permissions on a bucket
A
gsutil iam ch PRINCIPAL_TYPE:PRINCIPAL_NAME:IAM_ROLE gs://BUCKET_NAME
4
Q
gsutil command to view IAM permissions on a bucket
A
gsutil iam get gs://BUCKET_NAME
5
Q
gsustil command to remove a principle from a bucket
A
gsutil iam ch -d PRINCIPAL_TYPE:PRINCIPAL_NAME gs://BUCKET_NAME
6
Q
gsutil command to update a bucket’s permissions using a JSON file
A
gsutil iam set /tmp/policy.json gs://BUCKET_NAME