list_monitors
async
¶
list_monitors(
*,
config_overrides: Optional[AsyncNetworkMonitorClientConfig] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[MaxResults] = None,
state: Optional[str] = None,
) -> ListMonitorsOutput
Returns a list of all of your monitors.
Parameters:
-
next_token(Optional[PaginationToken], default:None) –The token for the next page of results.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned
nextTokenvalue.If
MaxResultsis given a value larger than 100, only 100 results are returned. -
state(Optional[str], default:None) –The list of all monitors and their states.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ThrottlingException–The request was denied due to request throttling
-
ValidationException–One of the parameters for the request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.