Full name: projects.locations.datasets.consentStores.checkDataAccess
Checks if a particular dataId of a User data mapping in the specified consent store is consented for the specified use.
HTTP request
POST https://healthcare.googleapis.com/v1/{consentStore=projects/*/locations/*/datasets/*/consentStores/*}:checkDataAccess
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
consentStore |
Required. Name of the consent store where the requested dataId is stored, of the form Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "dataId": string, "requestAttributes": { string: string, ... }, "responseView": enum( |
| Fields | |
|---|---|
dataId |
Required. The unique identifier of the resource to check access for. This identifier must correspond to a User data mapping in the given consent store. |
requestAttributes |
The values of request attributes associated with this access request. An object containing a list of |
responseView |
Optional. The view for |
Union field consent_selection. The selection of Consents to evaluate the access request against. If no selection is specified, the access request is evaluated against all ACTIVE unexpired Consents with the same user_id as the data to check access for. consent_selection can be only one of the following: |
|
consentList |
Optional. Specific |
Response body
Checks if a particular dataId of a User data mapping in the given consent store is consented for a given use.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"consented": boolean,
"consentDetails": {
string: {
object( |
| Fields | |
|---|---|
consented |
Whether the requested resource is consented for the given use. |
consentDetails |
The resource names of all evaluated An object containing a list of |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-healthcarehttps://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ResponseView
The supported views for CheckDataAccessResponse.
| Enums | |
|---|---|
RESPONSE_VIEW_UNSPECIFIED |
No response view specified. The API will default to the BASIC view. |
BASIC |
Only the consented field is populated in CheckDataAccessResponse. |
FULL |
All fields within CheckDataAccessResponse are populated. When set to FULL, all ACTIVE Consents are evaluated even if a matching policy is found during evaluation. |