listMicrovmImages method
Lists MicroVM images in the account with optional name filtering. We recommend using pagination to ensure that the operation returns quickly and successfully.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter maxResults :
The maximum number of results to return in a single call.
Parameter nameFilter :
Filters images whose name contains the specified string.
Parameter nextToken :
The pagination token from a previous call. Use this token to retrieve the
next page of results.
Implementation
Future<ListMicrovmImagesResponse> listMicrovmImages({
int? maxResults,
String? nameFilter,
String? nextToken,
}) async {
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nameFilter != null) 'nameFilter': [nameFilter],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/2025-09-09/microvm-images',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListMicrovmImagesResponse.fromJson(response);
}