get_search_results
async
¶
get_search_results(
search_id: SearchId,
workspace_name: WorkspaceName,
*,
config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
max_results: Optional[GetSearchResultsRequestMaxResultsInteger] = None,
next_token: Optional[NextToken] = None,
) -> GetSearchResultsResponse
Retrieves the ranked results of a search, ordered by descending relevance score. Results are available only after the search has reached the SUCCEEDED status. Calling this on a search that exists but has not yet completed returns InvalidRequestException, while calling it on a search that does not exist returns ResourceNotFoundException. The response is paginated: when nextToken is present, pass it on a subsequent call to retrieve the next page.
Parameters:
-
search_id(SearchId) –The identifier of the search whose results are retrieved.
-
workspace_name(WorkspaceName) –The name of the workspace the search belongs to.
-
max_results(Optional[GetSearchResultsRequestMaxResultsInteger], default:None) –The maximum number of results to return in a single page. Valid range is 1 to 10,000; if omitted, a service-defined default is used.
-
next_token(Optional[NextToken], default:None) –The pagination token returned by a previous GetSearchResults call. Provide it to retrieve the next page of results; omit it to retrieve the first page.
Raises:
-
AccessDeniedException–Access is denied.
-
InternalFailureException–IoT SiteWise can't process your request right now. Try again later.
-
InvalidRequestException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.
-
ResourceNotFoundException–The requested resource can't be found.
-
ThrottlingException–Your request exceeded a rate limit. For example, you might have exceeded the number of IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.
For more information, see Quotas in the IoT SiteWise User Guide.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iotsitewise/_services/async_io_t_site_wise.py
6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 | |