Back to Genai Toolbox

dataplex-get-run-status

docs/en/integrations/knowledge-catalog/tools/knowledge-catalog-get-run-status.md

1.5.02.6 KB
Original Source

About

A dataplex-get-run-status tool retrieves the execution status of the latest background job run for a specified scan.

Use this tool to poll the progress of the insights, profiling, discovery, or quality scan execution. Wait until the returned state is SUCCEEDED before fetching results. Typical execution takes 2-5 minutes. If the state is FAILED, check the error details.

Compatible Sources

{{< compatible-sources >}}

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][dataplex-docs].

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-get-run-status tool accepts the following parameters:

fieldtyperequireddescription
scanIdstringtrueThe unique ID of the Dataplex scan template (e.g. nq-prof-12345).
locationstringtrueThe Google Cloud region where the scan was created (e.g. us-central1).
jobIdstringfalseOptional. A specific job run ID. If omitted, returns status for the latest job run.

Example

yaml
kind: tool
name: get_run_status
type: dataplex-get-run-status
source: my-dataplex-source
description: Monitor the background execution run of a Dataplex scan.

Reference

fieldtyperequireddescription
typestringtrueMust be "dataplex-get-run-status".
sourcestringtrueName of the source the tool should execute on.
descriptionstringtrueDescription of the tool that is passed to the LLM.