importServerCatalog method

Future<void> importServerCatalog()

Gathers a complete list of on-premises servers. Connectors must be installed and monitoring all servers to import.

This call returns immediately, but might take additional time to retrieve all the servers.

May throw UnauthorizedOperationException. May throw OperationNotPermittedException. May throw InvalidParameterException. May throw MissingRequiredParameterException. May throw NoConnectorsAvailableException.

Implementation

Future<void> importServerCatalog() async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'AWSServerMigrationService_V2016_10_24.ImportServerCatalog'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
  );
}