list_searches
async
¶
list_searches(
workspace_name: WorkspaceName,
*,
config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
max_results: Optional[ListSearchesRequestMaxResultsInteger] = None,
next_token: Optional[NextToken] = None,
list_searches_filters: Optional[ListSearchesFilters] = None,
) -> ListSearchesResponse
Lists the searches in a workspace, most recently started first. Results can be narrowed with optional filters (status, search type, group, and started-at time range) and are paginated: when nextToken is present, pass it on a subsequent call to retrieve the next page.
Parameters:
-
workspace_name(WorkspaceName) –The name of the workspace whose searches are listed.
-
max_results(Optional[ListSearchesRequestMaxResultsInteger], default:None) –The maximum number of searches to return in a single page. Valid range is 1 to 1,000; if omitted, a service-defined default is used.
-
next_token(Optional[NextToken], default:None) –The pagination token returned by a previous ListSearches call. Provide it to retrieve the next page; omit it to retrieve the first page.
-
list_searches_filters(Optional[ListSearchesFilters], default:None) –Optional filters that restrict which searches are returned.
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
9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 | |