Data Catalog API methods that are related to Data Catalog search and metadata are deprecated and will be discontinued on January 30, 2026. See Transition from Data Catalog to Dataplex Catalog. Methods that are related to policy tags and policy tag taxonomies are not deprecated.
ANOT_FOUND error if the resource doesn't exist or you don't have the permission to view it.
An empty policy if the resource exists but doesn't have a set policy.
Supported resources are:
Tag templates
Entry groups
Note: This method doesn't get policies from Google Cloud Platform resources ingested into Data Catalog.
To call this method, you must have the following Google IAM permissions:
datacatalog.tagTemplates.getIamPolicy to get policies on tag templates.
datacatalog.entryGroups.getIamPolicy to get policies on entry groups.
HTTP request
POST https://datacatalog.googleapis.com/v1/{resource}:getIamPolicy
Path parameters
Parameters
resource
string
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field. It takes the form projects/{project}/locations/{location}/entryGroups/{entrygroup}/entries/{entries}.
Request body
The request body contains data with the following structure:
[[["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-02-25 UTC."],[[["This endpoint retrieves the access control policy for a specified resource, such as tag templates or entry groups, within Data Catalog."],["To use this method, you must have the `datacatalog.tagTemplates.getIamPolicy` permission for tag templates or `datacatalog.entryGroups.getIamPolicy` for entry groups."],["The HTTP request is a POST to `https://datacatalog.googleapis.com/v1/{resource}:getIamPolicy`, with the resource specified in the path parameters."],["The request body can include an optional `GetPolicyOptions` object to specify options for `entries.getIamPolicy`."],["The endpoint requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope for authorization."]]],[]]