The following table describes the parameters that you enter in the request query:
Parameter
Description
Additional Information
search
Optional. Enter the search term to find a data collection by name or description.
To retrieve details for all the data collections in Data Marketplace, enter an asterisk (*).
Default value is an asterisk (*).
Ensure that the search terms that you enter don't contain an asterisk (*).
offset
Optional. Specify the starting index for the paginated results.
Default value is 0.
limit
Optional. Specify the maximum number of results that are displayed on a page.
Default value is 20.
Maximum value is 200.
segments
Optional. Specify the type of details that you want the API request to return.
Enter one or more of the following values:
- all. Returns all the details about each data collection that is retrieved.
- category. Returns the details about the category that contains a data collection.
- customAttributes. Returns the details about the custom attributes that are configured for a data collection.
- deliveryTargets. Returns the details about the delivery targets that are associated with a data collection.
- stakeholdership. Returns the type of user and role that are assigned as stakeholder on a data collection.
- systemAttributes. Returns the details about a data collection's creation and modification, such as the date when a data collection was created, the latest date when it was modified, and so on.
- termsOfUse. Returns the details about the terms of use that are associated with a data collection.
- usageContexts. Returns the details about the usage types that are associated with a data collection.
By default, the parameter is assigned no value and the API response includes only the basic information about the data collection such as the name, description and so on.
sortby
Optional. Specify the parameters to sort the search results.
Enter one of the following values:
- id
- name
- status
- createdBy
- createdOn
- modifiedBy
- modifiedOn
Default value is modifiedOn.
sortOrder
Optional. Set the sorting order of the search results.
Enter one of the following values:
- To sort the search results by ascending order, enter asc.
- To sort the search results by descending order, enter desc.
Default value is desc.
Note: The API has no payload.
Example request
The following example shows how you can use an API to retrieve the details of all data collections:
https://{{CDMP_URL}}/api/v2/data-collections
Response
When you invoke the API using a REST client, the client displays a response for the parameter values that you have entered.
The following example shows the response of an API call to retrieve the details of all data collections: