updateSourceServerReplicationType method
Allows you to change between the AGENT_BASED replication type and the SNAPSHOT_SHIPPING replication type.
SNAPSHOT_SHIPPING should be used for agentless replication.
May throw ConflictException.
May throw ResourceNotFoundException.
May throw UninitializedAccountException.
May throw ValidationException.
Parameter replicationType :
Replication type to which to update source server.
Parameter sourceServerID :
ID of source server on which to update replication type.
Parameter accountID :
Account ID on which to update replication type.
Implementation
Future<SourceServer> updateSourceServerReplicationType({
required ReplicationType replicationType,
required String sourceServerID,
String? accountID,
}) async {
final $payload = <String, dynamic>{
'replicationType': replicationType.value,
'sourceServerID': sourceServerID,
if (accountID != null) 'accountID': accountID,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/UpdateSourceServerReplicationType',
exceptionFnMap: _exceptionFns,
);
return SourceServer.fromJson(response);
}