terminateMicrovm method
Terminates a MicroVM. This operation is idempotent; terminating a MicroVM that has already been terminated succeeds without error.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter microvmIdentifier :
The ID of the MicroVM to terminate.
Implementation
Future<void> terminateMicrovm({
required String microvmIdentifier,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/2025-09-09/microvms/${Uri.encodeComponent(microvmIdentifier)}',
exceptionFnMap: _exceptionFns,
);
}