dataplex-update-data-product-aspects

A “dataplex-update-data-product-aspects” tool updates aspects for an existing Data Product Entry in Knowledge Catalog.

About

A dataplex-update-data-product-aspects tool updates aspects on an existing Data Product Entry in Knowledge Catalog (formerly known as Dataplex). This tool operates on the catalog entry associated with the Data Product, allowing you to add or modify metadata aspects in a single request.

View the Data Products guide for more information.

Compatible Sources

This tool can be used with the following database sources:

Source Name
Knowledge Catalog (formerly known as Dataplex) Source

Requirements

IAM Permissions

Knowledge Catalog uses Identity and Access Management (IAM) to control user and group access to Knowledge Catalog resources. Toolbox will use your Application Default Credentials (ADC) to authorize and authenticate when interacting with Knowledge Catalog.

In addition to setting the ADC for your server, you need to ensure the IAM identity has been given the correct IAM permissions for the tasks you intend to perform. See Knowledge Catalog IAM permissions and Knowledge Catalog IAM roles for more information on applying IAM permissions and roles to an identity.

Parameters

The dataplex-update-data-product-aspects tool accepts the following parameters:

fieldtyperequireddescription
locationIdstringtrueThe location ID (e.g. us, us-central1) of the Data Product.
dataProductIdstringtrueThe unique ID of the Data Product.
aspectsarray of objectstrueThe list of aspects to add or update on the Data Product Entry. Each object contains projectId (string, required), locationId (string, required), aspectTypeId (string, required), and data (object, optional, JSON map of the aspect details).

Aspect Object Fields

Each object in the aspects array must have the following fields:

  • projectId: The project ID of the aspect type. The value is "dataplex-types" for system aspects (like overview and refresh-cadence).
  • locationId: The location of the aspect type. The value is "global" for system aspects (like overview and refresh-cadence).
  • aspectTypeId: The unique name of the aspect type (e.g. "overview" or "refresh-cadence").
  • data: The JSON payload conforming to the aspect type’s schema:
    • System overview (Documentation) Schema:
      • content (string, required): The detailed documentation content (markdown or plain text).
      • contentType (string, optional): The content type format. Values: MARKDOWN, HTML.
      • links (array of objects, optional): List of relevant URL links. Each link object contains url (string, required) and title (string, optional).
    • System refresh-cadence (Contract) Schema:
      • frequency (string, required): How often the data is updated. Values: Daily, Weekly, Monthly, Quarterly, Half-Yearly, Yearly.
      • refreshTime (string, optional): Time of day when the data is updated (e.g. "09:00 PST").
      • thresholdInMinutes (int, optional): Delinquency threshold in minutes (e.g. 15).
      • cronSchedule (string, optional): Optional cron schedule expression (e.g. "0 * * * *").

Example

kind: tool
name: update_data_product_aspects
type: dataplex-update-data-product-aspects
source: my-dataplex-source
description: Use this tool to update aspects (like overview or contacts) on a Data Product Entry.

Output Format

The tool returns the updated catalog entry details and aspects:

{
  "locationId": "us",
  "dataProductId": "my-data-product",
  "entrySource": {
    "resource": "projects/...",
    "displayName": "My Data Product Resource",
    "description": "Resource details"
  },
  "entryType": "projects/dataplex-types/locations/global/entryTypes/data-product",
  "aspects": [
    {
      "projectId": "dataplex-types",
      "locationId": "global",
      "aspectTypeId": "overview",
      "data": {
        "content": "Updated description content"
      }
    }
  ]
}

Reference

fieldtyperequireddescription
typestringtrueMust be “dataplex-update-data-product-aspects”.
sourcestringtrueName of the source the tool should execute on.
descriptionstringtrueDescription of the tool that is passed to the LLM.