capabilities.work

Cloud Run Completion to Metadata Discovery

A 2-step recipe with dbt. We can help you get access.

Recipe · 2 steps

Cloud Run Completion to Metadata Discovery

with dbt

After a successful run, query the Discovery API for its environment's models.

  1. Read the run and confirm it succeeded. Status 10 indicates the run completed successfully and its metadata is available in the Discovery API.
  2. Query the Discovery API for the models in the run's environment using a GraphQL query whose environmentId variable is bound to the run's environment id.
What you'll need to have ready
  • accountId: The dbt Cloud account id.
  • runId: The id of the run to confirm and trace metadata for.
  • token: The dbt Cloud service token (sent as Authorization Bearer Token).
For your developer

Arazzo workflow dbt:run-metadata-discovery, 2 operations: getRun → executeDiscoveryQuery. Specs on APIs.io.