This document is intended for Knowledge Catalog (formerly Dataplex Universal Catalog) data product consumers who want to discover and use data products for their use cases.
For more information about the architecture and key concepts of data products, see About data products.
Before you begin
-
Enable the Dataplex, BigQuery APIs.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.
Required roles
To get the permissions that you need to search for, access, and use data products, ask your administrator to grant you the following IAM roles on the data product or the project:
-
Search for data products:
Dataplex Catalog Viewer (
roles/dataplex.catalogViewer) -
Search for data assets and request access:
Dataplex Data Products Consumer (
roles/dataplex.dataProductsConsumer) -
Read-only access to view data product definitions and metadata:
Dataplex Data Products Viewer (
roles/dataplex.dataProductsViewer)
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
As a data product consumer, to view the metadata of an asset, you must have the
viewer permission to access the corresponding asset in the source system. For
example, to search for metadata for a dataset or a table in a data product,
you need the BigQuery Metadata Viewer role (roles/bigquery.metadataViewer).
For more information, see
Required roles for accessing search results.
Search for data products
Console
In the Google Cloud console, go to the Knowledge Catalog Search page.
Search using keywords or natural language. For more information, see Search for resources.
In the search results, click the data product for which you want to view details. You can review the description, assets, contract, aspects, contact details, and other documentation associated with the data product.
REST
To search for a data product, use the
searchEntries
method.
For example, send the following POST request:
curl -X POST \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json" \
-d \
'{
"query": "ADDITIONAL_KEYWORDS (type=(DATA_PRODUCT))",
"pageSize": 10
}' \
"https://dataplex.googleapis.com/v1/projects/PROJECT_ID/locations/global:searchEntries"
Replace the following:
- ADDITIONAL_KEYWORDS (optional): any additional
keywords or search criteria to narrow down the results (for example,
displayName:'My Data Product'ordescription:'sales') - PROJECT_ID: the ID of your Google Cloud project in which the data product is created
Request access to data products
As a data product consumer, if you don't have IAM permissions to access a data product, you can request access using the integrated access approval workflows.
Submit an access request
Console
In the Google Cloud console, go to the Knowledge Catalog Data products page.
Click the data product that you want to access.
Click Request access.