次の表に、特定のリソースに Cloud Storage の各 XML メソッドを実行する場合に必要な Identity and Access Management(IAM)権限を示します。
| メソッド | リソース | サブリソース | 必要な IAM 権限 1 |
|---|---|---|---|
DELETE |
bucket |
storage.buckets.delete |
|
DELETE |
object |
storage.objects.delete |
|
DELETE |
object |
uploadId |
storage.multipartUploads.abort |
GET |
storage.buckets.list |
||
GET |
bucket |
storage.objects.list |
|
GET |
bucket |
acls3 |
storage.buckets.getstorage.buckets.getIamPolicy |
GET |
bucket |
ACL 以外のメタデータ | storage.buckets.get |
GET |
bucket |
uploads |
storage.multipartUploads.list |
GET |
object |
storage.objects.get |
|
GET |
object |
acls3 |
storage.objects.getstorage.objects.getIamPolicy |
GET |
object |
encryption |
storage.objects.get |
GET |
object |
retention |
storage.objects.get |
GET |
object |
uploadId |
storage.multipartUploads.listParts |
HEAD |
bucket |
storage.buckets.get |
|
HEAD |
object |
storage.objects.get |
|
POST |
object |
storage.objects.createstorage.objects.delete4storage.objects.setRetention5 |
|
POST |
object |
uploadId |
storage.multipartUploads.createstorage.objects.createstorage.objects.delete4 |
POST |
object |
uploads |
storage.multipartUploads.createstorage.objects.createstorage.objects.setRetention5 |
PUT |
bucket |
storage.buckets.createstorage.buckets.enableObjectRetention6 |
|
PUT |
bucket |
acls3 |
storage.buckets.getstorage.buckets.getIamPolicystorage.buckets.setIamPolicystorage.buckets.update |
PUT |
bucket |
ACL 以外のメタデータ | storage.buckets.update |
PUT7 |
object |
storage.objects.createstorage.objects.get2storage.objects.delete4storage.objects.setRetention5 |
|
PUT |
object |
acls3 |
storage.objects.getstorage.objects.getIamPolicystorage.objects.setIamPolicystorage.objects.update |
PUT |
object |
compose |
storage.objects.createstorage.objects.getstorage.objects.delete4storage.objects.setRetention5 |
PUT |
object |
retention |
storage.objects.setRetentionstorage.objects.updatestorage.objects.overrideUnlockedRetention8 |
PUT |
object |
uploadId |
storage.multipartUploads.createstorage.objects.create |
GET |
Projects.hmacKeys |
storage.hmacKeys.get |
|
POST |
Projects.hmacKeys |
storage.hmacKeys.createstorage.hmacKeys.updatestorage.hmacKeys.delete |
1 リクエストで x-goog-user-project ヘッダーまたは userProject クエリ文字列パラメータを使用する場合、リクエストに必要な通常の IAM 権限に加えて、指定したプロジェクト ID の serviceusage.services.use 権限が必要です。
2 リクエストに x-goog-copy-source ヘッダーが含まれている場合、転送元バケットにはこの権限が必要です。
3 このサブリソースは、均一なバケットレベルのアクセスが有効になっているバケットには適用されません。
4 この権限は、挿入するオブジェクトと同じ名前のオブジェクトがバケット内に存在している場合にのみ必要です。
5 この権限は、x-goog-object-lock-mode ヘッダーと x-goog-object-lock-retain-until-date ヘッダーがリクエストに含まれている場合にのみ必要です。
6 この権限は、true に設定された x-goog-bucket-object-lock-enabled ヘッダーがリクエストに含まれている場合にのみ必要です。
7 再開可能なアップロードに関連する PUT リクエストを行う場合、権限は必要ありません。
8 この権限は、true に設定された x-goog-bypass-governance-retention ヘッダーがリクエストに含まれている場合にのみ必要です。
次のステップ
- Cloud Storage のロールと権限の一覧について、Cloud Storage に適用される IAM ロールを確認する。