get_query_results
async
¶
get_query_results(
workspace_name: WorkspaceName,
query_id: QueryId,
*,
config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
max_results: Optional[QueryMaxResults] = None,
next_token: Optional[QueryNextToken] = None,
) -> GetQueryResultsResponse
Retrieves the paginated results of a query. Returns empty rows if the query is not yet complete.
Parameters:
-
workspace_name(WorkspaceName) –The name of the workspace associated with the query.
-
query_id(QueryId) –The unique identifier for the query execution.
-
max_results(Optional[QueryMaxResults], default:None) –The maximum number of results to return for each paginated request.
-
next_token(Optional[QueryNextToken], 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
6635 6636 6637 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 | |