Returns
Returns a list of Dataset objects for the given product.Example
Parameters
string | list[string]
The ID or IDs of the product(s) for which you want to list datasets.
str | int
default:"None"
Filter datasets created at or after this timestamp. Accepts ISO 8601 string (e.g.,
'2024-01-01T00:00:00Z') or Unix timestamp in seconds. Can be used independently or together with to_created_at.str | int
default:"None"
Filter datasets created at or before this timestamp. Accepts ISO 8601 string (e.g.,
'2024-12-31T23:59:59Z') or Unix timestamp in seconds. Can be used independently or together with from_created_at.string
Sort datasets by creation date. Valid values are “asc” and “desc”.
int
default:"0"
Number of datasets to skip before starting to collect results. Use for pagination.Default:
0 (start from the beginning)int
default:"10000"
Maximum number of datasets to return in a single request.Default:
10000string | list[string]
default:"None"
The ID or IDs of the dataset(s) to retrieve.
list[string | DatasetType]
Filter datasets by type. Accepts the new user-facing names (
ACCURACY, SECURITY, BEHAVIOR) and the legacy API names (QUALITY, RED_TEAMING, SCENARIOS).At least one of the 2 filter parameters (
product_id, id) described above must be passed to the method