Full name: projects.locations.datasets.consentStores.queryAccessibleData
Queries all data_ids that are consented for a specified use in the given consent store
and writes them to a specified destination.
The returned Operation
includes a progress counter for the number of User data mappings
processed.
If the request is successful, a detailed response is returned of type QueryAccessibleDataResponse
, contained in the [response][google.longrunning.Operation.result.response] field when the operation finishes. The metadata
field type is OperationMetadata
.
Errors are logged to Cloud Logging (see Viewing error logs in Cloud Logging). For example, the following sample log entry shows a failed to evaluate consent
policy
error that occurred during a consentStores.queryAccessibleData call to consent store projects/{projectId}/locations/{locationId}/datasets/{datasetId}/consentStores/{consentStoreId}
.
jsonPayload: {
@type:
"type.googleapis.com/google.cloud.healthcare.logging.QueryAccessibleDataLogEntry"
error: {
code: 9
message: "failed to evaluate consent policy"
}
resourceName:
"projects/{projectId}/locations/{locationId}/datasets/{datasetId}/consentStores/{consentStoreId}/consents/{consentId}"
}
logName:
"projects/{projectId}/logs/healthcare.googleapis.com%2Fquery_accessible_data"
operation: {
id:
"projects/{projectId}/locations/{locationId}/datasets/{datasetId}/operations/{operation_id}"
producer: "healthcare.googleapis.com/consentStores.queryAccessibleData"
}
receiveTimestamp: "TIMESTAMP"
resource: {
labels: {
consentStoreId: "{consentStoreId}"
datasetId: "{datasetId}"
location: "{locationId}"
projectId: "{projectId}"
}
type: "healthcare_consent_store"
}
severity: "ERROR"
timestamp: "TIMESTAMP"
HTTP request
POST https://healthcare.googleapis.com/v1/{consentStore=projects/*/locations/*/datasets/*/consentStores/*}:queryAccessibleData
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
consent |
Required. Name of the consent store to retrieve User data mappings from. Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "resourceAttributes": { string: string, ... }, "requestAttributes": { string: string, ... }, // Union field |
Fields | |
---|---|
resource |
Optional. The values of resource attributes associated with the type of resources being requested. If no values are specified, then all resource types are included in the output. An object containing a list of |
request |
The values of request attributes associated with this access request. An object containing a list of |
Union field destination . Required. The output destination of the result file which contains a single data_id on each line. destination can be only one of the following: |
|
gcs |
The Cloud Storage destination. The Cloud Healthcare API service account must have the |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-healthcare
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
GcsDestination
The Cloud Storage location for export.
JSON representation |
---|
{ "uriPrefix": string } |
Fields | |
---|---|
uri |
URI for a Cloud Storage directory where the server writes result files, in the format |