All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
createLogseneApplication | POST /logsene-reports/api/v3/apps | Create Logs App |
AppsResponse createLogseneApplication(body)
Create Logs App
// Import classes:
//import com.sematext.cloud.ApiClient;
//import com.sematext.cloud.ApiException;
//import com.sematext.cloud.Configuration;
//import com.sematext.cloud.auth.*;
//import com.sematext.cloud.client.LogsAppApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
LogsAppApi apiInstance = new LogsAppApi();
CreateAppInfo body = new CreateAppInfo(); // CreateAppInfo | Details of the application to be created
try {
AppsResponse result = apiInstance.createLogseneApplication(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LogsAppApi#createLogseneApplication");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | CreateAppInfo | Details of the application to be created |
- Content-Type: application/json
- Accept: application/json