list_searches
¶
list_searches(
workspace_name: WorkspaceName,
*,
config_overrides: Optional[IoTSiteWiseClientConfig] = 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/io_t_site_wise.py
9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 | |