list_queries
¶
list_queries(
workspace_name: WorkspaceName,
*,
config_overrides: Optional[IoTSiteWiseClientConfig] = 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/io_t_site_wise.py
9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 | |