Required. The resource name of the Consent to retrieve, of the form projects/{projectId}/locations/{locationId}/datasets/{datasetId}/consentStores/{consentStoreId}/consents/{consent_id}.
In order to retrieve a previous revision of the Consent, also provide the revision ID: projects/{projectId}/locations/{locationId}/datasets/{datasetId}/consentStores/{consentStoreId}/consents/{consent_id}@{revisionId}
Authorization requires the following IAM permission on the specified resource name:
healthcare.consents.get
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Consent.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-01 UTC."],[[["\u003cp\u003eRetrieves a specific revision of a Consent resource or the latest revision if no revision ID is provided.\u003c/p\u003e\n"],["\u003cp\u003eUses a GET request with a URL structure following gRPC Transcoding syntax for accessing the resource.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehealthcare.consents.get\u003c/code\u003e IAM permission on the specified resource name for authorization.\u003c/p\u003e\n"],["\u003cp\u003eThe response body, when successful, will contain the specified \u003ccode\u003eConsent\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eOAuth scopes \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-healthcare\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e are needed for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: consents.get\n\n**Full name**: projects.locations.datasets.consentStores.consents.get\n\nGets the specified revision of a [Consent](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.consents#Consent), or the latest revision if `revisionId` is not specified in the resource name.\n\n### HTTP request\n\n`GET https://healthcare.googleapis.com/v1/{name=projects/*/locations/*/datasets/*/consentStores/*/consents/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Consent](/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.consentStores.consents#Consent).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-healthcare`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]