Get catalog items by type
/api/20210901/catalog/{type}
Request
-
type(required):
Type of catalog item. The content types that this API supports include folders, workbooks, subject areas, analyses, dashboards, dashboard pages, reports, connections, datasets, data flows, sequences, scripts, and semantic models.
-
excludedFields: string
Comma separated list of fields to exclude from response.
-
fields: string
Comma separated list of fields to include in response.
-
limit: integer
Number of catalog items per page.
-
page: integer
Page number.
-
search: string
search string
-
sortBy: string
Sort by criteria.
-
sortOrder: string
Sort order.Allowed Values:
[ "ASC", "DESC" ]
There's no request body for this operation.
Back to TopResponse
- application/json
200 Response
-
object
CatalogItemIdRef
-
object
CatalogItemParentIdNameRef
-
object
Discriminator: type
Discriminator:
{ "propertyName":"type" }
object
-
description: string
Catalog item description, if any
-
lastModified: string
(date-time)
Catalog item last modified date and time
-
owner: string
Catalog item owner
-
type:
type
object
-
name: string
Catalog item name
-
parentId: string
Catalog parent item identifier (if catalog item has a parent)
object
-
type: string
Allowed Values:
[ "workbooks", "folders", "datasets", "connections", "dataflows", "models", "sequences", "subjectAreas", "analysis", "reports", "dashboards", "dashboardpages", "scripts" ]
400 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
401 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
500 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
Examples
These examples show you how to return all catalog items of a given
type
with different search criteria.
- Example 1 - Return workbooks using a wildcard search
- Example 2 - Return workbooks using specific search criteria
- Example 3 - Return a list of items by type
Example 1 - Return workbooks using a wildcard search
In this example, you return a list of all the workbooks in the catalog.
cURL Example:
Run the cURL command with the wildcard search (that is, search=*
):
curl -i --header 'Authorization: Bearer <token>' / --request GET 'https://<hostname>/api/20210901/catalog/workbooks?search=*'
Example of Request Body
Not applicable.
Example of Response Header
The response from the API is paged and details of the pages can be found in the result
headers: oa-current-page
, oa-page-count
,
oa-next-page
If there isn't a next page, the oa-next-page
header isn't returned.
Example of Response Body
Status 200:
[ { "owner": "smith", "name": "Sales Workbook", "description": "Sales forecast 2024", "id": "L3NoYXJlZC9TYWxlcy9TYWxlcyBXb3JrYm9vaw==", "lastModified": "2024-01-01T18:59:16Z", "type": "workbooks", "parentId": "L3NoYXJlZC9TYWxlcw==" } { "owner": "jones", "name": "Product Analysis", "description": "Compare UK product sales", "id": "L3NoYXJlZC9Qcm9kdWN0cy9Qcm9kdWN0IEFuYWx5c2lz", "lastModified": "2024-01-01T18:59:16Z", "type": "workbooks", "parentId": "L3NoYXJlZC9Qcm9kdWN0cw==" } { ... } ]
The id
value is the full path to the catalog object with Base64URL
encoding. You can use this id
value, together with the
type
to obtain details for any catalog object. See Get catalog item details .
Example 2 - Return workbooks using specific search criteria
In this example, you return a list of workbooks with 2024
in the name.
cURL Example:
Run the cURL command with the search string 2024
(that is,
search=2024
):
curl -i --header 'Authorization: Bearer <token>' \ --request GET 'https://<hostname>/api/20210901/catalog/workbooks?search=2024'
Example of Request Body
Not applicable.
Example of Response Body
Status 200:
[ { "owner": "smith", "name": "Sales Workbook", "description": "Sales forecast 2024", "id": "L3NoYXJlZC9TYWxlcy9TYWxlcyBXb3JrYm9vaw==", "lastModified": "2024-01-01T18:59:16Z", "type": "workbooks", "parentId": "L3NoYXJlZC9TYWxlcw==" } ]
Example 3 - Return a list of items by type
The catalog API supports various item types: folders, datasets, connections, data flows, models, sequences, subject areas, analyses, and workbooks.
These examples show the syntax required to return a list of items of each type.
cURL Example:
Run the cURL command with the search wildcard (*) or specific search criteria:
curl -i --header 'Authorization: Bearer <token>' / --request GET 'https://<hostname>/api/20210901/catalog/<itemtype>?search=<criteria>'
Use <itemtype>
to specify the type of item you want to return:
- Folders:
https://<hostname>/api/20210901/catalog/folders?search=*
- Connections:
https://<hostname>/api/20210901/catalog/connections?search=*
- Datasets:
https://<hostname>/api/20210901/catalog/datasets?search=*
- Data flows:
https://<hostname>/api/20210901/catalog/dataflows?search=*
- Sequences:
https://<hostname>/api/20210901/catalog/sequences?search=*
- Semantic models:
https://<hostname>/api/20210901/catalog/models?search=*
- Subject areas:
https://<hostname>/api/20210901/catalog/subjectAreas?search=*
- Analyses:
https://<hostname>/api/20210901/catalog/analysis?search=*
- Workbooks:
https://<hostname>/api/20210901/catalog/workbooks?search=*
Example of Request Body
The response from the API is paged and details of the pages can be found in the result
headers: oa-current-page
, oa-page-count
,
oa-next-page
Example of Response Body
Status 200: [ { "owner": "admin", "name": "Sales", "description": "Folder for sales workbooks", "id": "L3NoYXJlZC9TYWxlcw==", "lastModified": "2024-01-01T18:59:16Z", "type": "folders", "parentId": " L3NoYXJlZA==" } { ... } ]
The id
value is the full path to the catalog object with Base64URL
encoding. You can use this id
value, together with the
type
to obtain details for any catalog object. See Get catalog item details .