Searches DataItems in a Dataset.
Arguments
Parameters | |
---|---|
dataset |
Required. The resource name of the Dataset from which to search DataItems. Format: |
annotationFilters |
An expression that specifies what Annotations will be returned per DataItem. Annotations satisfied either of the conditions will be returned. * |
annotationsFilter |
An expression for filtering the Annotations that will be returned per DataItem. * |
annotationsLimit |
If set, only up to this many of Annotations will be returned per DataItemView. The maximum value is 1000. If not set, the maximum value will be used. |
dataItemFilter |
An expression for filtering the DataItem that will be returned. * |
dataLabelingJob |
The resource name of a DataLabelingJob. Format: |
fieldMask |
Mask specifying which fields of DataItemView to read. |
orderBy |
A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. |
orderByAnnotation.orderBy |
A comma-separated list of annotation fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Must also specify saved_query. |
orderByAnnotation.savedQuery |
Required. Saved query of the Annotation. Only Annotations belong to this saved query will be considered for ordering. |
orderByDataItem |
A comma-separated list of data item fields to order by, sorted in ascending order. Use "desc" after a field name for descending. |
pageSize |
Requested page size. Server may return fewer results than requested. Default and maximum page size is 100. |
pageToken |
A token identifying a page of results for the server to return Typically obtained via SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems call. |
savedQuery |
The resource name of a SavedQuery(annotation set in UI). Format: |
region |
Required. Region of the HTTP endpoint. For example, if region is set to |
Raised exceptions
Exceptions | |
---|---|
ConnectionError |
In case of a network problem (such as DNS failure or refused connection). |
HttpError |
If the response status is >= 400 (excluding 429 and 503). |
TimeoutError |
If a long-running operation takes longer to finish than the specified timeout limit. |
TypeError |
If an operation or function receives an argument of the wrong type. |
ValueError |
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout. |
Response
If successful, the response contains an instance of GoogleCloudAiplatformV1beta1SearchDataItemsResponse
.
Subworkflow snippet
Some fields might be optional or required. To identify required fields, refer to the API documentation.
YAML
- searchDataItems: call: googleapis.aiplatform.v1beta1.projects.locations.datasets.searchDataItems args: dataset: ... annotationFilters: ... annotationsFilter: ... annotationsLimit: ... dataItemFilter: ... dataLabelingJob: ... fieldMask: ... orderBy: ... orderByAnnotation: orderBy: ... savedQuery: ... orderByDataItem: ... pageSize: ... pageToken: ... savedQuery: ... region: ... result: searchDataItemsResult
JSON
[ { "searchDataItems": { "call": "googleapis.aiplatform.v1beta1.projects.locations.datasets.searchDataItems", "args": { "dataset": "...", "annotationFilters": "...", "annotationsFilter": "...", "annotationsLimit": "...", "dataItemFilter": "...", "dataLabelingJob": "...", "fieldMask": "...", "orderBy": "...", "orderByAnnotation": { "orderBy": "...", "savedQuery": "..." }, "orderByDataItem": "...", "pageSize": "...", "pageToken": "...", "savedQuery": "...", "region": "..." }, "result": "searchDataItemsResult" } } ]