get_search_results
¶
get_search_results(
search_id: SearchId,
workspace_name: WorkspaceName,
*,
config_overrides: Optional[IoTSiteWiseClientConfig] = 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/io_t_site_wise.py
6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 | |