Metadata is crucial for organizing and understanding your data assets. For example, regulated industries need to protect personally identifiable information (PII) like names, addresses, and government issued ID numbers. This data can occur in numerous instances across distributed data systems. Dataplex Universal Catalog can help you to quickly discover and catalog your distributed data assets. You can then classify data as being PII.
By enriching data entries with meaningful context, you can make your data more discoverable and useful. Dataplex Universal Catalog enables context through:
- Aspect type: A JSON template defining related data. For example, for compliance information, you might have PII classification and GDPR compliance.
- Aspect: An instance of an aspect type. For example, {"pii_classification": "confidential", "gdpr_compliant": true}. You can apply an aspect to an entire table or an individual table column.
Once you've classified data, you can apply data quality or access policies to the data.
For more information, see About metadata management in Dataplex Universal Catalog.
Aspects
Aspects let you capture metadata within entries to provide meaningful context. You can use aspects to store:
Business metadata: Information that provides business context, such as data classification.
Technical metadata: Technical details about the data asset, for example, its schema.
Data-derived metadata: Information generated from the data itself, such as statistics from a BigQuery table.
Aspects are considered to be parts of the entry resource and not separate resources. When you modify an aspect, it involves modifying the entry containing the aspect.
You can specify aspects at entry-level for describing an entry, or at column-level for describing a column in an entry.
Every aspect is an instance of an aspect type. An aspect type defines a template for its aspects. Every aspect type contains a set of fields. When you create aspects, you must provide values for those fields.
For a given entry, there can be at most one aspect associated with the entry, per aspect type. You can have multiple aspects associated with entry columns per aspect type.
Categories of aspects
Aspects are categorized into the following:
Required aspects: aspects which are mandatory upon creation of an entry. Such aspects are defined by the entry type of a given entry. All entries belonging to an entry type must always have all of the required aspects that are defined by that entry type.
Dataplex Universal Catalog manages the required aspects (for example, schema) for system entries.
Note the following:
You can associate required aspects only with entries and not with the columns of an entry.
You can't delete the required aspects from an entry.
You can read the required aspects of system entries, but can't modify them.
Data aspects can't be required aspects.
Optional aspects: You can associate optional aspects with entries or with entry columns. You can populate optional aspects either at the time of entry creation, or later by updating the entry.
You can delete optional aspects after they have been populated.
Data aspects
Aspects can contain information derived from data, such as results from data profile or example queries. These are referred to as data aspects.
Aspect types
Aspect types are reusable resources that provide templates for aspects.
Categories of aspect types
Aspect types are categorized into custom and system aspect types.
Custom aspect types
Aspect types that you create in Dataplex Universal Catalog are called custom aspect types.
Custom aspect types can be global or regional. You can create custom aspect
types either in a specific regional location (for example, us-central1) or as
a global resource. The location of an aspect type impacts the scope of its
applicability and determines which entries it can be used with:
- Global aspect types: Can be used to create aspects for entries in any
region. Choose a
globalaspect type if you need to apply the same structure to entries across multiple regions, as you only need to define it once. Because the definition of a global aspect type is replicated across all regions, this option may not be suitable if the aspect type schema itself contains sensitive information or if strict data residency for all metadata components is required. - Regional aspect types: Can only be used to create aspects for entries
that reside in the same region as the aspect type. For example, an aspect
type created in
us-central1can only be used with entries inus-central1. Choose a regional location if an aspect type is only relevant for entries in a specific region, or to ensure that the aspect type definition resides within the selected region, which can help meet data sovereignty and compliance requirements. If you use regional aspect types but need the same structure in multiple regions, you must create and manage separate aspect type definitions in each region.
For more information, see Project and location constraints.
System aspect types
Aspect types that Dataplex Universal Catalog provides, uses, and manages are called
system aspect types. System aspect types are always global, therefore they can
be used in any region. System aspect types are stored in a Google-managed
project with project number 655216118709. For example,
projects/655216118709/locations/global/aspectTypes/schema.
Each system-defined aspect type and system-defined entry type has its own IAM permissions. For more information, see IAM permissions for system aspect types and entry types.
System aspect types are further categorized into reusable and restricted. The following table describes the categories of system aspect types, and the list of aspect types that Dataplex Universal Catalog provides for each of the categories:
| Category of system aspect type | Description | Aspect types that Dataplex Universal Catalog provides |
|---|---|---|
| Reusable system aspect type | You can use these aspect types to create or modify aspects. |
|
| Restricted system aspect type | Dataplex Universal Catalog manages these aspect types. You can read aspects under these aspect types, but can't create or edit aspects under these aspect types. |
Including but not limited to:
|
Before you begin
Before you create and manage aspect types and aspects, complete the tasks described in this section.
Required roles
To get the permissions that you need to create and manage aspect types and aspects, ask your administrator to grant you the following IAM roles on the resource:
-
Full set of permissions on metadata resources in Dataplex Universal Catalog, including aspect types and data aspects:
Dataplex Catalog Admin (
roles/dataplex.catalogAdmin) -
Create and manage metadata resources in Dataplex Universal Catalog, including aspect types and data aspects:
Dataplex Catalog Editor (
roles/dataplex.catalogEditor) -
Full set of permissions on custom aspect types (except for permissions to use aspect types to create or edit entries):
Dataplex Aspect Type Owner (
roles/dataplex.aspectTypeOwner) -
View aspect types and IAM policies associated with them:
Dataplex Catalog Viewer (
roles/dataplex.catalogViewer) -
Use aspect types to create and modify entries with the corresponding aspects:
Dataplex Aspect Type User (
roles/dataplex.aspectTypeUser) -
Add aspects of some of the system aspect types, such as
schema,overview,contacts: Dataplex Entry and EntryLink Owner (roles/dataplex.entryOwner)
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.
For more information, see Dataplex Universal Catalog IAM roles.
Enable the API
Enable the Dataplex API in your Dataplex Universal Catalog project.
Create a custom aspect type
Console
- In the Google Cloud console, go to the Dataplex Universal Catalog Catalog page.
Click the Aspect types & tag templates > Custom tab.
Click Create aspect type.
In the Create aspect type window, enter the following:
Optional: In the Display name field, enter a name for the aspect type.
- In the Aspect type ID field, enter a unique ID for the aspect type.
- Optional: In the Description field, enter a description for the aspect type.
- In the Location field, select a location for the aspect type. You can't modify the location of an aspect type after you create it. To understand the impact of choosing a global versus a regional location, see the Custom aspect types section.
Optional: Define a template for your aspect type.
In the Template section, click Add field. In the New field section, enter the following:
In the Name field, enter a name.
- Optional: In the Display name field, enter a display name.
- Optional: In the Description field, enter a description.
In the Type field, select a data type for the field. Based on your selection, the next set of fields and options are displayed:
* If you selected **Text** as the data type, follow these steps:
In the Text type field, select the type of text. 1. In the Text values field, provide a hint for the text field. To do this, click Add value and enter the hint. You can add multiple hints for a text field. 1. Click Done.
* If you selected **Enum** as the data type, add an enum value:Click Add an enum value. 1. In the Value field, enter an enum value. You can add multiple enum values. 1. Click Done.
* If you selected **Array** as the data type, in the **Array item** section, define the types of items to be present in the array:Click Add array item. 1. In the Name field, enter a name for the array items. 1. Optional: In the Display name field, enter a display name for the array items. 1. Optional: In the Description field, enter a description for the array items. 1. In the Type field, select a data type for the array items.
Based on your selection, the next set of fields and options are displayed. They are similar to the options described for the data types Text, Enum, Map, Array, and Record elsewhere in this section.
Click Done.
* If you selected **Map** as the data type, in the **Map value** section, define the types of values to be present in the map:Click Add map value. 1. In the Name field, enter a name for the map. 1. Optional: In the Display name field, enter a display name for the map. 1. Optional: In the Description field, enter a description for the map. 1. In the Type field, select a data type for the map.
Based on your selection, the next set of fields and options are displayed. They are similar to the options described for the data types Text, Enum, Map, Array, and Record elsewhere in this section.
Click Done.
* If you selected **Record** as the data type, enter the following:In the Record ID field, enter a unique ID that other record fields can use to refer to this record. See the Example for using the Record ID and Record reference fields section of this document. 1. Optional: If you want to add a reference to another record from this template, use the Record reference field. You can't modify this after you create the aspect type. See the Example for using the Record ID and Record reference fields section of this document. 1. In the Record fields section, you can define a complex object with multiple nested fields. To do this, click Add record field item, and specify the following:
In the Name field, enter a name for the record field. 1. Optional: In the Display name field, enter a display name for the record field. 1. Optional: In the Description field, enter a description for the record field. 1. In the Type field, select a data type.
Based on your selection, the next set of fields and options are displayed. They are similar to the options described for the data types Text, Enum, Map, Array, and Record earlier in this section.
Click Done.
To make the field mandatory for an aspect of this type, select Is required. For more information about required aspects and optional aspects, see the categories of aspects section of this document.
- Click Done.
- To add multiple fields, click Add field and repeat the previous steps.
Optional: In the Labels section, add arbitrary labels as key-value pairs to your resources:
Click Add label.
- In the Key field, enter a key.
- In the Value field, enter a value for the key.
- To add more labels, click Add label and repeat the steps.
Click Save.
gcloud
To create a custom aspect type, use the gcloud dataplex aspect-types
create command.
C#
C#
Before trying this sample, follow the C# setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog C# API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Go
Go
Before trying this sample, follow the Go setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Go API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Java
Java
Before trying this sample, follow the Java setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Java API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Python
Python
Before trying this sample, follow the Python setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Python API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Ruby
Ruby
Before trying this sample, follow the Ruby setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Ruby API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
REST
To create a custom aspect type, use the
aspectType.create
method.
After you create a custom aspect type, you can add aspects to entries.
Example for using the Record ID and Record reference fields
You can use the Record ID and Record reference fields for recursive references. The following example shows how to use these fields:
Consider an aspect type called Employee, with the following fields:
- Name (type:
Text) - Start date (type:
Date & time) - Designation (type:
Text) - Current address (type:
Record) - Permanent address (type:
Record)
The two address fields Current address and Permanent address are of the same
data type Record. To avoid duplication, you can set the Record ID and
Record reference values when defining these fields.
When you define the field Current address, you can specify Record ID as
address-field. For Permanent address, you can specify the same value
(address-field) for Record reference. For example:
- Name (type:
Text) - Start date (type:
Date & time) - Designation (type:
Text) - Current address (type:
Record, Record ID:address-field) - Permanent address (type:
Record, Record reference:address-field)
This way, you don't need to duplicate the fields of another address.
Add aspects to an entry
After you create a custom aspect type, you can create aspects of that type. To add aspects to an entry, you must update the entry, as aspects are stored within entries.
Note the following:
- You can add aspects to an entry or to the columns of an entry.
- You can edit the required aspects only for custom entries. You can't delete the required aspects.
- You can edit and delete the optional aspects for both custom entries and system entries.
Console
- In the Google Cloud console, go to the Dataplex Universal Catalog Search page.
- For Choose search platform, select Dataplex Universal Catalog as the search mode.
- Search for the entry that you want to add aspects to, and click the entry. The entry details page opens.
To add aspects to the entry, follow these steps:
- Click the Details tab.
- To add required aspects or optional aspects to the entry, in the
Tags & aspects section, click
Add for the respective
category.
You can't add required aspects if the entry type of the selected entry has no required aspects defined. - Search for and select the aspect you want to add.
- In the Add aspect window, enter the values for the fields.
Click Save.
To add aspects to a column of the entry, follow these steps:
On the entry details page, click the Schema tab.
Select the columns to which you want to add aspects.
Click Add aspect.
Search for and select the aspect you want to add.
In the Add aspect window, enter the values for the fields.
Click Save.
gcloud
To add aspects to an entry or to a column of an entry, use the gcloud
dataplex entries update
command.
C#
C#
Before trying this sample, follow the C# setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog C# API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
To add aspects to the entry object, see Aspects.
Go
Go
Before trying this sample, follow the Go setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Go API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
To add aspects to the entry object, see Entry.
Java
Before trying this sample, follow the Java setup instructions in the
Dataplex Universal Catalog quickstart using
client libraries.
For more information, see the
Dataplex Universal Catalog Java API
reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials.
For more information, see
Set up authentication for a local development environment.
Java
Python
Before trying this sample, follow the Python setup instructions in the
Dataplex Universal Catalog quickstart using
client libraries.
For more information, see the
Dataplex Universal Catalog Python API
reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials.
For more information, see
Set up authentication for a local development environment.
Python
Ruby
Ruby
Before trying this sample, follow the Ruby setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Ruby API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
To add aspects to the entry object, see #required_aspects=.
REST
To add aspects to an entry or to a column of an entry, use the
entry.patch
method.
Creating and using aspects in an entry where the respective aspect type and the entry are in different Google Cloud organizations isn't supported.
Attach aspects of reusable system aspect types
You can attach aspects of reusable system aspect types to entries.
You can edit an aspect of a reusable aspect type in the Google Cloud console
depending on its structure. Aspect types that contain nested fields are not
supported for editing in Google Cloud console. You must use the gcloud
command-line tool or the REST API to attach or update aspects of this type.
Data quality scorecard
A data quality scorecard is an aspect that provides a summary of data quality,
often based on data quality scans or other processes. You can attach a data
quality scorecard to an entry to provide custom data quality information. To do
so, attach an aspect of the system-defined type data-quality-scorecard.
The data field within the data-quality-scorecard aspect can include the
following fields:
job: Optional. A record containing details about the job that generated the scorecard.name: The resource name of the data quality job.runTime: The run time of the data quality job.
score: Optional. The overall data quality score. The score ranges between [0, 100].status: Required. The status of the data quality scorecard, indicating if it passed or failed the quality threshold (PASSorFAIL).dimensions: Optional. An array of dimension results. Each result includes:name: The name of the dimension. This can be one ofACCURACY,COMPLETENESS,CONSISTENCY,FRESHNESS,UNIQUENESS,VALIDITY, orVOLUME, or a custom dimension name. Custom dimension names must use uppercase letters and be 30 characters or less.score: The overall dimension-level score, ranging from [0, 100].status: The status of the dimension, indicating if it passed or failed the quality threshold (PASSorFAIL).
columns: Optional. An array of column results. Each result includes:name: The name of the column.score: The overall column-level score, ranging from [0, 100].status: The status of the column, indicating if it passed or failed the quality threshold (PASSorFAIL).dimensions: An array of dimension scores for the column. Each dimension score includes:name: The name of the dimension.score: The score for the dimension, ranging from [0, 100].status: The status of the dimension for the column, indicating if it passed or failed the quality threshold (PASSorFAIL).
When you run the command to attach an aspect, it replaces any existing data for
that specific aspect. For example, if you update a scorecard that has a score of
80 with a new file showing a score of 90, the 80 is overwritten. It does
not merge the data.
To attach a data quality scorecard, follow these steps:
gcloud
To update aspects for an entry, use the gcloud dataplex entries
update-aspects
command.
Create a JSON file (
dq-aspect.json) with the following content.{ "dataplex-types.global.data-quality-scorecard": { "data": { "score": 0.8, "status": "PASS", "dimensions": [ { "name": "completeness", "score": 0.9, "status": "PASS" }, { "name": "uniqueness", "score": 0.7, "status": "FAIL" } ], "columns": [ { "name": "col1", "score": 0.85, "status": "PASS" } ] } } } }Run the following command:
gcloud dataplex entries update-aspects ENTRY_ID --location=LOCATION --entry-group=ENTRY_GROUP_ID --project=PROJECT_ID --aspects=dq-aspect.json
Replace the following variables:
ENTRY_ID: the ID of the entry—for example,example-entryLOCATION: the location of the entry—for example,us-central1ENTRY_GROUP_ID: the ID of the entry group—for example,example-entry-groupPROJECT_ID: the ID of the project—for example,example-project
REST
To update aspects for an entry, use the
entry.patch
method.
Create a file named
payload.jsonand paste the JSON content from your request into it.{ "aspects": { "dataplex-types.global.data-quality-scorecard": { "aspectType": "projects/<var>PROJECT_ID</var>/locations/global/aspectTypes/data-quality-scorecard", "data": { "score": 80, "status": "PASS", "dimensions": [ { "name": "completeness", "score": 90, "status": "PASS" }, { "name": "uniqueness", "score": 70, "status": "FAIL" } ], "columns": [ { "name": "col1", "score": 85, "status": "PASS" } ] } } } }Run this command in your terminal:
curl -X PATCH \ -H "Authorization: Bearer $(gcloud auth print-access-token)" \ -H "Content-Type: application/json" \ -d @payload.json \ "https://dataplex.googleapis.com/v1/projects/<var>PROJECT_ID</var>/locations/<var>LOCATION</var>/entryGroups/<var>ENTRY_GROUP_ID</var>/entries/<var>ENTRY_ID</var>?updateMask=aspects"Replace the following:
PROJECT_ID: the ID of the project—for example,example-projectLOCATION: the location of the entry—for example,us-central1ENTRY_GROUP_ID: the ID of the entry group—for example,example-entry-groupENTRY_ID: the ID of the entry—for example,example-entry
Other reusable aspect types
The following system aspect types are also available for use. You can attach
them using the same gcloud or REST API methods as shown for the data quality
scorecard. For aspect types without nested fields, for
example, generic, you can use the console.
Contacts. Use the
contactsaspect type to assign ownership or stewardship. The fields include the following:identities(array): A list of contacts. Each contact includes:role(string): The role of the contact (for example,owner,steward,producer, oradmin).name(string): The name of the contact.id(string): The email address or ID of the contact.
Create the
payload.jsonfile as follows:{ "aspects": { "dataplex-types.global.contacts": { "data": { "identities": [ { "role": "steward", "name": "Jane Doe", "id": "jane.doe@example.com" } ] } } } }Data profile. Use the
data-profileaspect type to capture data profiling results. For more information, see About data profiling. The fields include the following:sourceDataInfo(record): Information about the source data scanned to generate the profile.scope(enum): The scope of the profile (PREVIEW,SAMPLED, orALL).scannedRows(int): The number of rows scanned.samplingPercentage(double): The sampling percentage used.
fields(map): A map of column names to their data profiles, including metrics likeuniqueness,nullness,topNvalues, and type-specific statistics fornumeric,string,datetime, andarraycolumns.
Create the
payload.jsonfile as follows:{ "aspects": { "dataplex-types.global.data-profile": { "data": { "sourceDataInfo": { "scope": "ALL", "scannedRows": 100 }, "fields": { "col1": { "nullness": 0.0, "uniqueness": 0.1, "string": { "length": { "min": 1, "max": 20, "avg": 12.54 } } } } } } }}Generic. Use the
genericaspect type for generic entry information. The fields include the following:type(string): A freeform field to store a user-specified type.system(string): The system of the custom entry.
Create the
payload.jsonfile as follows:{ "aspects": { "dataplex-types.global.generic": { "data": { "type": "custom-type", "system": "custom-system" } } } }Overview. Use the
overviewaspect type to provide a rich text description. The fields include the following:content(string): The entry overview, which supports HTML format.links(array): A list of source system links. Each link includes:url(string): The URL of the link.title(string): The title of the link.
Create the
payload.jsonfile as follows:{ "aspects": { "dataplex-types.global.overview": { "data": { "content": "This is a <b>rich text</b> description.", "links": [ { "url": "https://example.com", "title": "Example Link" } ] } } }}Schema. Use the
schemaaspect type to describe the structure of data.fields(array): A list of schema fields. The fields include the following:name(string): The name of the field.dataType(string): The data type of the field.metadataType(enum): The metadata type (for example,STRING,BOOLEAN).mode(enum): The mode of the field (NULLABLE,REQUIRED,REPEATED).description(string): A description of the field.
Create the
payload.jsonfile as follows:{ "aspects": { "dataplex-types.global.schema": { "data": { "fields": [ { "name": "id", "dataType": "string", "metadataType": "STRING", "mode": "REQUIRED" } ] } } }}Usage. Use the
usageaspect type to track usage metrics. The fields include the following:metrics(array): A list of usage metrics. Each metric includes:name(string): The name of the metric (for example,views,reads).timeSeries(array): A list of time series data. Each item includes:interval(string): The aggregation interval (for example,30d).value(integer): The aggregated value.
refreshTime(datetime): The time when the metrics were last refreshed.
Create the
payload.jsonfile as follows:{ "aspects": { "dataplex-types.global.usage": { "data": { "metrics": [ { "name": "views", "timeSeries": [ { "interval": "30d", "value": 100 } ] } ], "refreshTime": "2025-01-01T12:00:00Z" } } }}
Manage existing aspects for an entry
This section describes how to update and delete the existing aspects for an entry.
Update an aspect
You can edit the optional aspects for both custom entries and system entries. You can edit the required aspects only for custom entries.
Console
- In the Google Cloud console, go to the Dataplex Universal Catalog Search page.
- For Choose search platform, select Dataplex Universal Catalog as the search mode.
- Search for the entry whose aspects you want to update, and click the entry.
The entry details page opens.
1. Click the **Details** tab.
- In the Tags & aspects section, expand the aspect or tag that you want to update, and click Edit.
- In the Edit aspect window, update the required fields.
- Click Save.
gcloud
To update aspects for an entry or a column of an entry, use the gcloud
dataplex entries update
command.
C#
C#
Before trying this sample, follow the C# setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog C# API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Go
Go
Before trying this sample, follow the Go setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Go API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Java
Java
Before trying this sample, follow the Java setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Java API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Python
Python
Before trying this sample, follow the Python setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Python API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Ruby
Ruby
Before trying this sample, follow the Ruby setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Ruby API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
REST
To update aspects for an entry or a column of an entry, use the
entry.patch
method.
Delete an aspect
Console
- In the Google Cloud console, go to the Dataplex Universal Catalog Search page.
- For Choose search platform, select Dataplex Universal Catalog as the search mode.
- Search for the entry whose aspects you want to delete, and click the entry.
The entry details page opens.
1. Click the **Details** tab.
- In the Tags & aspects section, expand the aspect or tag that you want to delete, click Delete.
- Click Confirm.
gcloud
To delete an aspect for an entry, use the gcloud dataplex entries update
command.
C#
C#
Before trying this sample, follow the C# setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog C# API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Go
Go
Before trying this sample, follow the Go setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Go API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Java
Java
Before trying this sample, follow the Java setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Java API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Python
Python
Before trying this sample, follow the Python setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Python API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Ruby
Ruby
Before trying this sample, follow the Ruby setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Ruby API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
REST
To delete an aspect for an entry, use the
entry.patch
method.
Manage aspect types
This section describes how to view aspect types, and update and delete custom aspect types.
View the list of available aspect types and tag templates
Console
- In the Google Cloud console, go to the Dataplex Universal Catalog Catalog page.
- Click the Aspect types & tag templates tab.
This page lists all the available Dataplex Universal Catalog aspect types and Data Catalog tag templates.
- To view custom aspect types and tag templates, click the Custom tab. In the Custom tab, the Catalog source column displays where the resource resides—Dataplex Universal Catalog or Data Catalog.
To view system aspect types, click the System tab.
For more information about custom and system aspect types, see the categories of aspect types section of this document.
- Optional: To view the list of aspect types and tag templates in your selected project, click the Custom tab, and then click the Show from all projects toggle to the off position.
The Show from all projects toggle is on by default, and the list includes Dataplex Universal Catalog resources from your selected organization and Data Catalog resources from all the organizations that you can access.
gcloud
To list all the available aspect types, use the gcloud dataplex
aspect-types list
command.
C#
C#
Before trying this sample, follow the C# setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog C# API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Go
Go
Before trying this sample, follow the Go setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Go API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Java
Java
Before trying this sample, follow the Java setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Java API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Python
Python
Before trying this sample, follow the Python setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Python API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Ruby
Ruby
Before trying this sample, follow the Ruby setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Ruby API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
REST
To list all the available aspect types, use the
aspectTypes.list
method.
View details of an aspect type or tag template
Console
- In the Google Cloud console, go to the Dataplex Universal Catalog Catalog page.
Click the Aspect types & tag templates tab.
To view the details of a Dataplex Universal Catalog aspect type, click the aspect type. The aspect type details page opens, where you can access details, such as display name, aspect type ID, description, project ID, location, labels, creation date, and last modified date.
- To view the structure of the selected aspect type, click the Template tab.
- To view the list of 10 related entries created recently, click the Sample entries tab.
- To search for all related entries, click Show all related entries in Search. This button appears only if there's at least one related entry.
To view the details of a Data Catalog tag template, click the tag template. The tag template details page opens in Data Catalog, where you can access details, such as display name, template ID, project ID, location, visibility, and labels.
gcloud
To get the details of an aspect type, use the gcloud dataplex aspect-types
describe command.
C#
C#
Before trying this sample, follow the C# setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog C# API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Go
Go
Before trying this sample, follow the Go setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Go API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Java
Java
Before trying this sample, follow the Java setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Java API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Python
Python
Before trying this sample, follow the Python setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Python API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Ruby
Ruby
Before trying this sample, follow the Ruby setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Ruby API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
REST
To get the details of an aspect type, use the
aspectTypes.get
method.
Update a custom aspect type
You can update the display name, description, template fields, and labels of a custom aspect type. You can't delete an existing field in a template.
You can't update the aspect type ID and location after you create the aspect type.
Console
- In the Google Cloud console, go to the Dataplex Universal Catalog Catalog page.
- Click the Aspect types & tag templates tab.
- Click the aspect type that you want to update.
- On the Aspect type details page, click Edit.
- Edit the display name, description, template fields, and labels, as required.
Optional: To mark a field in the aspect type as deprecated, follow these steps:
- In the Template section, expand the field.
- Select Is Deprecated.
- In the Deprecation reason field, enter a reason for deprecating the selected field.
Click Done.
Click Save.
gcloud
To update a custom aspect type, use the gcloud dataplex aspect-types
update command.
C#
C#
Before trying this sample, follow the C# setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog C# API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Go
Go
Before trying this sample, follow the Go setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Go API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Java
Java
Before trying this sample, follow the Java setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Java API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Python
Python
Before trying this sample, follow the Python setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Python API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Ruby
Ruby
Before trying this sample, follow the Ruby setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Ruby API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
REST
To update a custom aspect type, use the
aspectTypes.patch
method.
Delete a custom aspect type
Console
- In the Google Cloud console, go to the Dataplex Universal Catalog Catalog page.
- Click the Aspect types & tag templates tab.
- Click the aspect type that you want to delete.
- On the Aspect type details page, click Delete. Confirm when prompted.
gcloud
To delete a custom aspect type, use the gcloud dataplex aspect-types
delete command.
C#
C#
Before trying this sample, follow the C# setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog C# API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Go
Go
Before trying this sample, follow the Go setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Go API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Java
Java
Before trying this sample, follow the Java setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Java API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Python
Python
Before trying this sample, follow the Python setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Python API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Ruby
Ruby
Before trying this sample, follow the Ruby setup instructions in the Dataplex Universal Catalog quickstart using client libraries. For more information, see the Dataplex Universal Catalog Ruby API reference documentation.
To authenticate to Dataplex Universal Catalog, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
REST
To delete an existing custom aspect type, use the
aspectTypes.delete
method.
What's next
- Learn how to search for data assets in Dataplex Universal Catalog.
- Learn how to manage entries and ingest custom sources.
- Learn how to import metadata into Dataplex Universal Catalog.
- Learn more about Metadata management in Dataplex Universal Catalog.
- Learn more about transitioning from Data Catalog to Dataplex Universal Catalog.
- Follow a codelab: foundational governance with Dataplex Universal Catalog.