提供意見
使用 IAM 控管存取權
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
總覽
Cloud Healthcare API 使用身分與存取權管理 (IAM) 控管存取權。
在 Cloud Healthcare API 中,您可在專案、資料集或資料儲存庫層級設定存取權控管。舉例來說,您可以授權一組開發人員,讓他們存取某個專案中的所有資料集。如要瞭解如何設定 IAM 並搭配 Cloud Healthcare API 使用,請參閱「控管存取權 」和「控管其他產品的存取權 」。
如需 IAM 和其功能的詳細說明,請參閱 IAM 說明文件 。特別是管理 IAM 政策 一節。
每個 Cloud Healthcare API 方法都會要求呼叫者具備必要權限,詳情請參閱「權限 」和「角色 」。
權限
下表列出與 Cloud Healthcare API 相關的 IAM 權限。表格中的方法名稱已縮短,每個方法的完整名稱開頭都是 projects.locations.
。
同意聲明儲存庫方法
同意聲明儲存庫方法
所需權限
datasets.consentStores.checkDataAccess
healthcare.consentStores.checkDataAccess
。
datasets.consentStores.create
父項資料集上的 healthcare.consentStores.create
。
datasets.consentStores.delete
healthcare.consentStores.delete
。
datasets.consentStores.evaluateUserConsents
healthcare.consentStores.evaluateUserConsents
。
datasets.consentStores.get
healthcare.consentStores.get
。
datasets.consentStores.getIamPolicy
healthcare.consentStores.getIamPolicy
。
datasets.consentStores.list
父項資料集上的 healthcare.consentStores.list
。
datasets.consentStores.patch
healthcare.consentStores.update
。
datasets.consentStores.queryAccessibleData
healthcare.consentStores.queryAccessibleData
。
datasets.consentStores.setIamPolicy
healthcare.consentStores.setIamPolicy
。
datasets.consentStores.attributeDefinitions.create
healthcare.attributeDefinitions.create
。
datasets.consentStores.attributeDefinitions.delete
healthcare.attributeDefinitions.delete
要求的屬性定義資源。
datasets.consentStores.attributeDefinitions.get
healthcare.attributeDefinitions.get
要求的屬性定義資源。
datasets.consentStores.attributeDefinitions.list
healthcare.attributeDefinitions.list
。
datasets.consentStores.attributeDefinitions.patch
healthcare.attributeDefinitions.update
要求的屬性定義資源。
datasets.consentStores.consentArtifacts.create
healthcare.consentArtifacts.create
。
datasets.consentStores.consentArtifacts.delete
healthcare.consentArtifacts.delete
要求的同意聲明構件資源。
datasets.consentStores.consentArtifacts.get
healthcare.consentArtifacts.get
要求的同意聲明構件資源。
datasets.consentStores.consentArtifacts.list
healthcare.consentArtifacts.list
。
datasets.consentStores.consents.create
healthcare.consents.create
。
datasets.consentStores.consents.delete
healthcare.consents.delete
要求的同意聲明資源。
datasets.consentStores.consents.get
healthcare.consents.get
要求的同意聲明資源。
datasets.consentStores.consents.list
healthcare.consents.list
。
datasets.consentStores.consents.patch
healthcare.consents.update
要求的同意聲明資源。
datasets.consentStores.consents.revoke
healthcare.consents.revoke
要求的同意聲明資源。
datasets.consentStores.userDataMappings.archive
healthcare.userDataMappings.archive
要求的使用者資料對應資源。
datasets.consentStores.userDataMappings.create
healthcare.userDataMappings.create
。
datasets.consentStores.userDataMappings.delete
healthcare.userDataMappings.delete
要求的使用者資料對應資源。
datasets.consentStores.userDataMappings.get
healthcare.userDataMappings.get
要求的使用者資料對應資源。
datasets.consentStores.userDataMappings.list
healthcare.userDataMappings.list
。
datasets.consentStores.userDataMappings.patch
healthcare.userDataMappings.update
要求的使用者資料對應資源。
資料集方法
資料集方法
所需權限
datasets.create
上層專案的 healthcare.datasets.create
權限。 Google Cloud
datasets.deidentify
來源資料集的 healthcare.datasets.deidentify
權限。 healthcare.datasets.create
Google Cloud 目的地資料集所屬專案。
datasets.delete
healthcare.datasets.delete
要求的資料集。
datasets.get
healthcare.datasets.get
要求的資料集。
datasets.getIamPolicy
healthcare.datasets.getIamPolicy
要求的資料集。
datasets.list
上層專案的 healthcare.datasets.list
權限。 Google Cloud
datasets.patch
healthcare.datasets.update
要求的資料集。
datasets.setIAMPolicy
healthcare.datasets.setIamPolicy
要求的資料集。
DICOM 儲存庫方法
DICOM 儲存庫方法
所需權限
datasets.dicomStores.create
父項資料集上的 healthcare.dicomStores.create
。
datasets.dicomStores.deidentify
來源 DICOM 儲存庫上的 healthcare.dicomStores.deidentify
。 目的地 DICOM 儲存庫上的 healthcare.dicomStores.dicomWebWrite
。
datasets.dicomStores.delete
要求的 DICOM 儲存庫。healthcare.dicomStores.delete
datasets.dicomStores.export
要求的 DICOM 儲存庫。healthcare.dicomStores.export
匯出至 Cloud Storage 時:roles/storage.objectAdmin
授予專案的 Cloud Healthcare Service Agent 服務帳戶。如需操作說明,請參閱「將資料匯出至 Cloud Storage 」。 匯出至 BigQuery 時:roles/bigquery.dataEditor
和 roles/bigquery.jobUser
授予專案的 Cloud Healthcare 服務代理程式 服務帳戶。如需操作說明,請參閱「DICOM 儲存庫 BigQuery 權限 」。
datasets.dicomStores.get
要求的 DICOM 儲存庫。healthcare.dicomStores.get
datasets.dicomStores.getIamPolicy
要求的 DICOM 儲存庫。healthcare.dicomStores.getIamPolicy
datasets.dicomStores.import
要求的 DICOM 儲存庫。healthcare.dicomStores.import
roles/storage.objectViewer
授予專案的 Cloud Healthcare Service Agent 服務帳戶。如需操作說明,請參閱「從 Cloud Storage 匯入資料 」。
datasets.dicomStores.list
父項資料集上的 healthcare.dicomStores.list
。
datasets.dicomStores.patch
要求的 DICOM 儲存庫。healthcare.dicomStores.update
datasets.dicomStores.searchForInstances
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.searchForSeries
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.searchForStudies
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.setIamPolicy
要求的 DICOM 儲存庫。healthcare.dicomStores.setIamPolicy
datasets.dicomStores.storeInstances
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebWrite
datasets.dicomStores.studies.delete
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebDelete
datasets.dicomStores.studies.retrieveMetadata
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.studies.retrieveStudy
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.studies.searchForInstances
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.studies.searchForSeries
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.studies.storeInstances
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebWrite
datasets.dicomStores.studies.updateInstances
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebUpdate
datasets.dicomStores.studies.updateMetadata
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebUpdate
datasets.dicomStores.studies.series.delete
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebDelete
datasets.dicomStores.studies.series.retrieveMetadata
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.studies.series.retrieveSeries
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.studies.series.searchForInstances
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.studies.series.updateMetadata
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebUpdate
datasets.dicomStores.studies.series.instances.delete
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebDelete
datasets.dicomStores.studies.series.instances.retrieveInstance
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.studies.series.instances.retrieveMetadata
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.studies.series.instances.retrieveRendered
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.studies.series.instances.updateMetadata
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebUpdate
datasets.dicomStores.studies.series.instances.frames.retrieveFrames
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.studies.series.instances.frames.retrieveRendered
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
datasets.dicomStores.studies.series.instances.bulkdata.retrieveBulkdata
要求的 DICOM 儲存庫。healthcare.dicomStores.dicomWebRead
FHIR 儲存庫方法
FHIR 儲存庫方法
所需權限
datasets.fhirStores.applyConsents
所要求的 FHIR 存放區資源。healthcare.fhirStores.applyConsents
datasets.fhirStores.applyAdminConsents
所要求的 FHIR 存放區資源。healthcare.fhirStores.applyConsents
datasets.fhirStores.configureSearch
healthcare.fhirStores.configureSearch
。
datasets.fhirStores.create
父項資料集上的 healthcare.fhirStores.create
。
datasets.fhirStores.deidentify
來源 FHIR 儲存庫的 healthcare.fhirStores.deidentify
。 目的地 FHIR 儲存庫的 healthcare.fhirResources.update
。
datasets.fhirStores.delete
healthcare.fhirStores.delete
。
datasets.fhirStores.explainDataAccess
所要求的 FHIR 存放區資源。healthcare.fhirStores.explainDataAccess
datasets.fhirStores.export
healthcare.fhirStores.export
。匯出至 Cloud Storage 時:授予專案的 Cloud Healthcare Service Agent 服務帳戶 storage.objects.create
、storage.objects.delete
和 storage.objects.list
。如需操作說明,請參閱「將 FHIR 資源匯出至 Cloud Storage 」。 匯出至 BigQuery 時:roles/bigquery.dataEditor
和 roles/bigquery.jobUser
授予專案的 Cloud Healthcare 服務代理程式 服務帳戶。如需操作說明,請參閱「FHIR 儲存庫 BigQuery 權限 」。
datasets.fhirStores.get
healthcare.fhirStores.get
。
datasets.fhirStores.getFHIRStoreMetrics
healthcare.fhirStores.get
。
datasets.fhirStores.getIamPolicy
healthcare.fhirStores.getIamPolicy
。
datasets.fhirStores.import
healthcare.fhirStores.import
。storage.objects.get
和 storage.objects.list
授予專案的 Cloud Healthcare Service Agent 服務帳戶。如需操作說明,請參閱「從 Cloud Storage 匯入 FHIR 資源 」。
datasets.fhirStores.list
父項資料集上的 healthcare.fhirStores.list
。
datasets.fhirStores.patch
healthcare.fhirStores.update
。
datasets.fhirStores.rollback
healthcare.fhirStores.rollback
。
datasets.fhirStores.setIamPolicy
healthcare.fhirStores.setIamPolicy
。
datasets.fhirStores.fhir.Encounter-everything
對每個傳回的資源呼叫 healthcare.fhirResources.get
。
datasets.fhirStores.fhir.Observation-lastn
上層 FHIR 儲存庫的 healthcare.fhirStores.searchResources
。
datasets.fhirStores.fhir.Patient-everything
對每個傳回的資源呼叫 healthcare.fhirResources.get
。
datasets.fhirStores.fhir.Resource-purge
所要求的 FHIR 存放區資源。healthcare.fhirResources.purge
datasets.fhirStores.fhir.capabilities
healthcare.fhirStores.get
。
datasets.fhirStores.fhir.conditionalDelete
上層 FHIR 儲存庫的 healthcare.fhirStores.searchResources
。 所要求的 FHIR 存放區資源。healthcare.fhirResources.delete
datasets.fhirStores.fhir.conditionalPatch
上層 FHIR 儲存庫的 healthcare.fhirStores.searchResources
。 所要求的 FHIR 存放區資源。healthcare.fhirResources.patch
datasets.fhirStores.fhir.conditionalUpdate
上層 FHIR 儲存庫的 healthcare.fhirStores.searchResources
。 所要求的 FHIR 存放區資源。healthcare.fhirResources.update
datasets.fhirStores.fhir.create
條件式建立互動:父項 FHIR 儲存庫上的 healthcare.fhirResources.create
和 healthcare.fhirStores.searchResources
。 如要建立互動:父項 FHIR 儲存庫上的 healthcare.fhirResources.create
。
datasets.fhirStores.fhir.delete
所要求的 FHIR 存放區資源。healthcare.fhirResources.delete
datasets.fhirStores.fhir.executeBundle
要求的 FHIR 存放區,以及與套件中個別作業對應的其他權限 (例如 healthcare.fhirResources.create
和 healthcare.fhirResources.update
)。healthcare.fhirResources.executeBundle
如果 API 呼叫者具有 healthcare.fhirResources.create
權限,但沒有 healthcare.fhirResources.update
權限,則只能執行包含 healthcare.fhirResources.create
作業的套件。
datasets.fhirStores.fhir.history
healthcare.fhirResources.get
,以及每個版本。
datasets.fhirStores.fhir.patch
所要求的 FHIR 存放區資源。healthcare.fhirResources.patch
datasets.fhirStores.fhir.read
所要求的 FHIR 存放區資源。healthcare.fhirResources.get
datasets.fhirStores.fhir.search
上層 FHIR 儲存庫的 healthcare.fhirStores.searchResources
。
datasets.fhirStores.fhir.update
所要求的 FHIR 存放區資源。healthcare.fhirResources.update
datasets.fhirStores.fhir.vread
healthcare.fhirResources.get
。
datasets.fhirStores.fhir.Patient-consent-enforcement-status
healthcare.fhirResources.get
要求的 FHIR 儲存庫病患資源。
datasets.fhirStores.fhir.Consent-enforcement-status
在要求的 FHIR 存放區同意聲明資源上。healthcare.fhirResources.get
HL7v2 儲存庫方法
HL7v2 儲存庫方法
所需權限
datasets.hl7V2Stores.create
父項資料集上的 healthcare.hl7V2Stores.create
。
datasets.hl7V2Stores.delete
要求的 HL7v2 儲存庫上。healthcare.hl7V2Stores.delete
datasets.hl7V2Stores.export
要求的 HL7v2 儲存庫上。healthcare.hl7V2Stores.export
datasets.hl7V2Stores.get
要求的 HL7v2 儲存庫上。healthcare.hl7V2Stores.get
datasets.hl7V2Stores.import
要求的 HL7v2 儲存庫上。healthcare.hl7V2Stores.import
datasets.hl7V2Stores.list
父項資料集上的 healthcare.hl7V2Stores.list
。
datasets.hl7V2Stores.patch
要求的 HL7v2 儲存庫上。healthcare.hl7V2Stores.update
datasets.hl7V2Stores.getIamPolicy
要求的 HL7v2 儲存庫上。healthcare.hl7V2Stores.getIamPolicy
datasets.hl7V2Stores.setIamPolicy
要求的 HL7v2 儲存庫上。healthcare.hl7V2Stores.setIamPolicy
datasets.hl7V2Stores.messages.create
父項 HL7v2 儲存庫的 healthcare.hl7V2Messages.create
。
datasets.hl7V2Stores.messages.delete
要求的 HL7v2 儲存庫訊息。healthcare.hl7V2Messages.delete
datasets.hl7V2Stores.messages.get
要求的 HL7v2 儲存庫訊息。healthcare.hl7V2Messages.get
datasets.hl7V2Stores.messages.ingest
要求的 HL7v2 儲存庫訊息。healthcare.hl7V2Messages.ingest
datasets.hl7V2Stores.messages.list
父項 HL7v2 儲存庫的 healthcare.hl7V2Messages.list
。
datasets.hl7V2Stores.messages.patch
要求的 HL7v2 儲存庫訊息。healthcare.hl7V2Messages.update
位置方法
位置方法
所需權限
locations.get
healthcare.locations.get
位於要求的位置。
locations.list
上層專案的 healthcare.locations.list
權限。 Google Cloud
Healthcare Natural Language API 方法
Healthcare Natural Language API 方法
所需權限
nlp.analyzeEntities
healthcare.nlpservice.analyzeEntities
操作方法
操作方法
必要權限
datasets.operations.get
healthcare.operations.get
要求的資料集。
datasets.operations.list
healthcare.operations.list
要求的資料集。
datasets.operations.cancel
healthcare.operations.cancel
要求的資料集。
去識別化方法
去識別化方法
必要權限
services.deidentify.deidentifyDicomInstance
healthcare.deidentify.run
services.deidentify.deidentifyFhirResource
healthcare.deidentify.run
角色
下表列出 Cloud Healthcare API IAM 角色,以及與各角色相關聯的權限。roles/owner
、roles/editor
和 roles/viewer
角色也具備其他 Google Cloud 服務的權限。如要進一步瞭解角色,請參閱「瞭解角色 」。
注意: 在商店層級授予檢視者角色 (例如 roles/healthcare.dicomViewer
),不會同時授予資料集角色。如要查看資料集的長時間執行作業,您也必須授予資料集檢視者角色 (例如 roles/healthcare.datasetViewer
) 或資料儲存庫檢視者角色 (例如 roles/healthcare.dicomViewer
)。
同意聲明儲存庫角色
同意聲明儲存庫角色
權限
Healthcare Consent Store Viewer
(roles/ healthcare.consentStoreViewer
)
可列出資料集中的同意聲明存放區。
healthcare. consentStores. checkDataAccess
healthcare. consentStores. evaluateUserConsents
healthcare.consentStores.get
healthcare.consentStores.list
healthcare. consentStores. queryAccessibleData
healthcare.datasets.get
healthcare.datasets.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare 同意聲明庫管理員
(roles/ healthcare.consentStoreAdmin
)
可管理同意聲明存放區。
healthcare.consentStores.*
healthcare. consentStores. checkDataAccess
healthcare. consentStores. create
healthcare. consentStores. delete
healthcare. consentStores. evaluateUserConsents
healthcare.consentStores.get
healthcare. consentStores. getIamPolicy
healthcare.consentStores.list
healthcare. consentStores. queryAccessibleData
healthcare. consentStores. setIamPolicy
healthcare. consentStores. update
healthcare.datasets.get
healthcare.datasets.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
同意聲明角色
同意聲明角色
權限
Healthcare 屬性定義讀取者
(roles/ healthcare.attributeDefinitionReader
)
可讀取同意聲明存放區中的 AttributeDefinition 物件。
healthcare. attributeDefinitions. get
healthcare. attributeDefinitions. list
healthcare. consentStores. checkDataAccess
healthcare. consentStores. evaluateUserConsents
healthcare.consentStores.get
healthcare.consentStores.list
healthcare. consentStores. queryAccessibleData
healthcare.datasets.get
healthcare.datasets.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare 屬性定義編輯者
(roles/ healthcare.attributeDefinitionEditor
)
可編輯 AttributeDefinition 物件。
healthcare. attributeDefinitions.*
healthcare. attributeDefinitions. create
healthcare. attributeDefinitions. delete
healthcare. attributeDefinitions. get
healthcare. attributeDefinitions. list
healthcare. attributeDefinitions. update
healthcare. consentStores. checkDataAccess
healthcare. consentStores. evaluateUserConsents
healthcare.consentStores.get
healthcare.consentStores.list
healthcare. consentStores. queryAccessibleData
healthcare.datasets.get
healthcare.datasets.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare 同意聲明構件讀取者
(roles/ healthcare.consentArtifactReader
)
可讀取同意聲明存放區中的 ConsentArtifact 物件。
healthcare. consentArtifacts. get
healthcare. consentArtifacts. list
healthcare. consentStores. checkDataAccess
healthcare. consentStores. evaluateUserConsents
healthcare.consentStores.get
healthcare.consentStores.list
healthcare. consentStores. queryAccessibleData
healthcare.datasets.get
healthcare.datasets.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare 同意聲明構件編輯者
(roles/ healthcare.consentArtifactEditor
)
編輯 ConsentArtifact 物件。
healthcare. consentArtifacts. create
healthcare. consentArtifacts. get
healthcare. consentArtifacts. list
healthcare. consentStores. checkDataAccess
healthcare. consentStores. evaluateUserConsents
healthcare.consentStores.get
healthcare.consentStores.list
healthcare. consentStores. queryAccessibleData
healthcare.datasets.get
healthcare.datasets.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare Consent Artifact Administrator
(roles/ healthcare.consentArtifactAdmin
)
管理 ConsentArtifact 物件。
healthcare.consentArtifacts.*
healthcare. consentArtifacts. create
healthcare. consentArtifacts. delete
healthcare. consentArtifacts. get
healthcare. consentArtifacts. list
healthcare. consentStores. checkDataAccess
healthcare. consentStores. evaluateUserConsents
healthcare.consentStores.get
healthcare.consentStores.list
healthcare. consentStores. queryAccessibleData
healthcare.datasets.get
healthcare.datasets.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare Consent Reader
(roles/ healthcare.consentReader
)
可讀取同意聲明存放區中的同意聲明物件。
healthcare. consentStores. checkDataAccess
healthcare. consentStores. evaluateUserConsents
healthcare.consentStores.get
healthcare.consentStores.list
healthcare. consentStores. queryAccessibleData
healthcare.consents.get
healthcare.consents.list
healthcare.datasets.get
healthcare.datasets.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare 同意聲明編輯者
(roles/ healthcare.consentEditor
)
編輯 Consent 物件。
healthcare. consentStores. checkDataAccess
healthcare. consentStores. evaluateUserConsents
healthcare.consentStores.get
healthcare.consentStores.list
healthcare. consentStores. queryAccessibleData
healthcare.consents.*
healthcare.consents.activate
healthcare.consents.create
healthcare.consents.delete
healthcare.consents.get
healthcare.consents.list
healthcare.consents.reject
healthcare.consents.revoke
healthcare.consents.update
healthcare.datasets.get
healthcare.datasets.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare 使用者資料對應關係讀取者
(roles/ healthcare.userDataMappingReader
)
可讀取同意聲明存放區中的 UserDataMapping 物件。
healthcare. consentStores. checkDataAccess
healthcare. consentStores. evaluateUserConsents
healthcare.consentStores.get
healthcare.consentStores.list
healthcare. consentStores. queryAccessibleData
healthcare.datasets.get
healthcare.datasets.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
healthcare. userDataMappings. get
healthcare. userDataMappings. list
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare 使用者資料對應關係編輯者
(roles/ healthcare.userDataMappingEditor
)
可編輯 UserDataMapping 物件。
healthcare. consentStores. checkDataAccess
healthcare. consentStores. evaluateUserConsents
healthcare.consentStores.get
healthcare.consentStores.list
healthcare. consentStores. queryAccessibleData
healthcare.datasets.get
healthcare.datasets.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
healthcare.userDataMappings.*
healthcare. userDataMappings. archive
healthcare. userDataMappings. create
healthcare. userDataMappings. delete
healthcare. userDataMappings. get
healthcare. userDataMappings. list
healthcare. userDataMappings. update
resourcemanager.projects.get
resourcemanager.projects.list
資料集角色
資料集角色
權限
Healthcare 資料集檢視者
(roles/ healthcare.datasetViewer
)
可在專案中列出 Healthcare 資料集。
healthcare.datasets.get
healthcare.datasets.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare 資料集管理員
(roles/ healthcare.datasetAdmin
)
可管理 Healthcare 資料集。
healthcare.datasets.*
healthcare.datasets.create
healthcare.datasets.deidentify
healthcare.datasets.delete
healthcare.datasets.get
healthcare. datasets. getIamPolicy
healthcare.datasets.list
healthcare. datasets. setIamPolicy
healthcare.datasets.update
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.*
healthcare.operations.cancel
healthcare.operations.get
healthcare.operations.list
resourcemanager.projects.get
resourcemanager.projects.list
DICOM 儲存庫角色
DICOM 儲存庫角色
權限
Healthcare DICOM Store 檢視者
(roles/ healthcare.dicomStoreViewer
)
可列出資料集中的 DICOM Store。
healthcare.datasets.get
healthcare.datasets.list
healthcare.dicomStores.get
healthcare.dicomStores.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare DICOM 存放區管理員
(roles/ healthcare.dicomStoreAdmin
)
可以管理 DICOM Store。
healthcare.datasets.get
healthcare.datasets.list
healthcare.dicomStores.create
healthcare. dicomStores. deidentify
healthcare.dicomStores.delete
healthcare. dicomStores. dicomWebDelete
healthcare.dicomStores.get
healthcare. dicomStores. getIamPolicy
healthcare.dicomStores.list
healthcare. dicomStores. setIamPolicy
healthcare.dicomStores.update
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.cancel
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare DICOM 檢視者
(roles/ healthcare.dicomViewer
)
可以從 DICOM Store 擷取 DICOM 映像檔。
healthcare.datasets.get
healthcare.datasets.list
healthcare. dicomStores. dicomWebRead
healthcare.dicomStores.export
healthcare.dicomStores.get
healthcare.dicomStores.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare DICOM 編輯者
(roles/ healthcare.dicomEditor
)
可個別以及大量編輯 DICOM 映像檔。
healthcare.datasets.get
healthcare.datasets.list
healthcare. dicomStores. dicomWebDelete
healthcare. dicomStores. dicomWebRead
healthcare. dicomStores. dicomWebWrite
healthcare.dicomStores.export
healthcare.dicomStores.get
healthcare.dicomStores.import
healthcare.dicomStores.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.cancel
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
FHIR 儲存庫角色
FHIR 存放區角色
權限
Healthcare FHIR Store 檢視者
(roles/ healthcare.fhirStoreViewer
)
可列出資料集中的 FHIR Store。
healthcare.datasets.get
healthcare.datasets.list
healthcare.fhirStores.get
healthcare.fhirStores.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare FHIR 存放區管理員
(roles/ healthcare.fhirStoreAdmin
)
可管理 FHIR 資源存放區。
healthcare.datasets.get
healthcare.datasets.list
healthcare.fhirResources.purge
healthcare. fhirStores. applyConsents
healthcare. fhirStores. configureSearch
healthcare.fhirStores.create
healthcare. fhirStores. deidentify
healthcare.fhirStores.delete
healthcare. fhirStores. deleteFhirOperation
healthcare. fhirStores. explainDataAccess
healthcare.fhirStores.export
healthcare.fhirStores.get
healthcare. fhirStores. getFhirOperation
healthcare. fhirStores. getIamPolicy
healthcare.fhirStores.import
healthcare.fhirStores.list
healthcare.fhirStores.rollback
healthcare. fhirStores. setIamPolicy
healthcare.fhirStores.update
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.cancel
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare FHIR 資源讀取者
(roles/ healthcare.fhirResourceReader
)
讀取及搜尋 FHIR 資源。
healthcare.datasets.get
healthcare.datasets.list
healthcare.fhirResources.get
healthcare. fhirResources. translateConceptMap
healthcare. fhirStores. executeBundle
healthcare.fhirStores.get
healthcare.fhirStores.list
healthcare. fhirStores. searchResources
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare FHIR 資源編輯者
(roles/ healthcare.fhirResourceEditor
)
建立、刪除、更新、讀取及搜尋 FHIR 資源。
healthcare.datasets.get
healthcare.datasets.list
healthcare. fhirResources. create
healthcare. fhirResources. delete
healthcare.fhirResources.get
healthcare.fhirResources.patch
healthcare. fhirResources. translateConceptMap
healthcare. fhirResources. update
healthcare. fhirStores. executeBundle
healthcare.fhirStores.get
healthcare.fhirStores.list
healthcare. fhirStores. searchResources
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.cancel
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
HL7v2 儲存庫角色
HL7v2 儲存庫角色
權限
Healthcare HL7v2 Store 檢視者
(roles/ healthcare.hl7V2StoreViewer
)
可檢視資料集中的 HL7v2 Store。
healthcare.datasets.get
healthcare.datasets.list
healthcare.hl7V2Stores.get
healthcare.hl7V2Stores.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare HL7v2 Store 管理員
(roles/ healthcare.hl7V2StoreAdmin
)
可管理 HL7v2 Store。
healthcare.datasets.get
healthcare.datasets.list
healthcare.hl7V2Stores.*
healthcare.hl7V2Stores.create
healthcare.hl7V2Stores.delete
healthcare.hl7V2Stores.export
healthcare.hl7V2Stores.get
healthcare. hl7V2Stores. getIamPolicy
healthcare.hl7V2Stores.import
healthcare.hl7V2Stores.list
healthcare. hl7V2Stores. rollback
healthcare. hl7V2Stores. setIamPolicy
healthcare.hl7V2Stores.update
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.cancel
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare HL7v2 訊息擷取者
(roles/ healthcare.hl7V2Ingest
)
可擷取來源網路發送的 HL7v2 訊息。
healthcare.datasets.get
healthcare.datasets.list
healthcare. hl7V2Messages. ingest
healthcare.hl7V2Stores.get
healthcare.hl7V2Stores.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare HL7v2 訊息使用者
(roles/ healthcare.hl7V2Consumer
)
可列出和讀取 HL7v2 訊息、更新訊息標籤及發布新訊息。
healthcare.datasets.get
healthcare.datasets.list
healthcare. hl7V2Messages. create
healthcare.hl7V2Messages.get
healthcare.hl7V2Messages.list
healthcare. hl7V2Messages. update
healthcare.hl7V2Stores.get
healthcare.hl7V2Stores.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare HL7v2 訊息編輯者
(roles/ healthcare.hl7V2Editor
)
具備 HL7v2 訊息的讀取、寫入及刪除存取權。
healthcare.datasets.get
healthcare.datasets.list
healthcare.hl7V2Messages.*
healthcare. hl7V2Messages. create
healthcare. hl7V2Messages. delete
healthcare.hl7V2Messages.get
healthcare. hl7V2Messages. ingest
healthcare.hl7V2Messages.list
healthcare. hl7V2Messages. update
healthcare.hl7V2Stores.get
healthcare.hl7V2Stores.list
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare.operations.cancel
healthcare.operations.get
resourcemanager.projects.get
resourcemanager.projects.list
Healthcare Natural Language API 角色
Healthcare Natural Language API 角色
權限
醫療照護自然語言處理服務檢視者
Beta 版
(roles/ healthcare.nlpServiceViewer
)
從指定的文字中擷取及分析醫學實體。
healthcare.locations.*
healthcare.locations.get
healthcare.locations.list
healthcare. nlpservice. analyzeEntities
resourcemanager.projects.get
resourcemanager.projects.list
Cloud Healthcare 服務代理人
Cloud Healthcare Service Agent 是專案中共用的服務帳戶 ,Cloud Healthcare API 會使用這個帳戶與Google Cloud中的其他資源互動。
舉例來說,這個服務代理程式可用於讀取及寫入 Cloud Storage 值區、寫入 BigQuery,以及從 Cloud Healthcare API 將訊息發布至 Pub/Sub。
如要執行上述任何動作,您必須授予Cloud Healthcare 服務代理 相關 Cloud Storage 值區、BigQuery 資料集或 Pub/Sub 主題的存取權。
為專案建立權限模型時,請注意,授予下列任一角色,使用者就能以 Cloud Healthcare 服務代理 的身分叫用作業,並存取該代理可存取的任何資料:
roles/healthcare.consentStoreAdmin
roles/healthcare.consentStoreViewer
roles/healthcare.dicomStoreEditor
roles/healthcare.dicomStoreViewer
roles/healthcare.fhirStoreAdmin
roles/healthcare.hl7V2StoreAdmin
同樣地,將下列權限指派給自訂角色,也會允許使用者叫用以「Cloud Healthcare 服務代理」 身分執行的作業:
healthcare.consentStores.queryAccessibleData
healthcare.dicomStores.create
healthcare.dicomStores.update
healthcare.dicomStores.import
healthcare.dicomStores.export
healthcare.fhirStores.create
healthcare.fhirStores.update
healthcare.fhirStores.import
healthcare.fhirStores.export
healthcare.hl7V2Stores.create
healthcare.hl7V2Stores.update
例如:
如果使用者具備任何匯入權限,且作業會存取 Cloud Healthcare Service Agent 具有讀取權限的任何 Cloud Storage 值區,則使用者可以執行作業,充當 Cloud Healthcare Service Agent 。
如果使用者具備任何匯出權限,且作業會存取服務代理程式具有寫入權限的任何值區,則使用者可以執行作業,充當 Cloud Healthcare Service Agent 。
如果使用者具備建立或更新資料儲存庫的權限,就能設定 Pub/Sub 通知目標或 BigQuery 串流目的地,在資料儲存庫變更時,由 Cloud Healthcare Service Agent 傳送通知。
最佳做法是利用多個專案,進一步隔離授予 Cloud Healthcare 服務代理程式 的權限。
提供意見
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權 ,程式碼範例則為阿帕契 2.0 授權 。詳情請參閱《Google Developers 網站政策 》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-09-04 (世界標準時間)。
想進一步說明嗎?
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eThe Cloud Healthcare API uses Identity and Access Management (IAM) to control access at the project, dataset, or data store level, with specific permissions required for each API method.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides methods for various data store types, including Annotation Stores, Consent Stores, Dataset, DICOM Stores, FHIR Stores, and HL7v2 Stores, each with its own set of create, get, list, delete, and update operations.\u003c/p\u003e\n"],["\u003cp\u003eDifferent roles are defined for managing access to healthcare data, such as Annotation Administrator, Consent Store Viewer, DICOM Store Editor, FHIR Resource Reader, and HL7v2 Store Administrator, each with a specific set of permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe Cloud Healthcare Service Agent is a service account with roles and permissions to interact with Google Cloud resources and can access data based on the permissions granted to it.\u003c/p\u003e\n"],["\u003cp\u003eThe system provides access to data from the Healthcare Natural Language API and the de-identification of DICOM and FHIR resources, as well as methods for retrieving location and operation data.\u003c/p\u003e\n"]]],[],null,["# Access control with IAM\n\nOverview\n--------\n\nThe Cloud Healthcare API uses [Identity and Access Management (IAM)](/iam)\nfor access control.\n\nIn the Cloud Healthcare API, access control can be configured at the\nproject, dataset, or data store level. For example, you can grant access to all\ndatasets within a project to a group of developers. To learn how to set up and\nuse IAM with the Cloud Healthcare API, see\n[Controlling access](/healthcare-api/docs/how-tos/controlling-access) and\n[Controlling access to other products](/healthcare-api/docs/how-tos/permissions-healthcare-api-gcp-products).\n\nFor a detailed description of IAM and its features, see the\n[IAM documentation](/iam/docs).\nIn particular, see the section on\n[managing IAM policies](/iam/docs/granting-changing-revoking-access).\n\nEvery Cloud Healthcare API method requires the caller to have the\nnecessary permissions. See [Permissions](#permissions) and [Roles](#roles)\nfor more information.\n\nPermissions\n-----------\n\nThe following tables list the IAM permissions that are associated with the\nCloud Healthcare API. Method names are shortened in the table;\neach method's full name begins with `projects.locations.`.\n\n### Consent store methods\n\n### Dataset methods\n\n### DICOM store methods\n\n### FHIR store methods\n\n### HL7v2 store methods\n\n### Location methods\n\n### Healthcare Natural Language API methods\n\n### Operation methods\n\n### De-identify methods\n\nRoles\n-----\n\nThe following tables list the Cloud Healthcare API IAM\nroles, including the permissions associated with each role. The roles `roles/owner`, `roles/editor`, and `roles/viewer` include\npermissions for other Google Cloud services. For more information\nabout roles, see [Understanding roles](/iam/docs/understanding-roles).\n| **Note:** Granting viewer roles at the store level, such as `roles/healthcare.dicomViewer`, does not also grant the role for the dataset. To view long-running operations for the dataset, you must also grant either the dataset viewer role, such as `roles/healthcare.datasetViewer`, or the data store viewer role, such as `roles/healthcare.dicomViewer`, for the dataset.\n\n### Consent store roles\n\n### Consents roles\n\n### Datasets roles\n\n### DICOM store roles\n\n### FHIR store roles\n\n### HL7v2 store roles\n\n### Healthcare Natural Language API roles\n\nCloud Healthcare Service Agent\n------------------------------\n\nThe **Cloud Healthcare Service Agent** is a shared\n[service account](/iam/docs/service-accounts) in your project that\nCloud Healthcare API uses to interact with other resources in\nGoogle Cloud.\n\nFor example, this service agent is used to read and write to\nCloud Storage buckets, write to BigQuery, and to publish\nmessages to Pub/Sub from the Cloud Healthcare API.\n\nTo execute any of the preceding actions, you must give the **Cloud Healthcare\nService Agent** access to the relevant Cloud Storage bucket,\nBigQuery dataset, or Pub/Sub topic.\n\nAs you create a permission model for your project, remember that granting any of\nthe roles listed below allows the user to invoke operations that run as the\n**Cloud Healthcare Service Agent** and have access to any data that the agent\nhas access to:\n\n- `roles/healthcare.consentStoreAdmin`\n- `roles/healthcare.consentStoreViewer`\n- `roles/healthcare.dicomStoreEditor`\n- `roles/healthcare.dicomStoreViewer`\n- `roles/healthcare.fhirStoreAdmin`\n- `roles/healthcare.hl7V2StoreAdmin`\n\nSimilarly, assigning the following permissions to custom roles would also allow\nthe user to invoke operations that will run as the **Cloud Healthcare Service\nAgent**:\n\n- `healthcare.consentStores.queryAccessibleData`\n- `healthcare.dicomStores.create`\n- `healthcare.dicomStores.update`\n- `healthcare.dicomStores.import`\n- `healthcare.dicomStores.export`\n- `healthcare.fhirStores.create`\n- `healthcare.fhirStores.update`\n- `healthcare.fhirStores.import`\n- `healthcare.fhirStores.export`\n- `healthcare.hl7V2Stores.create`\n- `healthcare.hl7V2Stores.update`\n\nFor example:\n\n- If a user has any import permissions, then the user can run operations that act as the **Cloud Healthcare Service Agent** if those operations access any Cloud Storage buckets that the **Cloud Healthcare Service Agent** has read access to.\n- If a user has any export permissions, then the user can run operations that act as the **Cloud Healthcare Service Agent** if those operations access any bucket that the service agent has write access to.\n- A user who has create or update data store permissions has the ability to configure Pub/Sub notification targets or BigQuery streaming destinations that are sent by the **Cloud\n Healthcare Service Agent** when changes are made to the data store.\n\nAs a best practice, leverage multiple projects to further isolate the\npermissions given to the **Cloud Healthcare Service Agent**."]]