Method: projects.locations.metadataStores.contexts.queryContextLineageSubgraph

Retrieves Artifacts and Executions within the specified Context, connected by Event edges and returned as a LineageSubgraph.

HTTP request

GET https://{service-endpoint}/v1beta1/{context}:queryContextLineageSubgraph

Where {service-endpoint} is one of the supported service endpoints.

Path parameters

Parameters
context

string

Required. The resource name of the Context whose Artifacts and Executions should be retrieved as a LineageSubgraph. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}

The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the number of Events that would be returned for the Context exceeds 1000.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of LineageSubgraph.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the context resource:

  • aiplatform.contexts.queryContextLineageSubgraph

For more information, see the IAM documentation.