Difference between revisions of "Gsutil iam"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | <code>[[gsutil iam]]</code> get, set, or change [[bucket]] and/or [[object]] IAM permissions. | ||
[[gsutil iam ch]] | [[gsutil iam ch]] | ||
+ | |||
+ | gsutil iam ch serviceAccount:${SERVICE_ACCOUNT_NAME}@${PROJECT_ID}.iam.gserviceaccount.com:objectViewer ${BUCKET_NAME} | ||
+ | gsutil iam ch serviceAccount:${SERVICE_ACCOUNT_NAME}@${PROJECT_ID}.iam.gserviceaccount.com:objectCreator ${BUCKET_NAME} | ||
+ | gsutil iam ch serviceAccount:${SERVICE_ACCOUNT_NAME}@${PROJECT_ID}.iam.gserviceaccount.com:legacyBucketReader ${BUCKET_NAME} | ||
+ | |||
== See also == | == See also == |
Latest revision as of 04:45, 3 November 2022
gsutil iam
get, set, or change bucket and/or object IAM permissions.
gsutil iam ch
gsutil iam ch serviceAccount:${SERVICE_ACCOUNT_NAME}@${PROJECT_ID}.iam.gserviceaccount.com:objectViewer ${BUCKET_NAME} gsutil iam ch serviceAccount:${SERVICE_ACCOUNT_NAME}@${PROJECT_ID}.iam.gserviceaccount.com:objectCreator ${BUCKET_NAME} gsutil iam ch serviceAccount:${SERVICE_ACCOUNT_NAME}@${PROJECT_ID}.iam.gserviceaccount.com:legacyBucketReader ${BUCKET_NAME}
See also[edit]
Advertising: