startTest method

Future<StartTestResponse> startTest({
  1. required List<String> sourceServerIDs,
  2. String? accountID,
  3. Map<String, String>? tags,
})

Launches a Test Instance for specific Source Servers. This command starts a LAUNCH job whose initiatedBy property is StartTest and changes the SourceServer.lifeCycle.state property to TESTING.

May throw ConflictException. May throw UninitializedAccountException. May throw ValidationException.

Parameter sourceServerIDs : Start Test for Source Server IDs.

Parameter accountID : Start Test for Account ID.

Parameter tags : Start Test by Tags.

Implementation

Future<StartTestResponse> startTest({
  required List<String> sourceServerIDs,
  String? accountID,
  Map<String, String>? tags,
}) async {
  final $payload = <String, dynamic>{
    'sourceServerIDs': sourceServerIDs,
    if (accountID != null) 'accountID': accountID,
    if (tags != null) 'tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/StartTest',
    exceptionFnMap: _exceptionFns,
  );
  return StartTestResponse.fromJson(response);
}