searchList
Method for querying Logs by List.
/es/logs/list
Usage and SDK Samples
curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"http://keysis.hvlnet.net:8093/es/logs/list"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LogSearchAPIApi;
import java.io.File;
import java.util.*;
public class LogSearchAPIApiExample {
public static void main(String[] args) {
LogSearchAPIApi apiInstance = new LogSearchAPIApi();
HvlLogSearchQueryModel body = ; // HvlLogSearchQueryModel |
try {
HvlResponseListHvlEventLogModel result = apiInstance.searchList(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LogSearchAPIApi#searchList");
e.printStackTrace();
}
}
}
import io.swagger.client.api.LogSearchAPIApi;
public class LogSearchAPIApiExample {
public static void main(String[] args) {
LogSearchAPIApi apiInstance = new LogSearchAPIApi();
HvlLogSearchQueryModel body = ; // HvlLogSearchQueryModel |
try {
HvlResponseListHvlEventLogModel result = apiInstance.searchList(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LogSearchAPIApi#searchList");
e.printStackTrace();
}
}
}
HvlLogSearchQueryModel *body = ; //
LogSearchAPIApi *apiInstance = [[LogSearchAPIApi alloc] init];
// Method for querying Logs by List.
[apiInstance searchListWith:body
completionHandler: ^(HvlResponseListHvlEventLogModel output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var HvlLogSearchServer = require('hvl_log_search_server');
var api = new HvlLogSearchServer.LogSearchAPIApi()
var body = ; // {{HvlLogSearchQueryModel}}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.searchList(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class searchListExample
{
public void main()
{
var apiInstance = new LogSearchAPIApi();
var body = new HvlLogSearchQueryModel(); // HvlLogSearchQueryModel |
try
{
// Method for querying Logs by List.
HvlResponseListHvlEventLogModel result = apiInstance.searchList(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling LogSearchAPIApi.searchList: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiLogSearchAPIApi();
$body = ; // HvlLogSearchQueryModel |
try {
$result = $api_instance->searchList($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LogSearchAPIApi->searchList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LogSearchAPIApi;
my $api_instance = WWW::SwaggerClient::LogSearchAPIApi->new();
my $body = WWW::SwaggerClient::Object::HvlLogSearchQueryModel->new(); # HvlLogSearchQueryModel |
eval {
my $result = $api_instance->searchList(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling LogSearchAPIApi->searchList: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.LogSearchAPIApi()
body = # HvlLogSearchQueryModel |
try:
# Method for querying Logs by List.
api_response = api_instance.search_list(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling LogSearchAPIApi->searchList: %s\n" % e)
Parameters
Body parameters
Name | Description |
---|---|
body * |