Cloud Storage - using gsutil Flashcards

1
Q

What is a Principle Type

A

type of principal to which you are granting bucket access. For example, user.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is PRINCIPAL_NAME

A

the name of the principal to which you are granting bucket access. For example, jane@gmail.com.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

gsutil command to view IAM permissions on a bucket

A

gsutil iam get gs://BUCKET_NAME

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

gsustil command to remove a principle from a bucket

A

gsutil iam ch -d PRINCIPAL_TYPE:PRINCIPAL_NAME gs://BUCKET_NAME

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

gsutil command to update a bucket’s permissions using a JSON file

A

gsutil iam set /tmp/policy.json gs://BUCKET_NAME

How well did you know this?
1
Not at all
2
3
4
5
Perfectly