stopDbNode method
Stops the specified DB node in a VM cluster.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter cloudVmClusterId :
The unique identifier of the VM cluster that contains the DB node to stop.
Parameter dbNodeId :
The unique identifier of the DB node to stop.
Implementation
Future<StopDbNodeOutput> stopDbNode({
required String cloudVmClusterId,
required String dbNodeId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'Odb.StopDbNode'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'cloudVmClusterId': cloudVmClusterId,
'dbNodeId': dbNodeId,
},
);
return StopDbNodeOutput.fromJson(jsonResponse.body);
}