In this tutorial, you will learn how to use the REST API to get the total number of assets in a domain.

Steps

  1. Use the GET method and the/domains endpoint to locate the domain Id.
    Example   

    GET https://<your_dgc_environment_url>/rest/2.0/domains?offset=0&limit=0&nameMatchMode=ANYWHERE&excludeMeta=true&includeSubCommunities=false
  2. Copy the domain ID from the response body.
  3. Use the GET method to pass the domain Id you just copied to the /assets endpoint.
    Example   GET https://<your_dgc_environment_url>/rest/2.0/assets?offset=0&limit=0&nameMatchMode=ANYWHERE&domainId=00000000-0000-0000-0000-000000006019&typeInheritance=true&excludeMeta=true&sortField=NAME&sortOrder=ASC

    The total field in the response shows the total number of assets you have access to in the domain.

Additional resources

  • Refer to the REST API documentation provided with your version of Collibra Data Intelligence Cloud.