getMicrovm method

Future<GetMicrovmResponse> getMicrovm({
  1. required String microvmIdentifier,
})

Retrieves the details of a specific MicroVM, including its state, endpoint, image information, and configuration. The state field is eventually consistent — determine readiness by connecting to the endpoint.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter microvmIdentifier : The ID of the MicroVM to retrieve.

Implementation

Future<GetMicrovmResponse> getMicrovm({
  required String microvmIdentifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/2025-09-09/microvms/${Uri.encodeComponent(microvmIdentifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetMicrovmResponse.fromJson(response);
}