このトピックには、リソース サービスの文字列値、リソースタイプ、リソース名文字列の形式などの条件でリソース属性に使用できる値のリストが含まれています。
リソース属性を使用して、ロール バインディングによって提供される権限の範囲を変更できます。ロールに異なる種類のリソースに適用される権限がある場合、条件では、リソース サービス、リソースタイプ、リソース名に基づいてロールの権限のサブセットを付与できます。
リソース属性は、このページに記載されている Trusted Cloud by S3NS サービスとリソースタイプで使用できます。他のサービスとリソースタイプでは、リソース属性は認識されません。
Identity and Access Management(IAM)Conditions の詳細については、次をご覧ください。
リソース サービスの値
次の表に、リソース サービス属性に設定可能な値を示します。
リソース サービスの値 | REST リファレンス |
---|---|
bigquery.googleapis.com |
API リファレンス |
bigqueryreservation.googleapis.com |
API リファレンス |
cloudkms.googleapis.com |
API リファレンス |
cloudresourcemanager.googleapis.com |
API リファレンス |
compute.googleapis.com |
API リファレンス |
container.googleapis.com |
API リファレンス |
logging.googleapis.com |
API リファレンス |
sqladmin.googleapis.com |
API リファレンス |
storage.googleapis.com |
API リファレンス |
リソースタイプの値
次の表に、リソースタイプ属性に設定可能な値を示します。
リソースタイプの値 | リファレンス |
---|---|
bigquery.googleapis.com/Dataset |
詳細 |
bigquery.googleapis.com/Model |
詳細 |
bigquery.googleapis.com/Routine |
詳細 |
bigquery.googleapis.com/Table |
詳細 |
bigqueryreservation.googleapis.com/Assignment |
詳細 |
bigqueryreservation.googleapis.com/BiReservation |
詳細 |
bigqueryreservation.googleapis.com/CapacityCommitment |
詳細 |
bigqueryreservation.googleapis.com/Location |
詳細 |
bigqueryreservation.googleapis.com/Reservation |
詳細 |
cloud.googleapis.com/Location 1 |
詳細 |
cloudkms.googleapis.com/CryptoKey |
詳細 |
cloudkms.googleapis.com/CryptoKeyVersion |
詳細 |
cloudkms.googleapis.com/KeyRing |
詳細 |
cloudresourcemanager.googleapis.com/Project |
詳細 |
compute.googleapis.com/BackendService |
詳細 |
compute.googleapis.com/Disk |
詳細 |
compute.googleapis.com/Firewall |
詳細 |
compute.googleapis.com/ForwardingRule |
詳細 |
compute.googleapis.com/GlobalForwardingRule |
詳細 |
compute.googleapis.com/Image |
詳細 |
compute.googleapis.com/Instance |
詳細 |
compute.googleapis.com/InstanceTemplate |
詳細 |
compute.googleapis.com/Snapshot |
詳細 |
compute.googleapis.com/TargetHttpProxy |
詳細 |
compute.googleapis.com/TargetHttpsProxy |
詳細 |
compute.googleapis.com/TargetSslProxy |
詳細 |
compute.googleapis.com/TargetTcpProxy |
詳細 |
container.googleapis.com/Clusters |
詳細 |
logging.googleapis.com/LogBucket |
詳細 |
logging.googleapis.com/LogView |
詳細 |
sqladmin.googleapis.com/BackupRun |
詳細 |
sqladmin.googleapis.com/Instance |
詳細 |
storage.googleapis.com/Bucket |
詳細 |
storage.googleapis.com/ManagedFolder |
詳細 |
storage.googleapis.com/Object |
詳細 |
1 Cloud Key Management Service は、このリソースタイプをキーリング リソースの親として使用します。
リソース名の形式
次の表に、リソース名属性の各タイプの形式を示します。
リソースのリファレンス | リソース名の形式のテンプレート |
---|---|
BigQuery データセット | projects/project-id/datasets/dataset-id |
BigQuery モデル | projects/project-id/datasets/dataset-id/models/model-id |
BigQuery ルーチン | projects/project-id/datasets/dataset-id/routines/routine-id |
BigQuery テーブル | projects/project-id/datasets/dataset-id/tables/table-id |
BigQuery Reservation API 割り当て | projects/project-id/locations/location-id/reservations/reservation-id/assignments/assignment-id |
BigQuery Reservation API BI 予約 | projects/project-id/locations/location-id/biReservation |
BigQuery Reservation API 容量コミットメント | projects/project-id/locations/location-id/capacityCommitments/capacity-commitment-id |
BigQuery Reservation API ロケーション | projects/project-id/locations/location-id |
BigQuery Reservation API 予約 | projects/project-id/locations/location-id/reservations/reservation-id |
Cloud Key Management Service 暗号鍵 | projects/project-id/locations/location-id/keyRings/keyring-id/cryptoKeys/cryptokey-id |
Cloud Key Management Service 暗号鍵バージョン | projects/project-id/locations/location-id/keyRings/keyring-id/cryptoKeys/cryptokey-id/cryptoKeyVersions/cryptokeyversion-id |
Cloud Key Management Service キーリング | projects/project-id/locations/location-id/keyRings/keyring-id |
Cloud Logging ログバケット | projects/project-id/locations/location-id/buckets/bucket-id |
Cloud Logging ログビュー | projects/project-id/locations/location-id/buckets/bucket-id/views/view-id |
Cloud SQL バックアップ実行 | projects/project-id/instances/instance-id/backupRuns/backup-id |
Cloud SQL インスタンス | projects/project-id/instances/instance-id |
Cloud Storage バケット1 | projects/_/buckets/bucket-name |
Cloud Storage マネージド フォルダ1、2 | projects/_/buckets/bucket-name/managedFolders/managed-folder-name |
Cloud Storage オブジェクト1、3 | projects/_/buckets/bucket-name/objects/object-name |
Compute Engine グローバル バックエンド サービス | projects/project-id/global/backendServices/backend-service-id |
Compute Engine リージョン バックエンド サービス | projects/project-id/regions/region-id/backendServices/backend-service-id |
Compute Engine ファイアウォール | projects/project-id/global/firewalls/firewall-id |
Compute Engine グローバル転送ルール | projects/project-id/global/forwardingRules/forwarding-rule-id |
Compute Engine リージョン転送ルール | projects/project-id/regions/region-id/forwardingRules/forwarding-rule-id |
Compute Engine イメージ | projects/project-id/global/images/image-id |
Compute Engine インスタンス テンプレート | projects/project-id/global/instanceTemplates/instance-template-id |
Compute Engine インスタンス | projects/project-id/zones/zone-id/instances/instance-id |
Compute Engine リージョン永続ディスク | projects/project-id/regions/region-id/disks/disk-id |
Compute Engine ゾーン永続ディスク | projects/project-id/zones/zone-id/disks/disk-id |
Compute Engine スナップショット | projects/project-id/global/snapshots/snapshot-id |
Compute Engine グローバル ターゲット HTTP プロキシ | projects/project-id/global/targetHttpProxies/target-http-proxy-id |
Compute Engine リージョン ターゲット HTTP プロキシ | projects/project-id/regions/region-id/targetHttpProxies/target-http-proxy-id |
Compute Engine グローバル ターゲット HTTPS プロキシ | projects/project-id/global/targetHttpsProxies/target-https-proxy-id |
Compute Engine リージョン ターゲット HTTPS プロキシ | projects/project-id/regions/region-id/targetHttpsProxies/target-https-proxy-id |
Compute Engine ターゲット SSL プロキシ | projects/project-id/global/targetSslProxies/target-ssl-proxy-id |
Compute Engine のターゲット TCP プロキシ | projects/project-id/global/targetTcpProxies/target-tcp-proxy-id |
Google Kubernetes Engine のゾーンクラスタ | projects/project-id/zones/zone/clusters/cluster-id |
Google Kubernetes Engine のリージョン クラスタ | projects/project-id/locations/location/clusters/cluster-id |
Resource Manager 組織 | organizations/organization-name |
1 Cloud Storage の場合、リソース名には、プロジェクト ID ではなく、アンダースコア(_
)が含まれます。アンダースコアをプロジェクト ID、プロジェクト名、プロジェクト番号に置き換えることはできません。
2 スラッシュを含むマネージド フォルダ名全体を使用します。Cloud Storage では、これらの文字はマネージド フォルダ名の一部であり、パスの区切り文字ではありません。
3 スラッシュを含むオブジェクト名全体を使用します。Cloud Storage では、スラッシュがパスの区切り記号ではなく、オブジェクト名の一部になります。
リソースタグ
タグは、組織、プロジェクト、フォルダに追加できます。あらゆる Trusted Cloud by S3NS リソースは、こうした上位レベルのリソースからタグを継承できます。
タグキーと値の参照には、数種類の識別子を使用できます。
-
永続的な ID。グローバルに一意であり、再利用できません。たとえば、タグキーに永続 ID
tagKeys/123456789012
を割り当て、タグ値に永続 IDtagValues/567890123456
を持たせることができます。 -
略称。各キーの略称は、キーが定義されているプロジェクトまたは組織内で一意である必要があり、各値の略称は、関連付けられているキーに対して一意である必要があります。たとえば、タグキーに略称
env
を指定し、タグ値にprod
という略称を付けることができます。 -
名前空間名。組織の数値 ID またはプロジェクト ID をタグキーの略称に追加します。たとえば、組織用に作成されたタグキーに名前空間名
123456789012/env
を指定できます。組織 ID を取得する方法については、組織リソース ID の取得をご覧ください。プロジェクト用に作成されたタグキーには、名前空間名myproject/env
を指定できます。プロジェクト ID を取得する方法については、プロジェクトの識別をご覧ください。
具体的なの識別子は、組織に作成したタグキーと値によって異なります。利用可能なタグキーと値を一覧表示する方法については、タグキーの一覧表示とタグ値の一覧表示をご覧ください。