list_tasks
async
¶
list_tasks(
workspace_name: WorkspaceName,
*,
config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[ListTasksRequestMaxResultsInteger] = None,
) -> ListTasksResponse
Lists tasks in a workspace. To get complete details about a task, use DescribeTask.
Parameters:
-
workspace_name(WorkspaceName) –The name of the workspace.
-
next_token(Optional[PaginationToken], default:None) –The token to be used for the next set of paginated results.
-
max_results(Optional[ListTasksRequestMaxResultsInteger], default:None) –The maximum number of results to return for each paginated request. Default: 50.
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
9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 | |