"Listing Ingested Assets and URNs via SDK and GraphQL in DataHub v0.12.1"

Original Slack Thread

Hello!
Is there any way to list all the ingested assets and their URNs (entities) via SDK or GraphQL? v0.12.1

Hey there! :wave: Make sure your message includes the following information if relevant, so we can help more effectively!

  1. Are you using UI or CLI for ingestion?
  2. Which DataHub version are you using? (e.g. 0.12.0)
  3. What data source(s) are you integrating with DataHub? (e.g. BigQuery)

gql

              search(input: {type: DATASET, 
               query: "*", start: 0, count: 10
              }
              ){
                start
                count
                total
                searchResults {
                  entity {
                    urn
                    ... on Dataset {
                      urn
                      name
                      }
                    }
                  }
                }
            }```

How can I do that using a ingestion source urn? I want to list all the assets from a specific ingestion

you can use to get ingest runs (runId)
datahub ingest list-runs
and use that run id to get more information
datahub ingest show --run-id <run-id>
I’m not sure there is a GQL support to query by runId