list_queries
async
¶
list_queries(
workspace_name: WorkspaceName,
*,
config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
filter: Optional[QueryFilter] = None,
max_results: Optional[QueryMaxResults] = None,
next_token: Optional[QueryListNextToken] = None,
) -> ListQueriesResponse
Retrieves a paginated list of queries for a workspace.
Parameters:
-
workspace_name(WorkspaceName) –The name of the workspace to list queries for.
-
filter(Optional[QueryFilter], default:None) –An optional filter to return only queries with the specified status. The value must be one of the supported query statuses: SUBMITTED, RUNNING, COMPLETED, FAILED, CANCELED, or CANCELING.
-
max_results(Optional[QueryMaxResults], default:None) –The maximum number of results to return for each paginated request.
-
next_token(Optional[QueryListNextToken], default:None) –The token to be used for the next set of paginated results.
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
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 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 | |