testElasticsearchWithHttpInfo method

Future<Response> testElasticsearchWithHttpInfo()

Test Elasticsearch configuration

Test the current Elasticsearch configuration to see if the Elasticsearch server can be contacted successfully. Optionally provide a configuration in the request body to test. If no valid configuration is present in the request body the current server configuration will be tested. Minimum server version: 4.1 ##### Permissions Must have manage_system permission.

Note: This method returns the HTTP Response.

Implementation

Future<Response> testElasticsearchWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/elasticsearch/test';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}