rebootAutonomousDatabase method
Reboots the specified Autonomous Database.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter autonomousDatabaseId :
The unique identifier of the Autonomous Database to reboot.
Parameter isOnlineReboot :
Specifies whether to perform an online reboot of the Autonomous Database
without interrupting active connections.
Implementation
Future<RebootAutonomousDatabaseOutput> rebootAutonomousDatabase({
required String autonomousDatabaseId,
bool? isOnlineReboot,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'Odb.RebootAutonomousDatabase'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'autonomousDatabaseId': autonomousDatabaseId,
if (isOnlineReboot != null) 'isOnlineReboot': isOnlineReboot,
},
);
return RebootAutonomousDatabaseOutput.fromJson(jsonResponse.body);
}