LogicMonitor REST API

LM

ackAlertById

ack alert by id


/alert/alerts/{id}/ack

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/alert/alerts/{id}/ack"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        AlertAck body = ; // AlertAck | 
        String id = id_example; // String | 
        try {
            Object result = apiInstance.ackAlertById(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#ackAlertById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        AlertAck body = ; // AlertAck | 
        String id = id_example; // String | 
        try {
            Object result = apiInstance.ackAlertById(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#ackAlertById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

AlertAck *body = ; // 
String *id = id_example; // 

LMApi *apiInstance = [[LMApi alloc] init];

// ack alert by id
[apiInstance ackAlertByIdWith:body
    id:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {AlertAck} 

var id = id_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.ackAlertById(body, id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class ackAlertByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new AlertAck(); // AlertAck | 
            var id = id_example;  // String | 

            try
            {
                // ack alert by id
                Object result = apiInstance.ackAlertById(body, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.ackAlertById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // AlertAck | 
$id = id_example; // String | 

try {
    $result = $api_instance->ackAlertById($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->ackAlertById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::AlertAck->new(); # AlertAck | 
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->ackAlertById(body => $body, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->ackAlertById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # ack alert by id api_response = api_instance.ack_alert_by_id(body, id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->ackAlertById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAckAlertByIDParams()
    
// ack alert by id resp, err := client.LM.AckAlertByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.AckAlertByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


ackCollectorDownAlertById

ack collector down alert


/setting/collector/collectors/{id}/ackdown

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/collector/collectors/{id}/ackdown"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        AckCollectorDown body = ; // AckCollectorDown | 
        try {
            Object result = apiInstance.ackCollectorDownAlertById(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#ackCollectorDownAlertById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        AckCollectorDown body = ; // AckCollectorDown | 
        try {
            Object result = apiInstance.ackCollectorDownAlertById(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#ackCollectorDownAlertById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
AckCollectorDown *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// ack collector down alert
[apiInstance ackCollectorDownAlertByIdWith:id
    body:body
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var body = ; // {AckCollectorDown} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.ackCollectorDownAlertById(id, body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class ackCollectorDownAlertByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var body = new AckCollectorDown(); // AckCollectorDown | 

            try
            {
                // ack collector down alert
                Object result = apiInstance.ackCollectorDownAlertById(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.ackCollectorDownAlertById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$body = ; // AckCollectorDown | 

try {
    $result = $api_instance->ackCollectorDownAlertById($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->ackCollectorDownAlertById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $body = WWW::SwaggerClient::Object::AckCollectorDown->new(); # AckCollectorDown | 

eval { 
    my $result = $api_instance->ackCollectorDownAlertById(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->ackCollectorDownAlertById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # ack collector down alert api_response = api_instance.ack_collector_down_alert_by_id(id, body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->ackCollectorDownAlertById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAckCollectorDownAlertByIDParams()
    
// ack collector down alert resp, err := client.LM.AckCollectorDownAlertByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.AckCollectorDownAlertByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addAdmin

add user


/setting/admins

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/admins"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Admin body = ; // Admin | 
        try {
            Admin result = apiInstance.addAdmin(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addAdmin");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Admin body = ; // Admin | 
        try {
            Admin result = apiInstance.addAdmin(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addAdmin");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Admin *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add user
[apiInstance addAdminWith:body
              completionHandler: ^(Admin output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {Admin} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addAdmin(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addAdminExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new Admin(); // Admin | 

            try
            {
                // add user
                Admin result = apiInstance.addAdmin(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addAdmin: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // Admin | 

try {
    $result = $api_instance->addAdmin($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addAdmin: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::Admin->new(); # Admin | 

eval { 
    my $result = $api_instance->addAdmin(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addAdmin: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add user api_response = api_instance.add_admin(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addAdmin: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddAdminParams()
    
// add user resp, err := client.LM.AddAdmin(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddAdmin: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addAlertNoteById

add alert note


/alert/alerts/{id}/note

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/alert/alerts/{id}/note"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        AlertAck body = ; // AlertAck | 
        String id = id_example; // String | 
        try {
            Object result = apiInstance.addAlertNoteById(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addAlertNoteById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        AlertAck body = ; // AlertAck | 
        String id = id_example; // String | 
        try {
            Object result = apiInstance.addAlertNoteById(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addAlertNoteById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

AlertAck *body = ; // 
String *id = id_example; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add alert note
[apiInstance addAlertNoteByIdWith:body
    id:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {AlertAck} 

var id = id_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addAlertNoteById(body, id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addAlertNoteByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new AlertAck(); // AlertAck | 
            var id = id_example;  // String | 

            try
            {
                // add alert note
                Object result = apiInstance.addAlertNoteById(body, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addAlertNoteById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // AlertAck | 
$id = id_example; // String | 

try {
    $result = $api_instance->addAlertNoteById($body, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addAlertNoteById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::AlertAck->new(); # AlertAck | 
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->addAlertNoteById(body => $body, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addAlertNoteById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add alert note api_response = api_instance.add_alert_note_by_id(body, id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addAlertNoteById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddAlertNoteByIDParams()
    
// add alert note resp, err := client.LM.AddAlertNoteByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddAlertNoteByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addAlertRule

add alert rule


/setting/alert/rules

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/alert/rules"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        AlertRule body = ; // AlertRule | 
        try {
            AlertRule result = apiInstance.addAlertRule(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addAlertRule");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        AlertRule body = ; // AlertRule | 
        try {
            AlertRule result = apiInstance.addAlertRule(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addAlertRule");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

AlertRule *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add alert rule
[apiInstance addAlertRuleWith:body
              completionHandler: ^(AlertRule output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {AlertRule} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addAlertRule(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addAlertRuleExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new AlertRule(); // AlertRule | 

            try
            {
                // add alert rule
                AlertRule result = apiInstance.addAlertRule(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addAlertRule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // AlertRule | 

try {
    $result = $api_instance->addAlertRule($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addAlertRule: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::AlertRule->new(); # AlertRule | 

eval { 
    my $result = $api_instance->addAlertRule(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addAlertRule: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add alert rule api_response = api_instance.add_alert_rule(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addAlertRule: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddAlertRuleParams()
    
// add alert rule resp, err := client.LM.AddAlertRule(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddAlertRule: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addApiTokenByAdminId

add api tokens for a user


/setting/admins/{adminId}/apitokens

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/admins/{adminId}/apitokens?type="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer adminId = 56; // Integer | 
        APIToken body = ; // APIToken | 
        String type = type_example; // String | 
        try {
            APIToken result = apiInstance.addApiTokenByAdminId(adminId, body, type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addApiTokenByAdminId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer adminId = 56; // Integer | 
        APIToken body = ; // APIToken | 
        String type = type_example; // String | 
        try {
            APIToken result = apiInstance.addApiTokenByAdminId(adminId, body, type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addApiTokenByAdminId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *adminId = 56; // 
APIToken *body = ; // 
String *type = type_example; //  (optional) (default to API Token)

LMApi *apiInstance = [[LMApi alloc] init];

// add api tokens for a user
[apiInstance addApiTokenByAdminIdWith:adminId
    body:body
    type:type
              completionHandler: ^(APIToken output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var adminId = 56; // {Integer} 

var body = ; // {APIToken} 

var opts = { 
  'type': type_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addApiTokenByAdminId(adminId, body, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addApiTokenByAdminIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var adminId = 56;  // Integer | 
            var body = new APIToken(); // APIToken | 
            var type = type_example;  // String |  (optional)  (default to API Token)

            try
            {
                // add api tokens for a user
                APIToken result = apiInstance.addApiTokenByAdminId(adminId, body, type);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addApiTokenByAdminId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$adminId = 56; // Integer | 
$body = ; // APIToken | 
$type = type_example; // String | 

try {
    $result = $api_instance->addApiTokenByAdminId($adminId, $body, $type);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addApiTokenByAdminId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $adminId = 56; # Integer | 
my $body = WWW::SwaggerClient::Object::APIToken->new(); # APIToken | 
my $type = type_example; # String | 

eval { 
    my $result = $api_instance->addApiTokenByAdminId(adminId => $adminId, body => $body, type => $type);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addApiTokenByAdminId: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add api tokens for a user api_response = api_instance.add_api_token_by_admin_id(adminId, body, type=type) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addApiTokenByAdminId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddAPITokenByAdminIDParams()
    
// add api tokens for a user resp, err := client.LM.AddAPITokenByAdminID(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddAPITokenByAdminID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
adminId*
Integer (int32)
Required
Body parameters
Name Description
body *
Query parameters
Name Description
type
String

Responses

Status: 200 - successful operation

Status: default - Error


addAppliesToFunction

add applies to function


/setting/functions

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/functions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        AppliesToFunction body = ; // AppliesToFunction | 
        try {
            AppliesToFunction result = apiInstance.addAppliesToFunction(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addAppliesToFunction");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        AppliesToFunction body = ; // AppliesToFunction | 
        try {
            AppliesToFunction result = apiInstance.addAppliesToFunction(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addAppliesToFunction");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

AppliesToFunction *body = ; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// add applies to function
[apiInstance addAppliesToFunctionWith:body
              completionHandler: ^(AppliesToFunction output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'body':  // {AppliesToFunction} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addAppliesToFunction(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addAppliesToFunctionExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new AppliesToFunction(); // AppliesToFunction |  (optional) 

            try
            {
                // add applies to function
                AppliesToFunction result = apiInstance.addAppliesToFunction(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addAppliesToFunction: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // AppliesToFunction | 

try {
    $result = $api_instance->addAppliesToFunction($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addAppliesToFunction: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::AppliesToFunction->new(); # AppliesToFunction | 

eval { 
    my $result = $api_instance->addAppliesToFunction(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addAppliesToFunction: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add applies to function api_response = api_instance.add_applies_to_function(body=body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addAppliesToFunction: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddAppliesToFunctionParams()
    
// add applies to function resp, err := client.LM.AddAppliesToFunction(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddAppliesToFunction: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - successful operation

Status: default - Error


addCollector

add collector


/setting/collector/collectors

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/collector/collectors"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Collector body = ; // Collector | 
        try {
            Collector result = apiInstance.addCollector(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addCollector");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Collector body = ; // Collector | 
        try {
            Collector result = apiInstance.addCollector(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addCollector");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Collector *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add collector
[apiInstance addCollectorWith:body
              completionHandler: ^(Collector output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {Collector} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addCollector(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addCollectorExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new Collector(); // Collector | 

            try
            {
                // add collector
                Collector result = apiInstance.addCollector(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addCollector: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // Collector | 

try {
    $result = $api_instance->addCollector($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addCollector: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::Collector->new(); # Collector | 

eval { 
    my $result = $api_instance->addCollector(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addCollector: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add collector api_response = api_instance.add_collector(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addCollector: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddCollectorParams()
    
// add collector resp, err := client.LM.AddCollector(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddCollector: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addCollectorGroup

add collector group


/setting/collector/groups

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/collector/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        CollectorGroup body = ; // CollectorGroup | 
        try {
            CollectorGroup result = apiInstance.addCollectorGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addCollectorGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        CollectorGroup body = ; // CollectorGroup | 
        try {
            CollectorGroup result = apiInstance.addCollectorGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addCollectorGroup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

CollectorGroup *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add collector group
[apiInstance addCollectorGroupWith:body
              completionHandler: ^(CollectorGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {CollectorGroup} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addCollectorGroup(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addCollectorGroupExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new CollectorGroup(); // CollectorGroup | 

            try
            {
                // add collector group
                CollectorGroup result = apiInstance.addCollectorGroup(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addCollectorGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // CollectorGroup | 

try {
    $result = $api_instance->addCollectorGroup($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addCollectorGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::CollectorGroup->new(); # CollectorGroup | 

eval { 
    my $result = $api_instance->addCollectorGroup(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addCollectorGroup: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add collector group api_response = api_instance.add_collector_group(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addCollectorGroup: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddCollectorGroupParams()
    
// add collector group resp, err := client.LM.AddCollectorGroup(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddCollectorGroup: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addDashboard

add dashboard


/dashboard/dashboards

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/dashboard/dashboards"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Dashboard body = ; // Dashboard | 
        try {
            Dashboard result = apiInstance.addDashboard(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDashboard");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Dashboard body = ; // Dashboard | 
        try {
            Dashboard result = apiInstance.addDashboard(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDashboard");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Dashboard *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add dashboard
[apiInstance addDashboardWith:body
              completionHandler: ^(Dashboard output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {Dashboard} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addDashboard(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addDashboardExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new Dashboard(); // Dashboard | 

            try
            {
                // add dashboard
                Dashboard result = apiInstance.addDashboard(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addDashboard: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // Dashboard | 

try {
    $result = $api_instance->addDashboard($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addDashboard: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::Dashboard->new(); # Dashboard | 

eval { 
    my $result = $api_instance->addDashboard(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addDashboard: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add dashboard api_response = api_instance.add_dashboard(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addDashboard: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddDashboardParams()
    
// add dashboard resp, err := client.LM.AddDashboard(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddDashboard: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addDashboardGroup

add dashboard group


/dashboard/groups

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/dashboard/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        DashboardGroup body = ; // DashboardGroup | 
        try {
            DashboardGroup result = apiInstance.addDashboardGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDashboardGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        DashboardGroup body = ; // DashboardGroup | 
        try {
            DashboardGroup result = apiInstance.addDashboardGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDashboardGroup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

DashboardGroup *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add dashboard group
[apiInstance addDashboardGroupWith:body
              completionHandler: ^(DashboardGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {DashboardGroup} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addDashboardGroup(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addDashboardGroupExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new DashboardGroup(); // DashboardGroup | 

            try
            {
                // add dashboard group
                DashboardGroup result = apiInstance.addDashboardGroup(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addDashboardGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // DashboardGroup | 

try {
    $result = $api_instance->addDashboardGroup($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addDashboardGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::DashboardGroup->new(); # DashboardGroup | 

eval { 
    my $result = $api_instance->addDashboardGroup(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addDashboardGroup: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add dashboard group api_response = api_instance.add_dashboard_group(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addDashboardGroup: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddDashboardGroupParams()
    
// add dashboard group resp, err := client.LM.AddDashboardGroup(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddDashboardGroup: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addDevice

add a new device


/device/devices

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices?start=&end=&netflowFilter=&addFromWizard="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Device body = ; // Device | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        Boolean addFromWizard = true; // Boolean | 
        try {
            Device result = apiInstance.addDevice(body, start, end, netflowFilter, addFromWizard);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDevice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Device body = ; // Device | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        Boolean addFromWizard = true; // Boolean | 
        try {
            Device result = apiInstance.addDevice(body, start, end, netflowFilter, addFromWizard);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDevice");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Device *body = ; // 
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *netflowFilter = netflowFilter_example; //  (optional)
Boolean *addFromWizard = true; //  (optional) (default to false)

LMApi *apiInstance = [[LMApi alloc] init];

// add a new device
[apiInstance addDeviceWith:body
    start:start
    end:end
    netflowFilter:netflowFilter
    addFromWizard:addFromWizard
              completionHandler: ^(Device output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {Device} 

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'netflowFilter': netflowFilter_example, // {String} 
  'addFromWizard': true // {Boolean} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addDevice(body, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addDeviceExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new Device(); // Device | 
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var netflowFilter = netflowFilter_example;  // String |  (optional) 
            var addFromWizard = true;  // Boolean |  (optional)  (default to false)

            try
            {
                // add a new device
                Device result = apiInstance.addDevice(body, start, end, netflowFilter, addFromWizard);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addDevice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // Device | 
$start = 789; // Long | 
$end = 789; // Long | 
$netflowFilter = netflowFilter_example; // String | 
$addFromWizard = true; // Boolean | 

try {
    $result = $api_instance->addDevice($body, $start, $end, $netflowFilter, $addFromWizard);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addDevice: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::Device->new(); # Device | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $netflowFilter = netflowFilter_example; # String | 
my $addFromWizard = true; # Boolean | 

eval { 
    my $result = $api_instance->addDevice(body => $body, start => $start, end => $end, netflowFilter => $netflowFilter, addFromWizard => $addFromWizard);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addDevice: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add a new device api_response = api_instance.add_device(body, start=start, end=end, netflowFilter=netflowFilter, addFromWizard=addFromWizard) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addDevice: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddDeviceParams()
    
// add a new device resp, err := client.LM.AddDevice(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddDevice: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *
Query parameters
Name Description
start
Long (int64)
end
Long (int64)
netflowFilter
String
addFromWizard
Boolean

Responses

Status: 200 - successful operation

Status: default - Error


addDeviceDatasourceInstance

add device instance


/device/devices/{deviceId}/devicedatasources/{hdsId}/instances

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{hdsId}/instances"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        DeviceDataSourceInstance body = ; // DeviceDataSourceInstance | 
        try {
            DeviceDataSourceInstance result = apiInstance.addDeviceDatasourceInstance(deviceId, hdsId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDeviceDatasourceInstance");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        DeviceDataSourceInstance body = ; // DeviceDataSourceInstance | 
        try {
            DeviceDataSourceInstance result = apiInstance.addDeviceDatasourceInstance(deviceId, hdsId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDeviceDatasourceInstance");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *hdsId = 56; // The device-datasource ID
DeviceDataSourceInstance *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add device instance 
[apiInstance addDeviceDatasourceInstanceWith:deviceId
    hdsId:hdsId
    body:body
              completionHandler: ^(DeviceDataSourceInstance output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var hdsId = 56; // {Integer} The device-datasource ID

var body = ; // {DeviceDataSourceInstance} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addDeviceDatasourceInstance(deviceId, hdsId, body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addDeviceDatasourceInstanceExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var hdsId = 56;  // Integer | The device-datasource ID
            var body = new DeviceDataSourceInstance(); // DeviceDataSourceInstance | 

            try
            {
                // add device instance 
                DeviceDataSourceInstance result = apiInstance.addDeviceDatasourceInstance(deviceId, hdsId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addDeviceDatasourceInstance: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$hdsId = 56; // Integer | The device-datasource ID
$body = ; // DeviceDataSourceInstance | 

try {
    $result = $api_instance->addDeviceDatasourceInstance($deviceId, $hdsId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addDeviceDatasourceInstance: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $hdsId = 56; # Integer | The device-datasource ID
my $body = WWW::SwaggerClient::Object::DeviceDataSourceInstance->new(); # DeviceDataSourceInstance | 

eval { 
    my $result = $api_instance->addDeviceDatasourceInstance(deviceId => $deviceId, hdsId => $hdsId, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addDeviceDatasourceInstance: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add device instance api_response = api_instance.add_device_datasource_instance(deviceId, hdsId, body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addDeviceDatasourceInstance: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddDeviceDatasourceInstanceParams()
    
// add device instance resp, err := client.LM.AddDeviceDatasourceInstance(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddDeviceDatasourceInstance: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
hdsId*
Integer (int32)
The device-datasource ID
Required
Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addDeviceDatasourceInstanceGroup

add device datasource instance group


/device/devices/{deviceId}/devicedatasources/{deviceDsId}/groups

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{deviceDsId}/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer deviceDsId = 56; // Integer | The device-datasource ID you'd like to add an instance group for
        DeviceDataSourceInstanceGroup body = ; // DeviceDataSourceInstanceGroup | 
        try {
            DeviceDataSourceInstanceGroup result = apiInstance.addDeviceDatasourceInstanceGroup(deviceId, deviceDsId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDeviceDatasourceInstanceGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer deviceDsId = 56; // Integer | The device-datasource ID you'd like to add an instance group for
        DeviceDataSourceInstanceGroup body = ; // DeviceDataSourceInstanceGroup | 
        try {
            DeviceDataSourceInstanceGroup result = apiInstance.addDeviceDatasourceInstanceGroup(deviceId, deviceDsId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDeviceDatasourceInstanceGroup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *deviceDsId = 56; // The device-datasource ID you'd like to add an instance group for
DeviceDataSourceInstanceGroup *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add device datasource instance group 
[apiInstance addDeviceDatasourceInstanceGroupWith:deviceId
    deviceDsId:deviceDsId
    body:body
              completionHandler: ^(DeviceDataSourceInstanceGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var deviceDsId = 56; // {Integer} The device-datasource ID you'd like to add an instance group for

var body = ; // {DeviceDataSourceInstanceGroup} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addDeviceDatasourceInstanceGroup(deviceId, deviceDsId, body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addDeviceDatasourceInstanceGroupExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var deviceDsId = 56;  // Integer | The device-datasource ID you'd like to add an instance group for
            var body = new DeviceDataSourceInstanceGroup(); // DeviceDataSourceInstanceGroup | 

            try
            {
                // add device datasource instance group 
                DeviceDataSourceInstanceGroup result = apiInstance.addDeviceDatasourceInstanceGroup(deviceId, deviceDsId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addDeviceDatasourceInstanceGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$deviceDsId = 56; // Integer | The device-datasource ID you'd like to add an instance group for
$body = ; // DeviceDataSourceInstanceGroup | 

try {
    $result = $api_instance->addDeviceDatasourceInstanceGroup($deviceId, $deviceDsId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addDeviceDatasourceInstanceGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $deviceDsId = 56; # Integer | The device-datasource ID you'd like to add an instance group for
my $body = WWW::SwaggerClient::Object::DeviceDataSourceInstanceGroup->new(); # DeviceDataSourceInstanceGroup | 

eval { 
    my $result = $api_instance->addDeviceDatasourceInstanceGroup(deviceId => $deviceId, deviceDsId => $deviceDsId, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addDeviceDatasourceInstanceGroup: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add device datasource instance group api_response = api_instance.add_device_datasource_instance_group(deviceId, deviceDsId, body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addDeviceDatasourceInstanceGroup: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddDeviceDatasourceInstanceGroupParams()
    
// add device datasource instance group resp, err := client.LM.AddDeviceDatasourceInstanceGroup(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddDeviceDatasourceInstanceGroup: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
deviceDsId*
Integer (int32)
The device-datasource ID you'd like to add an instance group for
Required
Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addDeviceGroup

add device group


/device/groups

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        DeviceGroup body = ; // DeviceGroup | 
        try {
            DeviceGroup result = apiInstance.addDeviceGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDeviceGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        DeviceGroup body = ; // DeviceGroup | 
        try {
            DeviceGroup result = apiInstance.addDeviceGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDeviceGroup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

DeviceGroup *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add device group
[apiInstance addDeviceGroupWith:body
              completionHandler: ^(DeviceGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {DeviceGroup} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addDeviceGroup(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addDeviceGroupExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new DeviceGroup(); // DeviceGroup | 

            try
            {
                // add device group
                DeviceGroup result = apiInstance.addDeviceGroup(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addDeviceGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // DeviceGroup | 

try {
    $result = $api_instance->addDeviceGroup($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addDeviceGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::DeviceGroup->new(); # DeviceGroup | 

eval { 
    my $result = $api_instance->addDeviceGroup(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addDeviceGroup: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add device group api_response = api_instance.add_device_group(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addDeviceGroup: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddDeviceGroupParams()
    
// add device group resp, err := client.LM.AddDeviceGroup(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddDeviceGroup: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addDeviceGroupClusterAlertConf

Add cluster alert configuration


/device/groups/{deviceGroupId}/clusterAlertConf

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{deviceGroupId}/clusterAlertConf"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        DeviceClusterAlertConfig body = ; // DeviceClusterAlertConfig | 
        try {
            DeviceClusterAlertConfig result = apiInstance.addDeviceGroupClusterAlertConf(deviceGroupId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDeviceGroupClusterAlertConf");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        DeviceClusterAlertConfig body = ; // DeviceClusterAlertConfig | 
        try {
            DeviceClusterAlertConfig result = apiInstance.addDeviceGroupClusterAlertConf(deviceGroupId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDeviceGroupClusterAlertConf");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceGroupId = 56; // 
DeviceClusterAlertConfig *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// Add cluster alert configuration
[apiInstance addDeviceGroupClusterAlertConfWith:deviceGroupId
    body:body
              completionHandler: ^(DeviceClusterAlertConfig output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceGroupId = 56; // {Integer} 

var body = ; // {DeviceClusterAlertConfig} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addDeviceGroupClusterAlertConf(deviceGroupId, body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addDeviceGroupClusterAlertConfExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceGroupId = 56;  // Integer | 
            var body = new DeviceClusterAlertConfig(); // DeviceClusterAlertConfig | 

            try
            {
                // Add cluster alert configuration
                DeviceClusterAlertConfig result = apiInstance.addDeviceGroupClusterAlertConf(deviceGroupId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addDeviceGroupClusterAlertConf: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceGroupId = 56; // Integer | 
$body = ; // DeviceClusterAlertConfig | 

try {
    $result = $api_instance->addDeviceGroupClusterAlertConf($deviceGroupId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addDeviceGroupClusterAlertConf: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceGroupId = 56; # Integer | 
my $body = WWW::SwaggerClient::Object::DeviceClusterAlertConfig->new(); # DeviceClusterAlertConfig | 

eval { 
    my $result = $api_instance->addDeviceGroupClusterAlertConf(deviceGroupId => $deviceGroupId, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addDeviceGroupClusterAlertConf: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # Add cluster alert configuration api_response = api_instance.add_device_group_cluster_alert_conf(deviceGroupId, body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addDeviceGroupClusterAlertConf: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddDeviceGroupClusterAlertConfParams()
    
// Add cluster alert configuration resp, err := client.LM.AddDeviceGroupClusterAlertConf(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddDeviceGroupClusterAlertConf: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceGroupId*
Integer (int32)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addDeviceGroupProperty

add device group property


/device/groups/{gid}/properties

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{gid}/properties"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer gid = 56; // Integer | group ID
        EntityProperty body = ; // EntityProperty | 
        try {
            EntityProperty result = apiInstance.addDeviceGroupProperty(gid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDeviceGroupProperty");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer gid = 56; // Integer | group ID
        EntityProperty body = ; // EntityProperty | 
        try {
            EntityProperty result = apiInstance.addDeviceGroupProperty(gid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDeviceGroupProperty");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *gid = 56; // group ID
EntityProperty *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add device group property
[apiInstance addDeviceGroupPropertyWith:gid
    body:body
              completionHandler: ^(EntityProperty output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var gid = 56; // {Integer} group ID

var body = ; // {EntityProperty} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addDeviceGroupProperty(gid, body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addDeviceGroupPropertyExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var gid = 56;  // Integer | group ID
            var body = new EntityProperty(); // EntityProperty | 

            try
            {
                // add device group property
                EntityProperty result = apiInstance.addDeviceGroupProperty(gid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addDeviceGroupProperty: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$gid = 56; // Integer | group ID
$body = ; // EntityProperty | 

try {
    $result = $api_instance->addDeviceGroupProperty($gid, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addDeviceGroupProperty: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $gid = 56; # Integer | group ID
my $body = WWW::SwaggerClient::Object::EntityProperty->new(); # EntityProperty | 

eval { 
    my $result = $api_instance->addDeviceGroupProperty(gid => $gid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addDeviceGroupProperty: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add device group property api_response = api_instance.add_device_group_property(gid, body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addDeviceGroupProperty: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddDeviceGroupPropertyParams()
    
// add device group property resp, err := client.LM.AddDeviceGroupProperty(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddDeviceGroupProperty: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
gid*
Integer (int32)
group ID
Required
Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addDeviceProperty

add device property


/device/devices/{deviceId}/properties

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/properties"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        EntityProperty body = ; // EntityProperty | 
        try {
            EntityProperty result = apiInstance.addDeviceProperty(deviceId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDeviceProperty");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        EntityProperty body = ; // EntityProperty | 
        try {
            EntityProperty result = apiInstance.addDeviceProperty(deviceId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addDeviceProperty");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
EntityProperty *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add device property
[apiInstance addDevicePropertyWith:deviceId
    body:body
              completionHandler: ^(EntityProperty output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var body = ; // {EntityProperty} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addDeviceProperty(deviceId, body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addDevicePropertyExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var body = new EntityProperty(); // EntityProperty | 

            try
            {
                // add device property
                EntityProperty result = apiInstance.addDeviceProperty(deviceId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addDeviceProperty: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$body = ; // EntityProperty | 

try {
    $result = $api_instance->addDeviceProperty($deviceId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addDeviceProperty: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $body = WWW::SwaggerClient::Object::EntityProperty->new(); # EntityProperty | 

eval { 
    my $result = $api_instance->addDeviceProperty(deviceId => $deviceId, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addDeviceProperty: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add device property api_response = api_instance.add_device_property(deviceId, body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addDeviceProperty: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddDevicePropertyParams()
    
// add device property resp, err := client.LM.AddDeviceProperty(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddDeviceProperty: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addEscalationChain

add escalation chain


/setting/alert/chains

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/alert/chains"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        EscalatingChain body = ; // EscalatingChain | 
        try {
            EscalatingChain result = apiInstance.addEscalationChain(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addEscalationChain");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        EscalatingChain body = ; // EscalatingChain | 
        try {
            EscalatingChain result = apiInstance.addEscalationChain(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addEscalationChain");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

EscalatingChain *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add escalation chain
[apiInstance addEscalationChainWith:body
              completionHandler: ^(EscalatingChain output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {EscalatingChain} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addEscalationChain(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addEscalationChainExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new EscalatingChain(); // EscalatingChain | 

            try
            {
                // add escalation chain
                EscalatingChain result = apiInstance.addEscalationChain(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addEscalationChain: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // EscalatingChain | 

try {
    $result = $api_instance->addEscalationChain($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addEscalationChain: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::EscalatingChain->new(); # EscalatingChain | 

eval { 
    my $result = $api_instance->addEscalationChain(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addEscalationChain: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add escalation chain api_response = api_instance.add_escalation_chain(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addEscalationChain: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddEscalationChainParams()
    
// add escalation chain resp, err := client.LM.AddEscalationChain(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddEscalationChain: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addNetscan

add a new netscan


/setting/netscans

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/netscans"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Netscan body = ; // Netscan | 
        try {
            Netscan result = apiInstance.addNetscan(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addNetscan");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Netscan body = ; // Netscan | 
        try {
            Netscan result = apiInstance.addNetscan(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addNetscan");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Netscan *body = ; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// add a new netscan
[apiInstance addNetscanWith:body
              completionHandler: ^(Netscan output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'body':  // {Netscan} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addNetscan(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addNetscanExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new Netscan(); // Netscan |  (optional) 

            try
            {
                // add a new netscan
                Netscan result = apiInstance.addNetscan(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addNetscan: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // Netscan | 

try {
    $result = $api_instance->addNetscan($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addNetscan: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::Netscan->new(); # Netscan | 

eval { 
    my $result = $api_instance->addNetscan(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addNetscan: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add a new netscan api_response = api_instance.add_netscan(body=body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addNetscan: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddNetscanParams()
    
// add a new netscan resp, err := client.LM.AddNetscan(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddNetscan: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - successful operation

Status: default - Error


addOpsNote

add opsnote


/setting/opsnotes

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/opsnotes"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        OpsNote body = ; // OpsNote | 
        try {
            OpsNote result = apiInstance.addOpsNote(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addOpsNote");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        OpsNote body = ; // OpsNote | 
        try {
            OpsNote result = apiInstance.addOpsNote(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addOpsNote");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

OpsNote *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add opsnote
[apiInstance addOpsNoteWith:body
              completionHandler: ^(OpsNote output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {OpsNote} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addOpsNote(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addOpsNoteExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new OpsNote(); // OpsNote | 

            try
            {
                // add opsnote
                OpsNote result = apiInstance.addOpsNote(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addOpsNote: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // OpsNote | 

try {
    $result = $api_instance->addOpsNote($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addOpsNote: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::OpsNote->new(); # OpsNote | 

eval { 
    my $result = $api_instance->addOpsNote(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addOpsNote: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add opsnote api_response = api_instance.add_ops_note(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addOpsNote: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddOpsNoteParams()
    
// add opsnote resp, err := client.LM.AddOpsNote(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddOpsNote: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addRecipientGroup

add recipient group


/setting/recipientgroups

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/recipientgroups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        RecipientGroup body = ; // RecipientGroup | 
        try {
            RecipientGroup result = apiInstance.addRecipientGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addRecipientGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        RecipientGroup body = ; // RecipientGroup | 
        try {
            RecipientGroup result = apiInstance.addRecipientGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addRecipientGroup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

RecipientGroup *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add recipient group
[apiInstance addRecipientGroupWith:body
              completionHandler: ^(RecipientGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {RecipientGroup} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addRecipientGroup(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addRecipientGroupExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new RecipientGroup(); // RecipientGroup | 

            try
            {
                // add recipient group
                RecipientGroup result = apiInstance.addRecipientGroup(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addRecipientGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // RecipientGroup | 

try {
    $result = $api_instance->addRecipientGroup($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addRecipientGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::RecipientGroup->new(); # RecipientGroup | 

eval { 
    my $result = $api_instance->addRecipientGroup(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addRecipientGroup: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add recipient group api_response = api_instance.add_recipient_group(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addRecipientGroup: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddRecipientGroupParams()
    
// add recipient group resp, err := client.LM.AddRecipientGroup(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddRecipientGroup: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addReport

add report


/report/reports

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/report/reports"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        ReportBase body = ; // ReportBase | 
        try {
            ReportBase result = apiInstance.addReport(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addReport");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        ReportBase body = ; // ReportBase | 
        try {
            ReportBase result = apiInstance.addReport(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addReport");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

ReportBase *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add report
[apiInstance addReportWith:body
              completionHandler: ^(ReportBase output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {ReportBase} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addReport(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addReportExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new ReportBase(); // ReportBase | 

            try
            {
                // add report
                ReportBase result = apiInstance.addReport(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addReport: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // ReportBase | 

try {
    $result = $api_instance->addReport($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addReport: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::ReportBase->new(); # ReportBase | 

eval { 
    my $result = $api_instance->addReport(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addReport: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add report api_response = api_instance.add_report(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addReport: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddReportParams()
    
// add report resp, err := client.LM.AddReport(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddReport: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addReportGroup

add report group


/report/groups

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/report/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        ReportGroup body = ; // ReportGroup | 
        try {
            ReportGroup result = apiInstance.addReportGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addReportGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        ReportGroup body = ; // ReportGroup | 
        try {
            ReportGroup result = apiInstance.addReportGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addReportGroup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

ReportGroup *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add report group
[apiInstance addReportGroupWith:body
              completionHandler: ^(ReportGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {ReportGroup} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addReportGroup(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addReportGroupExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new ReportGroup(); // ReportGroup | 

            try
            {
                // add report group
                ReportGroup result = apiInstance.addReportGroup(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addReportGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // ReportGroup | 

try {
    $result = $api_instance->addReportGroup($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addReportGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::ReportGroup->new(); # ReportGroup | 

eval { 
    my $result = $api_instance->addReportGroup(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addReportGroup: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add report group api_response = api_instance.add_report_group(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addReportGroup: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddReportGroupParams()
    
// add report group resp, err := client.LM.AddReportGroup(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddReportGroup: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addRole

add role


/setting/roles

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/roles"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Role body = ; // Role | 
        try {
            Role result = apiInstance.addRole(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addRole");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Role body = ; // Role | 
        try {
            Role result = apiInstance.addRole(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addRole");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Role *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add role
[apiInstance addRoleWith:body
              completionHandler: ^(Role output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {Role} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addRole(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addRoleExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new Role(); // Role | 

            try
            {
                // add role
                Role result = apiInstance.addRole(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addRole: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // Role | 

try {
    $result = $api_instance->addRole($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addRole: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::Role->new(); # Role | 

eval { 
    my $result = $api_instance->addRole(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addRole: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add role api_response = api_instance.add_role(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addRole: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddRoleParams()
    
// add role resp, err := client.LM.AddRole(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddRole: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addSDT

add SDT


/sdt/sdts

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/sdt/sdts"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        SDT body = ; // SDT | 
        try {
            SDT result = apiInstance.addSDT(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addSDT");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        SDT body = ; // SDT | 
        try {
            SDT result = apiInstance.addSDT(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addSDT");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

SDT *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add SDT
[apiInstance addSDTWith:body
              completionHandler: ^(SDT output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {SDT} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addSDT(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addSDTExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new SDT(); // SDT | 

            try
            {
                // add SDT
                SDT result = apiInstance.addSDT(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addSDT: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // SDT | 

try {
    $result = $api_instance->addSDT($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addSDT: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::SDT->new(); # SDT | 

eval { 
    my $result = $api_instance->addSDT(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addSDT: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add SDT api_response = api_instance.add_sdt(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addSDT: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddSDTParams()
    
// add SDT resp, err := client.LM.AddSDT(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddSDT: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addWebsite

add website


/website/websites

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/website/websites"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Website body = ; // Website | 
        try {
            Website result = apiInstance.addWebsite(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addWebsite");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Website body = ; // Website | 
        try {
            Website result = apiInstance.addWebsite(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addWebsite");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Website *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add website
[apiInstance addWebsiteWith:body
              completionHandler: ^(Website output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {Website} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addWebsite(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addWebsiteExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new Website(); // Website | 

            try
            {
                // add website
                Website result = apiInstance.addWebsite(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addWebsite: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // Website | 

try {
    $result = $api_instance->addWebsite($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addWebsite: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::Website->new(); # Website | 

eval { 
    my $result = $api_instance->addWebsite(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addWebsite: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add website api_response = api_instance.add_website(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addWebsite: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddWebsiteParams()
    
// add website resp, err := client.LM.AddWebsite(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddWebsite: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addWebsiteGroup

add website group


/website/groups

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/website/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        WebsiteGroup body = ; // WebsiteGroup | 
        try {
            WebsiteGroup result = apiInstance.addWebsiteGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addWebsiteGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        WebsiteGroup body = ; // WebsiteGroup | 
        try {
            WebsiteGroup result = apiInstance.addWebsiteGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addWebsiteGroup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

WebsiteGroup *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add website group
[apiInstance addWebsiteGroupWith:body
              completionHandler: ^(WebsiteGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {WebsiteGroup} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addWebsiteGroup(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addWebsiteGroupExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new WebsiteGroup(); // WebsiteGroup | 

            try
            {
                // add website group
                WebsiteGroup result = apiInstance.addWebsiteGroup(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addWebsiteGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // WebsiteGroup | 

try {
    $result = $api_instance->addWebsiteGroup($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addWebsiteGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::WebsiteGroup->new(); # WebsiteGroup | 

eval { 
    my $result = $api_instance->addWebsiteGroup(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addWebsiteGroup: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add website group api_response = api_instance.add_website_group(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addWebsiteGroup: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddWebsiteGroupParams()
    
// add website group resp, err := client.LM.AddWebsiteGroup(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddWebsiteGroup: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


addWidget

add widget


/dashboard/widgets

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/dashboard/widgets"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Widget body = ; // Widget | 
        try {
            Widget result = apiInstance.addWidget(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addWidget");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Widget body = ; // Widget | 
        try {
            Widget result = apiInstance.addWidget(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#addWidget");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Widget *body = ; // 

LMApi *apiInstance = [[LMApi alloc] init];

// add widget
[apiInstance addWidgetWith:body
              completionHandler: ^(Widget output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {Widget} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addWidget(body, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class addWidgetExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new Widget(); // Widget | 

            try
            {
                // add widget
                Widget result = apiInstance.addWidget(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.addWidget: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // Widget | 

try {
    $result = $api_instance->addWidget($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->addWidget: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::Widget->new(); # Widget | 

eval { 
    my $result = $api_instance->addWidget(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->addWidget: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # add widget api_response = api_instance.add_widget(body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->addWidget: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewAddWidgetParams()
    
// add widget resp, err := client.LM.AddWidget(params) if err != nil { fmt.Printf("Exception when calling client.LM.AddWidget: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - successful operation

Status: default - Error


collectDeviceConfigSourceConfig

collect a config for a device


/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{instanceId}/config/collectNow

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{instanceId}/config/collectNow"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | 
        Integer instanceId = 56; // Integer | 
        try {
            Object result = apiInstance.collectDeviceConfigSourceConfig(deviceId, hdsId, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#collectDeviceConfigSourceConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | 
        Integer instanceId = 56; // Integer | 
        try {
            Object result = apiInstance.collectDeviceConfigSourceConfig(deviceId, hdsId, instanceId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#collectDeviceConfigSourceConfig");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *hdsId = 56; // 
Integer *instanceId = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// collect a config for a device
[apiInstance collectDeviceConfigSourceConfigWith:deviceId
    hdsId:hdsId
    instanceId:instanceId
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var hdsId = 56; // {Integer} 

var instanceId = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.collectDeviceConfigSourceConfig(deviceId, hdsId, instanceId, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class collectDeviceConfigSourceConfigExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var hdsId = 56;  // Integer | 
            var instanceId = 56;  // Integer | 

            try
            {
                // collect a config for a device
                Object result = apiInstance.collectDeviceConfigSourceConfig(deviceId, hdsId, instanceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.collectDeviceConfigSourceConfig: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$hdsId = 56; // Integer | 
$instanceId = 56; // Integer | 

try {
    $result = $api_instance->collectDeviceConfigSourceConfig($deviceId, $hdsId, $instanceId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->collectDeviceConfigSourceConfig: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $hdsId = 56; # Integer | 
my $instanceId = 56; # Integer | 

eval { 
    my $result = $api_instance->collectDeviceConfigSourceConfig(deviceId => $deviceId, hdsId => $hdsId, instanceId => $instanceId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->collectDeviceConfigSourceConfig: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # collect a config for a device api_response = api_instance.collect_device_config_source_config(deviceId, hdsId, instanceId) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->collectDeviceConfigSourceConfig: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewCollectDeviceConfigSourceConfigParams()
    
// collect a config for a device resp, err := client.LM.CollectDeviceConfigSourceConfig(params) if err != nil { fmt.Printf("Exception when calling client.LM.CollectDeviceConfigSourceConfig: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
hdsId*
Integer (int32)
Required
instanceId*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteAdminById

delete user


/setting/admins/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/admins/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteAdminById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteAdminById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteAdminById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteAdminById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete user
[apiInstance deleteAdminByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteAdminById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteAdminByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete user
                Object result = apiInstance.deleteAdminById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteAdminById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteAdminById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteAdminById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteAdminById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteAdminById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete user api_response = api_instance.delete_admin_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteAdminById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteAdminByIDParams()
    
// delete user resp, err := client.LM.DeleteAdminByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteAdminByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteAlertRuleById

delete alert rule


/setting/alert/rules/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/alert/rules/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteAlertRuleById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteAlertRuleById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteAlertRuleById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteAlertRuleById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete alert rule
[apiInstance deleteAlertRuleByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteAlertRuleById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteAlertRuleByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete alert rule
                Object result = apiInstance.deleteAlertRuleById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteAlertRuleById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteAlertRuleById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteAlertRuleById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteAlertRuleById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteAlertRuleById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete alert rule api_response = api_instance.delete_alert_rule_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteAlertRuleById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteAlertRuleByIDParams()
    
// delete alert rule resp, err := client.LM.DeleteAlertRuleByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteAlertRuleByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteApiTokenById

delete apiToken


/setting/admins/{adminId}/apitokens/{apitokenId}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/admins/{adminId}/apitokens/{apitokenId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer adminId = 56; // Integer | 
        Integer apitokenId = 56; // Integer | 
        try {
            Object result = apiInstance.deleteApiTokenById(adminId, apitokenId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteApiTokenById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer adminId = 56; // Integer | 
        Integer apitokenId = 56; // Integer | 
        try {
            Object result = apiInstance.deleteApiTokenById(adminId, apitokenId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteApiTokenById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *adminId = 56; // 
Integer *apitokenId = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete apiToken
[apiInstance deleteApiTokenByIdWith:adminId
    apitokenId:apitokenId
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var adminId = 56; // {Integer} 

var apitokenId = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteApiTokenById(adminId, apitokenId, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteApiTokenByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var adminId = 56;  // Integer | 
            var apitokenId = 56;  // Integer | 

            try
            {
                // delete apiToken
                Object result = apiInstance.deleteApiTokenById(adminId, apitokenId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteApiTokenById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$adminId = 56; // Integer | 
$apitokenId = 56; // Integer | 

try {
    $result = $api_instance->deleteApiTokenById($adminId, $apitokenId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteApiTokenById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $adminId = 56; # Integer | 
my $apitokenId = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteApiTokenById(adminId => $adminId, apitokenId => $apitokenId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteApiTokenById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete apiToken api_response = api_instance.delete_api_token_by_id(adminId, apitokenId) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteApiTokenById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteAPITokenByIDParams()
    
// delete apiToken resp, err := client.LM.DeleteAPITokenByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteAPITokenByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
adminId*
Integer (int32)
Required
apitokenId*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteAppliesToFunctionById

delete applies to function


/setting/functions/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/functions/{id}?ignoreReference="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Boolean ignoreReference = true; // Boolean | 
        try {
            Object result = apiInstance.deleteAppliesToFunctionById(id, ignoreReference);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteAppliesToFunctionById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Boolean ignoreReference = true; // Boolean | 
        try {
            Object result = apiInstance.deleteAppliesToFunctionById(id, ignoreReference);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteAppliesToFunctionById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Boolean *ignoreReference = true; //  (optional) (default to false)

LMApi *apiInstance = [[LMApi alloc] init];

// delete applies to function
[apiInstance deleteAppliesToFunctionByIdWith:id
    ignoreReference:ignoreReference
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'ignoreReference': true // {Boolean} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteAppliesToFunctionById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteAppliesToFunctionByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var ignoreReference = true;  // Boolean |  (optional)  (default to false)

            try
            {
                // delete applies to function
                Object result = apiInstance.deleteAppliesToFunctionById(id, ignoreReference);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteAppliesToFunctionById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$ignoreReference = true; // Boolean | 

try {
    $result = $api_instance->deleteAppliesToFunctionById($id, $ignoreReference);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteAppliesToFunctionById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $ignoreReference = true; # Boolean | 

eval { 
    my $result = $api_instance->deleteAppliesToFunctionById(id => $id, ignoreReference => $ignoreReference);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteAppliesToFunctionById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete applies to function api_response = api_instance.delete_applies_to_function_by_id(id, ignoreReference=ignoreReference) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteAppliesToFunctionById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteAppliesToFunctionByIDParams()
    
// delete applies to function resp, err := client.LM.DeleteAppliesToFunctionByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteAppliesToFunctionByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
ignoreReference
Boolean

Responses

Status: 200 - successful operation

Status: default - Error


deleteCollectorById

delete collector


/setting/collector/collectors/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/collector/collectors/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteCollectorById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteCollectorById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteCollectorById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteCollectorById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete collector
[apiInstance deleteCollectorByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteCollectorById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteCollectorByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete collector
                Object result = apiInstance.deleteCollectorById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteCollectorById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteCollectorById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteCollectorById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteCollectorById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteCollectorById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete collector api_response = api_instance.delete_collector_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteCollectorById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteCollectorByIDParams()
    
// delete collector resp, err := client.LM.DeleteCollectorByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteCollectorByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteCollectorGroupById

delete collector group


/setting/collector/groups/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/collector/groups/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteCollectorGroupById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteCollectorGroupById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteCollectorGroupById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteCollectorGroupById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete collector group
[apiInstance deleteCollectorGroupByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteCollectorGroupById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteCollectorGroupByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete collector group
                Object result = apiInstance.deleteCollectorGroupById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteCollectorGroupById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteCollectorGroupById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteCollectorGroupById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteCollectorGroupById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteCollectorGroupById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete collector group api_response = api_instance.delete_collector_group_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteCollectorGroupById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteCollectorGroupByIDParams()
    
// delete collector group resp, err := client.LM.DeleteCollectorGroupByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteCollectorGroupByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteDashboardById

delete dashboard


/dashboard/dashboards/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/dashboard/dashboards/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteDashboardById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDashboardById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteDashboardById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDashboardById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete dashboard
[apiInstance deleteDashboardByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteDashboardById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteDashboardByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete dashboard
                Object result = apiInstance.deleteDashboardById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteDashboardById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteDashboardById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteDashboardById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteDashboardById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteDashboardById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete dashboard api_response = api_instance.delete_dashboard_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteDashboardById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteDashboardByIDParams()
    
// delete dashboard resp, err := client.LM.DeleteDashboardByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteDashboardByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteDashboardGroupById

delete dashboard group


/dashboard/groups/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/dashboard/groups/{id}?allowNonEmptyGroup="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Boolean allowNonEmptyGroup = true; // Boolean | 
        try {
            Object result = apiInstance.deleteDashboardGroupById(id, allowNonEmptyGroup);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDashboardGroupById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Boolean allowNonEmptyGroup = true; // Boolean | 
        try {
            Object result = apiInstance.deleteDashboardGroupById(id, allowNonEmptyGroup);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDashboardGroupById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Boolean *allowNonEmptyGroup = true; //  (optional) (default to false)

LMApi *apiInstance = [[LMApi alloc] init];

// delete dashboard group
[apiInstance deleteDashboardGroupByIdWith:id
    allowNonEmptyGroup:allowNonEmptyGroup
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'allowNonEmptyGroup': true // {Boolean} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteDashboardGroupById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteDashboardGroupByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var allowNonEmptyGroup = true;  // Boolean |  (optional)  (default to false)

            try
            {
                // delete dashboard group
                Object result = apiInstance.deleteDashboardGroupById(id, allowNonEmptyGroup);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteDashboardGroupById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$allowNonEmptyGroup = true; // Boolean | 

try {
    $result = $api_instance->deleteDashboardGroupById($id, $allowNonEmptyGroup);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteDashboardGroupById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $allowNonEmptyGroup = true; # Boolean | 

eval { 
    my $result = $api_instance->deleteDashboardGroupById(id => $id, allowNonEmptyGroup => $allowNonEmptyGroup);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteDashboardGroupById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete dashboard group api_response = api_instance.delete_dashboard_group_by_id(id, allowNonEmptyGroup=allowNonEmptyGroup) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteDashboardGroupById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteDashboardGroupByIDParams()
    
// delete dashboard group resp, err := client.LM.DeleteDashboardGroupByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteDashboardGroupByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
allowNonEmptyGroup
Boolean

Responses

Status: 200 - OK

Status: default - Error


deleteDatasourceById

delete datasource


/setting/datasources/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/datasources/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteDatasourceById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDatasourceById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteDatasourceById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDatasourceById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete datasource
[apiInstance deleteDatasourceByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteDatasourceById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteDatasourceByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete datasource
                Object result = apiInstance.deleteDatasourceById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteDatasourceById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteDatasourceById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteDatasourceById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteDatasourceById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteDatasourceById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete datasource api_response = api_instance.delete_datasource_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteDatasourceById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteDatasourceByIDParams()
    
// delete datasource resp, err := client.LM.DeleteDatasourceByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteDatasourceByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteDeviceById

delete a device


/device/devices/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{id}?start=&end=&netflowFilter=&deleteHard="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        Boolean deleteHard = true; // Boolean | 
        try {
            Object result = apiInstance.deleteDeviceById(id, start, end, netflowFilter, deleteHard);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDeviceById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        Boolean deleteHard = true; // Boolean | 
        try {
            Object result = apiInstance.deleteDeviceById(id, start, end, netflowFilter, deleteHard);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDeviceById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *netflowFilter = netflowFilter_example; //  (optional)
Boolean *deleteHard = true; //  (optional) (default to true)

LMApi *apiInstance = [[LMApi alloc] init];

// delete a device
[apiInstance deleteDeviceByIdWith:id
    start:start
    end:end
    netflowFilter:netflowFilter
    deleteHard:deleteHard
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'netflowFilter': netflowFilter_example, // {String} 
  'deleteHard': true // {Boolean} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteDeviceById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteDeviceByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var netflowFilter = netflowFilter_example;  // String |  (optional) 
            var deleteHard = true;  // Boolean |  (optional)  (default to true)

            try
            {
                // delete a device
                Object result = apiInstance.deleteDeviceById(id, start, end, netflowFilter, deleteHard);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteDeviceById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$start = 789; // Long | 
$end = 789; // Long | 
$netflowFilter = netflowFilter_example; // String | 
$deleteHard = true; // Boolean | 

try {
    $result = $api_instance->deleteDeviceById($id, $start, $end, $netflowFilter, $deleteHard);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteDeviceById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $netflowFilter = netflowFilter_example; # String | 
my $deleteHard = true; # Boolean | 

eval { 
    my $result = $api_instance->deleteDeviceById(id => $id, start => $start, end => $end, netflowFilter => $netflowFilter, deleteHard => $deleteHard);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteDeviceById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete a device api_response = api_instance.delete_device_by_id(id, start=start, end=end, netflowFilter=netflowFilter, deleteHard=deleteHard) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteDeviceById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteDeviceByIDParams()
    
// delete a device resp, err := client.LM.DeleteDeviceByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteDeviceByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
start
Long (int64)
end
Long (int64)
netflowFilter
String
deleteHard
Boolean

Responses

Status: 200 - successful operation

Status: default - Error


deleteDeviceDatasourceInstanceById

delete a device instance


/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteDeviceDatasourceInstanceById(deviceId, hdsId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDeviceDatasourceInstanceById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteDeviceDatasourceInstanceById(deviceId, hdsId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDeviceDatasourceInstanceById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *hdsId = 56; // The device-datasource ID
Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete a device instance
[apiInstance deleteDeviceDatasourceInstanceByIdWith:deviceId
    hdsId:hdsId
    id:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var hdsId = 56; // {Integer} The device-datasource ID

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteDeviceDatasourceInstanceById(deviceId, hdsId, id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteDeviceDatasourceInstanceByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var hdsId = 56;  // Integer | The device-datasource ID
            var id = 56;  // Integer | 

            try
            {
                // delete a device instance
                Object result = apiInstance.deleteDeviceDatasourceInstanceById(deviceId, hdsId, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteDeviceDatasourceInstanceById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$hdsId = 56; // Integer | The device-datasource ID
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteDeviceDatasourceInstanceById($deviceId, $hdsId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteDeviceDatasourceInstanceById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $hdsId = 56; # Integer | The device-datasource ID
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteDeviceDatasourceInstanceById(deviceId => $deviceId, hdsId => $hdsId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteDeviceDatasourceInstanceById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete a device instance api_response = api_instance.delete_device_datasource_instance_by_id(deviceId, hdsId, id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteDeviceDatasourceInstanceById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteDeviceDatasourceInstanceByIDParams()
    
// delete a device instance resp, err := client.LM.DeleteDeviceDatasourceInstanceByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteDeviceDatasourceInstanceByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
hdsId*
Integer (int32)
The device-datasource ID
Required
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteDeviceGroupById

delete device group


/device/groups/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{id}?deleteChildren=&deleteHard="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Boolean deleteChildren = true; // Boolean | 
        Boolean deleteHard = true; // Boolean | 
        try {
            Object result = apiInstance.deleteDeviceGroupById(id, deleteChildren, deleteHard);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDeviceGroupById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Boolean deleteChildren = true; // Boolean | 
        Boolean deleteHard = true; // Boolean | 
        try {
            Object result = apiInstance.deleteDeviceGroupById(id, deleteChildren, deleteHard);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDeviceGroupById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Boolean *deleteChildren = true; //  (optional) (default to false)
Boolean *deleteHard = true; //  (optional) (default to true)

LMApi *apiInstance = [[LMApi alloc] init];

// delete device group
[apiInstance deleteDeviceGroupByIdWith:id
    deleteChildren:deleteChildren
    deleteHard:deleteHard
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'deleteChildren': true, // {Boolean} 
  'deleteHard': true // {Boolean} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteDeviceGroupById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteDeviceGroupByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var deleteChildren = true;  // Boolean |  (optional)  (default to false)
            var deleteHard = true;  // Boolean |  (optional)  (default to true)

            try
            {
                // delete device group
                Object result = apiInstance.deleteDeviceGroupById(id, deleteChildren, deleteHard);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteDeviceGroupById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$deleteChildren = true; // Boolean | 
$deleteHard = true; // Boolean | 

try {
    $result = $api_instance->deleteDeviceGroupById($id, $deleteChildren, $deleteHard);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteDeviceGroupById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $deleteChildren = true; # Boolean | 
my $deleteHard = true; # Boolean | 

eval { 
    my $result = $api_instance->deleteDeviceGroupById(id => $id, deleteChildren => $deleteChildren, deleteHard => $deleteHard);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteDeviceGroupById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete device group api_response = api_instance.delete_device_group_by_id(id, deleteChildren=deleteChildren, deleteHard=deleteHard) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteDeviceGroupById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteDeviceGroupByIDParams()
    
// delete device group resp, err := client.LM.DeleteDeviceGroupByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteDeviceGroupByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
deleteChildren
Boolean
deleteHard
Boolean

Responses

Status: 200 - successful operation

Status: default - Error


deleteDeviceGroupClusterAlertConfById

Delete cluster alert configuration


/device/groups/{deviceGroupId}/clusterAlertConf/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{deviceGroupId}/clusterAlertConf/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteDeviceGroupClusterAlertConfById(deviceGroupId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDeviceGroupClusterAlertConfById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteDeviceGroupClusterAlertConfById(deviceGroupId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDeviceGroupClusterAlertConfById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceGroupId = 56; // 
Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// Delete cluster alert configuration
[apiInstance deleteDeviceGroupClusterAlertConfByIdWith:deviceGroupId
    id:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceGroupId = 56; // {Integer} 

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteDeviceGroupClusterAlertConfById(deviceGroupId, id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteDeviceGroupClusterAlertConfByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceGroupId = 56;  // Integer | 
            var id = 56;  // Integer | 

            try
            {
                // Delete cluster alert configuration
                Object result = apiInstance.deleteDeviceGroupClusterAlertConfById(deviceGroupId, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteDeviceGroupClusterAlertConfById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceGroupId = 56; // Integer | 
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteDeviceGroupClusterAlertConfById($deviceGroupId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteDeviceGroupClusterAlertConfById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceGroupId = 56; # Integer | 
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteDeviceGroupClusterAlertConfById(deviceGroupId => $deviceGroupId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteDeviceGroupClusterAlertConfById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # Delete cluster alert configuration api_response = api_instance.delete_device_group_cluster_alert_conf_by_id(deviceGroupId, id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteDeviceGroupClusterAlertConfById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteDeviceGroupClusterAlertConfByIDParams()
    
// Delete cluster alert configuration resp, err := client.LM.DeleteDeviceGroupClusterAlertConfByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteDeviceGroupClusterAlertConfByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceGroupId*
Integer (int32)
Required
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteDeviceGroupPropertyByName

delete device group property


/device/groups/{gid}/properties/{name}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{gid}/properties/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer gid = 56; // Integer | group ID
        String name = name_example; // String | 
        try {
            Object result = apiInstance.deleteDeviceGroupPropertyByName(gid, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDeviceGroupPropertyByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer gid = 56; // Integer | group ID
        String name = name_example; // String | 
        try {
            Object result = apiInstance.deleteDeviceGroupPropertyByName(gid, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDeviceGroupPropertyByName");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *gid = 56; // group ID
String *name = name_example; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete device group property
[apiInstance deleteDeviceGroupPropertyByNameWith:gid
    name:name
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var gid = 56; // {Integer} group ID

var name = name_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteDeviceGroupPropertyByName(gid, name, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteDeviceGroupPropertyByNameExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var gid = 56;  // Integer | group ID
            var name = name_example;  // String | 

            try
            {
                // delete device group property
                Object result = apiInstance.deleteDeviceGroupPropertyByName(gid, name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteDeviceGroupPropertyByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$gid = 56; // Integer | group ID
$name = name_example; // String | 

try {
    $result = $api_instance->deleteDeviceGroupPropertyByName($gid, $name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteDeviceGroupPropertyByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $gid = 56; # Integer | group ID
my $name = name_example; # String | 

eval { 
    my $result = $api_instance->deleteDeviceGroupPropertyByName(gid => $gid, name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteDeviceGroupPropertyByName: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete device group property api_response = api_instance.delete_device_group_property_by_name(gid, name) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteDeviceGroupPropertyByName: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteDeviceGroupPropertyByNameParams()
    
// delete device group property resp, err := client.LM.DeleteDeviceGroupPropertyByName(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteDeviceGroupPropertyByName: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
gid*
Integer (int32)
group ID
Required
name*
String
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteDevicePropertyByName

delete device property


/device/devices/{deviceId}/properties/{name}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/properties/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        String name = name_example; // String | 
        try {
            Object result = apiInstance.deleteDevicePropertyByName(deviceId, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDevicePropertyByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        String name = name_example; // String | 
        try {
            Object result = apiInstance.deleteDevicePropertyByName(deviceId, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteDevicePropertyByName");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
String *name = name_example; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete device property
[apiInstance deleteDevicePropertyByNameWith:deviceId
    name:name
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var name = name_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteDevicePropertyByName(deviceId, name, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteDevicePropertyByNameExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var name = name_example;  // String | 

            try
            {
                // delete device property
                Object result = apiInstance.deleteDevicePropertyByName(deviceId, name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteDevicePropertyByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$name = name_example; // String | 

try {
    $result = $api_instance->deleteDevicePropertyByName($deviceId, $name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteDevicePropertyByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $name = name_example; # String | 

eval { 
    my $result = $api_instance->deleteDevicePropertyByName(deviceId => $deviceId, name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteDevicePropertyByName: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete device property api_response = api_instance.delete_device_property_by_name(deviceId, name) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteDevicePropertyByName: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteDevicePropertyByNameParams()
    
// delete device property resp, err := client.LM.DeleteDevicePropertyByName(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteDevicePropertyByName: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
name*
String
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteEscalationChainById

delete escalation chain


/setting/alert/chains/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/alert/chains/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteEscalationChainById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteEscalationChainById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteEscalationChainById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteEscalationChainById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete escalation chain
[apiInstance deleteEscalationChainByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteEscalationChainById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteEscalationChainByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete escalation chain
                Object result = apiInstance.deleteEscalationChainById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteEscalationChainById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteEscalationChainById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteEscalationChainById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteEscalationChainById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteEscalationChainById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete escalation chain api_response = api_instance.delete_escalation_chain_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteEscalationChainById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteEscalationChainByIDParams()
    
// delete escalation chain resp, err := client.LM.DeleteEscalationChainByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteEscalationChainByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteNetscanById

delete a netscan


/setting/netscans/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/netscans/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteNetscanById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteNetscanById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteNetscanById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteNetscanById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete a netscan
[apiInstance deleteNetscanByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteNetscanById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteNetscanByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete a netscan
                Object result = apiInstance.deleteNetscanById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteNetscanById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteNetscanById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteNetscanById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteNetscanById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteNetscanById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete a netscan api_response = api_instance.delete_netscan_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteNetscanById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteNetscanByIDParams()
    
// delete a netscan resp, err := client.LM.DeleteNetscanByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteNetscanByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteOpsNoteById

delete opsnote


/setting/opsnotes/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/opsnotes/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        try {
            Object result = apiInstance.deleteOpsNoteById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteOpsNoteById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        try {
            Object result = apiInstance.deleteOpsNoteById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteOpsNoteById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *id = id_example; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete opsnote
[apiInstance deleteOpsNoteByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = id_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteOpsNoteById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteOpsNoteByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = id_example;  // String | 

            try
            {
                // delete opsnote
                Object result = apiInstance.deleteOpsNoteById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteOpsNoteById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = id_example; // String | 

try {
    $result = $api_instance->deleteOpsNoteById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteOpsNoteById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->deleteOpsNoteById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteOpsNoteById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete opsnote api_response = api_instance.delete_ops_note_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteOpsNoteById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteOpsNoteByIDParams()
    
// delete opsnote resp, err := client.LM.DeleteOpsNoteByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteOpsNoteByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteRecipientGroupById

delete recipient group


/setting/recipientgroups/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/recipientgroups/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteRecipientGroupById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteRecipientGroupById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteRecipientGroupById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteRecipientGroupById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete recipient group
[apiInstance deleteRecipientGroupByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteRecipientGroupById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteRecipientGroupByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete recipient group
                Object result = apiInstance.deleteRecipientGroupById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteRecipientGroupById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteRecipientGroupById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteRecipientGroupById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteRecipientGroupById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteRecipientGroupById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete recipient group api_response = api_instance.delete_recipient_group_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteRecipientGroupById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteRecipientGroupByIDParams()
    
// delete recipient group resp, err := client.LM.DeleteRecipientGroupByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteRecipientGroupByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteReportById

delete report


/report/reports/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/report/reports/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteReportById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteReportById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteReportById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteReportById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete report
[apiInstance deleteReportByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteReportById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteReportByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete report
                Object result = apiInstance.deleteReportById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteReportById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteReportById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteReportById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteReportById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteReportById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete report api_response = api_instance.delete_report_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteReportById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteReportByIDParams()
    
// delete report resp, err := client.LM.DeleteReportByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteReportByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteReportGroupById

delete report group


/report/groups/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/report/groups/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteReportGroupById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteReportGroupById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteReportGroupById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteReportGroupById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete report group
[apiInstance deleteReportGroupByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteReportGroupById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteReportGroupByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete report group
                Object result = apiInstance.deleteReportGroupById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteReportGroupById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteReportGroupById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteReportGroupById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteReportGroupById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteReportGroupById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete report group api_response = api_instance.delete_report_group_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteReportGroupById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteReportGroupByIDParams()
    
// delete report group resp, err := client.LM.DeleteReportGroupByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteReportGroupByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteRoleById

delete role


/setting/roles/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/roles/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteRoleById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteRoleById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteRoleById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteRoleById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete role
[apiInstance deleteRoleByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteRoleById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteRoleByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete role
                Object result = apiInstance.deleteRoleById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteRoleById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteRoleById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteRoleById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteRoleById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteRoleById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete role api_response = api_instance.delete_role_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteRoleById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteRoleByIDParams()
    
// delete role resp, err := client.LM.DeleteRoleByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteRoleByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteSDTById

delete SDT


/sdt/sdts/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/sdt/sdts/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        try {
            Object result = apiInstance.deleteSDTById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteSDTById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        try {
            Object result = apiInstance.deleteSDTById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteSDTById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *id = id_example; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete SDT
[apiInstance deleteSDTByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = id_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteSDTById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteSDTByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = id_example;  // String | 

            try
            {
                // delete SDT
                Object result = apiInstance.deleteSDTById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteSDTById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = id_example; // String | 

try {
    $result = $api_instance->deleteSDTById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteSDTById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->deleteSDTById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteSDTById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete SDT api_response = api_instance.delete_sdt_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteSDTById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteSDTByIDParams()
    
// delete SDT resp, err := client.LM.DeleteSDTByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteSDTByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteWebsiteById

delete website


/website/websites/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/website/websites/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteWebsiteById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteWebsiteById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteWebsiteById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteWebsiteById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete website
[apiInstance deleteWebsiteByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteWebsiteById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteWebsiteByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete website
                Object result = apiInstance.deleteWebsiteById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteWebsiteById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteWebsiteById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteWebsiteById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteWebsiteById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteWebsiteById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete website api_response = api_instance.delete_website_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteWebsiteById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteWebsiteByIDParams()
    
// delete website resp, err := client.LM.DeleteWebsiteByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteWebsiteByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


deleteWebsiteGroupById

delete website group


/website/groups/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/website/groups/{id}?deleteChildren="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Integer deleteChildren = 56; // Integer | 
        try {
            Object result = apiInstance.deleteWebsiteGroupById(id, deleteChildren);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteWebsiteGroupById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Integer deleteChildren = 56; // Integer | 
        try {
            Object result = apiInstance.deleteWebsiteGroupById(id, deleteChildren);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteWebsiteGroupById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Integer *deleteChildren = 56; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// delete website group
[apiInstance deleteWebsiteGroupByIdWith:id
    deleteChildren:deleteChildren
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'deleteChildren': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteWebsiteGroupById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteWebsiteGroupByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var deleteChildren = 56;  // Integer |  (optional) 

            try
            {
                // delete website group
                Object result = apiInstance.deleteWebsiteGroupById(id, deleteChildren);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteWebsiteGroupById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$deleteChildren = 56; // Integer | 

try {
    $result = $api_instance->deleteWebsiteGroupById($id, $deleteChildren);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteWebsiteGroupById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $deleteChildren = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteWebsiteGroupById(id => $id, deleteChildren => $deleteChildren);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteWebsiteGroupById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete website group api_response = api_instance.delete_website_group_by_id(id, deleteChildren=deleteChildren) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteWebsiteGroupById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteWebsiteGroupByIDParams()
    
// delete website group resp, err := client.LM.DeleteWebsiteGroupByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteWebsiteGroupByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
deleteChildren
Integer (int32)

Responses

Status: 200 - successful operation

Status: default - Error


deleteWidgetById

delete widget


/dashboard/widgets/{id}

Usage and SDK Samples

curl -X DELETE -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/dashboard/widgets/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteWidgetById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteWidgetById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteWidgetById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#deleteWidgetById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// delete widget
[apiInstance deleteWidgetByIdWith:id
              completionHandler: ^(Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteWidgetById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class deleteWidgetByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // delete widget
                Object result = apiInstance.deleteWidgetById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.deleteWidgetById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->deleteWidgetById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->deleteWidgetById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteWidgetById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->deleteWidgetById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # delete widget api_response = api_instance.delete_widget_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->deleteWidgetById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewDeleteWidgetByIDParams()
    
// delete widget resp, err := client.LM.DeleteWidgetByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.DeleteWidgetByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


executeDebugCommand

Execute a Collector debug command


/debug

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/debug?collectorId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Debug body = ; // Debug | 
        Integer collectorId = 56; // Integer | 
        try {
            Debug result = apiInstance.executeDebugCommand(body, collectorId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#executeDebugCommand");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Debug body = ; // Debug | 
        Integer collectorId = 56; // Integer | 
        try {
            Debug result = apiInstance.executeDebugCommand(body, collectorId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#executeDebugCommand");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Debug *body = ; //  (optional)
Integer *collectorId = 56; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// Execute a Collector debug command
[apiInstance executeDebugCommandWith:body
    collectorId:collectorId
              completionHandler: ^(Debug output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'body': , // {Debug} 
  'collectorId': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.executeDebugCommand(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class executeDebugCommandExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new Debug(); // Debug |  (optional) 
            var collectorId = 56;  // Integer |  (optional) 

            try
            {
                // Execute a Collector debug command
                Debug result = apiInstance.executeDebugCommand(body, collectorId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.executeDebugCommand: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // Debug | 
$collectorId = 56; // Integer | 

try {
    $result = $api_instance->executeDebugCommand($body, $collectorId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->executeDebugCommand: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::Debug->new(); # Debug | 
my $collectorId = 56; # Integer | 

eval { 
    my $result = $api_instance->executeDebugCommand(body => $body, collectorId => $collectorId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->executeDebugCommand: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # Execute a Collector debug command api_response = api_instance.execute_debug_command(body=body, collectorId=collectorId) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->executeDebugCommand: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewExecuteDebugCommandParams()
    
// Execute a Collector debug command resp, err := client.LM.ExecuteDebugCommand(params) if err != nil { fmt.Printf("Exception when calling client.LM.ExecuteDebugCommand: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
collectorId
Integer (int32)

Responses

Status: 200 - successful operation

Status: default - Error


fetchDeviceInstancesData

fetch device instances data


/device/instances/datafetch

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/instances/datafetch?period=&start=&end=&aggregate="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        DeviceInstances body = ; // DeviceInstances | 
        Double period = 1.2; // Double | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String aggregate = aggregate_example; // String | the aggregate option
        try {
            DeviceInstanceDataPaginationResponse result = apiInstance.fetchDeviceInstancesData(body, period, start, end, aggregate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#fetchDeviceInstancesData");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        DeviceInstances body = ; // DeviceInstances | 
        Double period = 1.2; // Double | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String aggregate = aggregate_example; // String | the aggregate option
        try {
            DeviceInstanceDataPaginationResponse result = apiInstance.fetchDeviceInstancesData(body, period, start, end, aggregate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#fetchDeviceInstancesData");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

DeviceInstances *body = ; // 
Double *period = 1.2; //  (optional) (default to 1.0)
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *aggregate = aggregate_example; // the aggregate option (optional) (default to none)

LMApi *apiInstance = [[LMApi alloc] init];

// fetch device instances data
[apiInstance fetchDeviceInstancesDataWith:body
    period:period
    start:start
    end:end
    aggregate:aggregate
              completionHandler: ^(DeviceInstanceDataPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var body = ; // {DeviceInstances} 

var opts = { 
  'period': 1.2, // {Double} 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'aggregate': aggregate_example // {String} the aggregate option
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.fetchDeviceInstancesData(body, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class fetchDeviceInstancesDataExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var body = new DeviceInstances(); // DeviceInstances | 
            var period = 1.2;  // Double |  (optional)  (default to 1.0)
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var aggregate = aggregate_example;  // String | the aggregate option (optional)  (default to none)

            try
            {
                // fetch device instances data
                DeviceInstanceDataPaginationResponse result = apiInstance.fetchDeviceInstancesData(body, period, start, end, aggregate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.fetchDeviceInstancesData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$body = ; // DeviceInstances | 
$period = 1.2; // Double | 
$start = 789; // Long | 
$end = 789; // Long | 
$aggregate = aggregate_example; // String | the aggregate option

try {
    $result = $api_instance->fetchDeviceInstancesData($body, $period, $start, $end, $aggregate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->fetchDeviceInstancesData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $body = WWW::SwaggerClient::Object::DeviceInstances->new(); # DeviceInstances | 
my $period = 1.2; # Double | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $aggregate = aggregate_example; # String | the aggregate option

eval { 
    my $result = $api_instance->fetchDeviceInstancesData(body => $body, period => $period, start => $start, end => $end, aggregate => $aggregate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->fetchDeviceInstancesData: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # fetch device instances data api_response = api_instance.fetch_device_instances_data(body, period=period, start=start, end=end, aggregate=aggregate) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->fetchDeviceInstancesData: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewFetchDeviceInstancesDataParams()
    
// fetch device instances data resp, err := client.LM.FetchDeviceInstancesData(params) if err != nil { fmt.Printf("Exception when calling client.LM.FetchDeviceInstancesData: %v", err.Error()) } fmt.Print(resp) }

Parameters

Body parameters
Name Description
body *
Query parameters
Name Description
period
Double (double)
start
Long (int64)
end
Long (int64)
aggregate
String
the aggregate option

Responses

Status: 200 - successful operation

Status: default - Error


generateReportById

run a report


/report/reports/{id}/executions

Usage and SDK Samples

curl -X POST -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/report/reports/{id}/executions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        GenerateReportRequest body = ; // GenerateReportRequest | 
        try {
            GenerateReportResult result = apiInstance.generateReportById(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#generateReportById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        GenerateReportRequest body = ; // GenerateReportRequest | 
        try {
            GenerateReportResult result = apiInstance.generateReportById(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#generateReportById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
GenerateReportRequest *body = ; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// run a report
[apiInstance generateReportByIdWith:id
    body:body
              completionHandler: ^(GenerateReportResult output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'body':  // {GenerateReportRequest} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.generateReportById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class generateReportByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var body = new GenerateReportRequest(); // GenerateReportRequest |  (optional) 

            try
            {
                // run a report
                GenerateReportResult result = apiInstance.generateReportById(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.generateReportById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$body = ; // GenerateReportRequest | 

try {
    $result = $api_instance->generateReportById($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->generateReportById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $body = WWW::SwaggerClient::Object::GenerateReportRequest->new(); # GenerateReportRequest | 

eval { 
    my $result = $api_instance->generateReportById(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->generateReportById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # run a report api_response = api_instance.generate_report_by_id(id, body=body) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->generateReportById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGenerateReportByIDParams()
    
// run a report resp, err := client.LM.GenerateReportByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GenerateReportByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
body

Responses

Status: 200 - successful operation

Status: default - Error


getAdminById

get user


/setting/admins/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/admins/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            Admin result = apiInstance.getAdminById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAdminById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            Admin result = apiInstance.getAdminById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAdminById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get user
[apiInstance getAdminByIdWith:id
    fields:fields
              completionHandler: ^(Admin output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAdminById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAdminByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get user
                Admin result = apiInstance.getAdminById(id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAdminById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getAdminById($id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAdminById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getAdminById(id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAdminById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get user api_response = api_instance.get_admin_by_id(id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAdminById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAdminByIDParams()
    
// get user resp, err := client.LM.GetAdminByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAdminByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getAdminList

get user list


/setting/admins

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/admins?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            AdminPaginationResponse result = apiInstance.getAdminList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAdminList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            AdminPaginationResponse result = apiInstance.getAdminList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAdminList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get user list
[apiInstance getAdminListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(AdminPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAdminList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAdminListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get user list
                AdminPaginationResponse result = apiInstance.getAdminList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAdminList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getAdminList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAdminList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getAdminList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAdminList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get user list api_response = api_instance.get_admin_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAdminList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAdminListParams()
    
// get user list resp, err := client.LM.GetAdminList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAdminList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getAlertById

get alert


/alert/alerts/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/alert/alerts/{id}?needMessage=&customColumns=&fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        Boolean needMessage = true; // Boolean | 
        String customColumns = customColumns_example; // String | 
        String fields = fields_example; // String | 
        try {
            Alert result = apiInstance.getAlertById(id, needMessage, customColumns, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAlertById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        Boolean needMessage = true; // Boolean | 
        String customColumns = customColumns_example; // String | 
        String fields = fields_example; // String | 
        try {
            Alert result = apiInstance.getAlertById(id, needMessage, customColumns, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAlertById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *id = id_example; // 
Boolean *needMessage = true; //  (optional) (default to false)
String *customColumns = customColumns_example; //  (optional)
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get alert
[apiInstance getAlertByIdWith:id
    needMessage:needMessage
    customColumns:customColumns
    fields:fields
              completionHandler: ^(Alert output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = id_example; // {String} 

var opts = { 
  'needMessage': true, // {Boolean} 
  'customColumns': customColumns_example, // {String} 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAlertById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAlertByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = id_example;  // String | 
            var needMessage = true;  // Boolean |  (optional)  (default to false)
            var customColumns = customColumns_example;  // String |  (optional) 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get alert
                Alert result = apiInstance.getAlertById(id, needMessage, customColumns, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAlertById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = id_example; // String | 
$needMessage = true; // Boolean | 
$customColumns = customColumns_example; // String | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getAlertById($id, $needMessage, $customColumns, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAlertById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = id_example; # String | 
my $needMessage = true; # Boolean | 
my $customColumns = customColumns_example; # String | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getAlertById(id => $id, needMessage => $needMessage, customColumns => $customColumns, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAlertById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get alert api_response = api_instance.get_alert_by_id(id, needMessage=needMessage, customColumns=customColumns, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAlertById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAlertByIDParams()
    
// get alert resp, err := client.LM.GetAlertByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAlertByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
String
Required
Query parameters
Name Description
needMessage
Boolean
customColumns
String
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getAlertList

get alert list


/alert/alerts

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/alert/alerts?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            AlertPaginationResponse result = apiInstance.getAlertList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAlertList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            AlertPaginationResponse result = apiInstance.getAlertList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAlertList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get alert list
[apiInstance getAlertListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(AlertPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAlertList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAlertListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get alert list
                AlertPaginationResponse result = apiInstance.getAlertList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAlertList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getAlertList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAlertList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getAlertList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAlertList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get alert list api_response = api_instance.get_alert_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAlertList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAlertListParams()
    
// get alert list resp, err := client.LM.GetAlertList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAlertList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getAlertListByDeviceGroupId

get device group alerts


/device/groups/{id}/alerts

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{id}/alerts?needMessage=&customColumns=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Boolean needMessage = true; // Boolean | 
        String customColumns = customColumns_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            AlertPaginationResponse result = apiInstance.getAlertListByDeviceGroupId(id, needMessage, customColumns, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAlertListByDeviceGroupId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Boolean needMessage = true; // Boolean | 
        String customColumns = customColumns_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            AlertPaginationResponse result = apiInstance.getAlertListByDeviceGroupId(id, needMessage, customColumns, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAlertListByDeviceGroupId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Boolean *needMessage = true; //  (optional) (default to false)
String *customColumns = customColumns_example; //  (optional)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device group alerts
[apiInstance getAlertListByDeviceGroupIdWith:id
    needMessage:needMessage
    customColumns:customColumns
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(AlertPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'needMessage': true, // {Boolean} 
  'customColumns': customColumns_example, // {String} 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAlertListByDeviceGroupId(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAlertListByDeviceGroupIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var needMessage = true;  // Boolean |  (optional)  (default to false)
            var customColumns = customColumns_example;  // String |  (optional) 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get device group alerts
                AlertPaginationResponse result = apiInstance.getAlertListByDeviceGroupId(id, needMessage, customColumns, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAlertListByDeviceGroupId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$needMessage = true; // Boolean | 
$customColumns = customColumns_example; // String | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getAlertListByDeviceGroupId($id, $needMessage, $customColumns, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAlertListByDeviceGroupId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $needMessage = true; # Boolean | 
my $customColumns = customColumns_example; # String | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getAlertListByDeviceGroupId(id => $id, needMessage => $needMessage, customColumns => $customColumns, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAlertListByDeviceGroupId: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device group alerts api_response = api_instance.get_alert_list_by_device_group_id(id, needMessage=needMessage, customColumns=customColumns, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAlertListByDeviceGroupId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAlertListByDeviceGroupIDParams()
    
// get device group alerts resp, err := client.LM.GetAlertListByDeviceGroupID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAlertListByDeviceGroupID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
needMessage
Boolean
customColumns
String
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getAlertListByDeviceId

get alerts


/device/devices/{id}/alerts

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{id}/alerts?start=&end=&netflowFilter=&needMessage=&customColumns=&bound=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        Boolean needMessage = true; // Boolean | 
        String customColumns = customColumns_example; // String | 
        String bound = bound_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            AlertPaginationResponse result = apiInstance.getAlertListByDeviceId(id, start, end, netflowFilter, needMessage, customColumns, bound, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAlertListByDeviceId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        Boolean needMessage = true; // Boolean | 
        String customColumns = customColumns_example; // String | 
        String bound = bound_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            AlertPaginationResponse result = apiInstance.getAlertListByDeviceId(id, start, end, netflowFilter, needMessage, customColumns, bound, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAlertListByDeviceId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *netflowFilter = netflowFilter_example; //  (optional)
Boolean *needMessage = true; //  (optional) (default to false)
String *customColumns = customColumns_example; //  (optional)
String *bound = bound_example; //  (optional) (default to instances)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get alerts
[apiInstance getAlertListByDeviceIdWith:id
    start:start
    end:end
    netflowFilter:netflowFilter
    needMessage:needMessage
    customColumns:customColumns
    bound:bound
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(AlertPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'netflowFilter': netflowFilter_example, // {String} 
  'needMessage': true, // {Boolean} 
  'customColumns': customColumns_example, // {String} 
  'bound': bound_example, // {String} 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAlertListByDeviceId(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAlertListByDeviceIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var netflowFilter = netflowFilter_example;  // String |  (optional) 
            var needMessage = true;  // Boolean |  (optional)  (default to false)
            var customColumns = customColumns_example;  // String |  (optional) 
            var bound = bound_example;  // String |  (optional)  (default to instances)
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get alerts
                AlertPaginationResponse result = apiInstance.getAlertListByDeviceId(id, start, end, netflowFilter, needMessage, customColumns, bound, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAlertListByDeviceId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$start = 789; // Long | 
$end = 789; // Long | 
$netflowFilter = netflowFilter_example; // String | 
$needMessage = true; // Boolean | 
$customColumns = customColumns_example; // String | 
$bound = bound_example; // String | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getAlertListByDeviceId($id, $start, $end, $netflowFilter, $needMessage, $customColumns, $bound, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAlertListByDeviceId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $netflowFilter = netflowFilter_example; # String | 
my $needMessage = true; # Boolean | 
my $customColumns = customColumns_example; # String | 
my $bound = bound_example; # String | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getAlertListByDeviceId(id => $id, start => $start, end => $end, netflowFilter => $netflowFilter, needMessage => $needMessage, customColumns => $customColumns, bound => $bound, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAlertListByDeviceId: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get alerts api_response = api_instance.get_alert_list_by_device_id(id, start=start, end=end, netflowFilter=netflowFilter, needMessage=needMessage, customColumns=customColumns, bound=bound, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAlertListByDeviceId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAlertListByDeviceIDParams()
    
// get alerts resp, err := client.LM.GetAlertListByDeviceID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAlertListByDeviceID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
start
Long (int64)
end
Long (int64)
netflowFilter
String
needMessage
Boolean
customColumns
String
bound
String
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getAlertRuleById

get alert rule by id


/setting/alert/rules/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/alert/rules/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            AlertRule result = apiInstance.getAlertRuleById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAlertRuleById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            AlertRule result = apiInstance.getAlertRuleById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAlertRuleById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get alert rule by id
[apiInstance getAlertRuleByIdWith:id
    fields:fields
              completionHandler: ^(AlertRule output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAlertRuleById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAlertRuleByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get alert rule by id
                AlertRule result = apiInstance.getAlertRuleById(id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAlertRuleById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getAlertRuleById($id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAlertRuleById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getAlertRuleById(id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAlertRuleById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get alert rule by id api_response = api_instance.get_alert_rule_by_id(id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAlertRuleById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAlertRuleByIDParams()
    
// get alert rule by id resp, err := client.LM.GetAlertRuleByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAlertRuleByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getAlertRuleList

get alert rule list


/setting/alert/rules

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/alert/rules?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            AlertRulePaginationResponse result = apiInstance.getAlertRuleList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAlertRuleList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            AlertRulePaginationResponse result = apiInstance.getAlertRuleList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAlertRuleList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get alert rule list
[apiInstance getAlertRuleListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(AlertRulePaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAlertRuleList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAlertRuleListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get alert rule list
                AlertRulePaginationResponse result = apiInstance.getAlertRuleList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAlertRuleList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getAlertRuleList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAlertRuleList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getAlertRuleList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAlertRuleList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get alert rule list api_response = api_instance.get_alert_rule_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAlertRuleList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAlertRuleListParams()
    
// get alert rule list resp, err := client.LM.GetAlertRuleList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAlertRuleList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getAllSDTListByDeviceId

get SDTs for a device


/device/devices/{id}/sdts

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{id}/sdts?start=&end=&netflowFilter=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            SDTPaginationResponse result = apiInstance.getAllSDTListByDeviceId(id, start, end, netflowFilter, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAllSDTListByDeviceId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            SDTPaginationResponse result = apiInstance.getAllSDTListByDeviceId(id, start, end, netflowFilter, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAllSDTListByDeviceId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *netflowFilter = netflowFilter_example; //  (optional)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get SDTs for a device
[apiInstance getAllSDTListByDeviceIdWith:id
    start:start
    end:end
    netflowFilter:netflowFilter
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(SDTPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'netflowFilter': netflowFilter_example, // {String} 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllSDTListByDeviceId(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAllSDTListByDeviceIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var netflowFilter = netflowFilter_example;  // String |  (optional) 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get SDTs for a device
                SDTPaginationResponse result = apiInstance.getAllSDTListByDeviceId(id, start, end, netflowFilter, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAllSDTListByDeviceId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$start = 789; // Long | 
$end = 789; // Long | 
$netflowFilter = netflowFilter_example; // String | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getAllSDTListByDeviceId($id, $start, $end, $netflowFilter, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAllSDTListByDeviceId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $netflowFilter = netflowFilter_example; # String | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getAllSDTListByDeviceId(id => $id, start => $start, end => $end, netflowFilter => $netflowFilter, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAllSDTListByDeviceId: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get SDTs for a device api_response = api_instance.get_all_sdt_list_by_device_id(id, start=start, end=end, netflowFilter=netflowFilter, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAllSDTListByDeviceId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAllSDTListByDeviceIDParams()
    
// get SDTs for a device resp, err := client.LM.GetAllSDTListByDeviceID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAllSDTListByDeviceID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
start
Long (int64)
end
Long (int64)
netflowFilter
String
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getAllSDTListByWebsiteGroupId

get a list of SDTs for a website group


/website/groups/{id}/sdts

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/website/groups/{id}/sdts?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            SDTPaginationResponse result = apiInstance.getAllSDTListByWebsiteGroupId(id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAllSDTListByWebsiteGroupId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            SDTPaginationResponse result = apiInstance.getAllSDTListByWebsiteGroupId(id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAllSDTListByWebsiteGroupId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get a list of SDTs for a website group
[apiInstance getAllSDTListByWebsiteGroupIdWith:id
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(SDTPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllSDTListByWebsiteGroupId(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAllSDTListByWebsiteGroupIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get a list of SDTs for a website group
                SDTPaginationResponse result = apiInstance.getAllSDTListByWebsiteGroupId(id, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAllSDTListByWebsiteGroupId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getAllSDTListByWebsiteGroupId($id, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAllSDTListByWebsiteGroupId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getAllSDTListByWebsiteGroupId(id => $id, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAllSDTListByWebsiteGroupId: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get a list of SDTs for a website group api_response = api_instance.get_all_sdt_list_by_website_group_id(id, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAllSDTListByWebsiteGroupId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAllSDTListByWebsiteGroupIDParams()
    
// get a list of SDTs for a website group resp, err := client.LM.GetAllSDTListByWebsiteGroupID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAllSDTListByWebsiteGroupID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getApiTokenList

get a list of api tokens across users


/setting/admins/apitokens

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/admins/apitokens?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            ApiTokenPaginationResponse result = apiInstance.getApiTokenList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getApiTokenList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            ApiTokenPaginationResponse result = apiInstance.getApiTokenList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getApiTokenList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get a list of api tokens across users
[apiInstance getApiTokenListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(ApiTokenPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getApiTokenList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getApiTokenListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get a list of api tokens across users
                ApiTokenPaginationResponse result = apiInstance.getApiTokenList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getApiTokenList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getApiTokenList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getApiTokenList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getApiTokenList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getApiTokenList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get a list of api tokens across users api_response = api_instance.get_api_token_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getApiTokenList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAPITokenListParams()
    
// get a list of api tokens across users resp, err := client.LM.GetAPITokenList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAPITokenList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getApiTokenListByAdminId

get api tokens for a user


/setting/admins/{adminId}/apitokens

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/admins/{adminId}/apitokens?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer adminId = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            ApiTokenPaginationResponse result = apiInstance.getApiTokenListByAdminId(adminId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getApiTokenListByAdminId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer adminId = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            ApiTokenPaginationResponse result = apiInstance.getApiTokenListByAdminId(adminId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getApiTokenListByAdminId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *adminId = 56; // 
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get api tokens for a user
[apiInstance getApiTokenListByAdminIdWith:adminId
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(ApiTokenPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var adminId = 56; // {Integer} 

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getApiTokenListByAdminId(adminId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getApiTokenListByAdminIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var adminId = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get api tokens for a user
                ApiTokenPaginationResponse result = apiInstance.getApiTokenListByAdminId(adminId, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getApiTokenListByAdminId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$adminId = 56; // Integer | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getApiTokenListByAdminId($adminId, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getApiTokenListByAdminId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $adminId = 56; # Integer | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getApiTokenListByAdminId(adminId => $adminId, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getApiTokenListByAdminId: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get api tokens for a user api_response = api_instance.get_api_token_list_by_admin_id(adminId, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getApiTokenListByAdminId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAPITokenListByAdminIDParams()
    
// get api tokens for a user resp, err := client.LM.GetAPITokenListByAdminID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAPITokenListByAdminID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
adminId*
Integer (int32)
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getAppliesToFunctionById

get applies to function


/setting/functions/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/functions/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            AppliesToFunction result = apiInstance.getAppliesToFunctionById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAppliesToFunctionById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            AppliesToFunction result = apiInstance.getAppliesToFunctionById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAppliesToFunctionById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// get applies to function
[apiInstance getAppliesToFunctionByIdWith:id
              completionHandler: ^(AppliesToFunction output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAppliesToFunctionById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAppliesToFunctionByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // get applies to function
                AppliesToFunction result = apiInstance.getAppliesToFunctionById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAppliesToFunctionById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->getAppliesToFunctionById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAppliesToFunctionById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->getAppliesToFunctionById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAppliesToFunctionById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get applies to function api_response = api_instance.get_applies_to_function_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAppliesToFunctionById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAppliesToFunctionByIDParams()
    
// get applies to function resp, err := client.LM.GetAppliesToFunctionByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAppliesToFunctionByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


getAppliesToFunctionList

get applies to function list


/setting/functions

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/functions?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            RestAppliesToFunctionPaginationResponse result = apiInstance.getAppliesToFunctionList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAppliesToFunctionList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            RestAppliesToFunctionPaginationResponse result = apiInstance.getAppliesToFunctionList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAppliesToFunctionList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get applies to function list
[apiInstance getAppliesToFunctionListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(RestAppliesToFunctionPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAppliesToFunctionList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAppliesToFunctionListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get applies to function list
                RestAppliesToFunctionPaginationResponse result = apiInstance.getAppliesToFunctionList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAppliesToFunctionList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getAppliesToFunctionList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAppliesToFunctionList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getAppliesToFunctionList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAppliesToFunctionList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get applies to function list api_response = api_instance.get_applies_to_function_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAppliesToFunctionList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAppliesToFunctionListParams()
    
// get applies to function list resp, err := client.LM.GetAppliesToFunctionList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAppliesToFunctionList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getAssociatedDeviceListByDataSourceId

get devices associated with a datasource


/setting/datasources/{id}/devices

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/datasources/{id}/devices?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDataSourceAssociatedPaginationResponse result = apiInstance.getAssociatedDeviceListByDataSourceId(id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAssociatedDeviceListByDataSourceId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDataSourceAssociatedPaginationResponse result = apiInstance.getAssociatedDeviceListByDataSourceId(id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAssociatedDeviceListByDataSourceId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get devices associated with a datasource
[apiInstance getAssociatedDeviceListByDataSourceIdWith:id
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DeviceDataSourceAssociatedPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAssociatedDeviceListByDataSourceId(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAssociatedDeviceListByDataSourceIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get devices associated with a datasource
                DeviceDataSourceAssociatedPaginationResponse result = apiInstance.getAssociatedDeviceListByDataSourceId(id, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAssociatedDeviceListByDataSourceId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getAssociatedDeviceListByDataSourceId($id, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAssociatedDeviceListByDataSourceId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getAssociatedDeviceListByDataSourceId(id => $id, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAssociatedDeviceListByDataSourceId: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get devices associated with a datasource api_response = api_instance.get_associated_device_list_by_data_source_id(id, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAssociatedDeviceListByDataSourceId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAssociatedDeviceListByDataSourceIDParams()
    
// get devices associated with a datasource resp, err := client.LM.GetAssociatedDeviceListByDataSourceID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAssociatedDeviceListByDataSourceID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getAuditLogById

Get audit log by id


/setting/accesslogs/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/accesslogs/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        try {
            AuditLog result = apiInstance.getAuditLogById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAuditLogById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        try {
            AuditLog result = apiInstance.getAuditLogById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAuditLogById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *id = id_example; // 

LMApi *apiInstance = [[LMApi alloc] init];

// Get audit log by id
[apiInstance getAuditLogByIdWith:id
              completionHandler: ^(AuditLog output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = id_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAuditLogById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAuditLogByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = id_example;  // String | 

            try
            {
                // Get audit log by id
                AuditLog result = apiInstance.getAuditLogById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAuditLogById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = id_example; // String | 

try {
    $result = $api_instance->getAuditLogById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAuditLogById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getAuditLogById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAuditLogById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # Get audit log by id api_response = api_instance.get_audit_log_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAuditLogById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAuditLogByIDParams()
    
// Get audit log by id resp, err := client.LM.GetAuditLogByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAuditLogByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - successful operation

Status: default - Error


getAuditLogList

Get audit logs


/setting/accesslogs

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/accesslogs?format=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String format = format_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            AccessLogPaginationResponse result = apiInstance.getAuditLogList(format, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAuditLogList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String format = format_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            AccessLogPaginationResponse result = apiInstance.getAuditLogList(format, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAuditLogList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *format = format_example; //  (optional)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// Get audit logs
[apiInstance getAuditLogListWith:format
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(AccessLogPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'format': format_example, // {String} 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAuditLogList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAuditLogListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var format = format_example;  // String |  (optional) 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // Get audit logs
                AccessLogPaginationResponse result = apiInstance.getAuditLogList(format, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAuditLogList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$format = format_example; // String | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getAuditLogList($format, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAuditLogList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $format = format_example; # String | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getAuditLogList(format => $format, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAuditLogList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # Get audit logs api_response = api_instance.get_audit_log_list(format=format, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getAuditLogList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAuditLogListParams()
    
// Get audit logs resp, err := client.LM.GetAuditLogList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetAuditLogList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
format
String
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getAwsExternalId

Get AWS external id


/aws/externalId

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/aws/externalId"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        try {
            AwsExternalId result = apiInstance.getAwsExternalId();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAwsExternalId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        try {
            AwsExternalId result = apiInstance.getAwsExternalId();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getAwsExternalId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


LMApi *apiInstance = [[LMApi alloc] init];

// Get AWS external id
[apiInstance getAwsExternalIdWithCompletionHandler: 
              ^(AwsExternalId output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAwsExternalId(callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getAwsExternalIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();

            try
            {
                // Get AWS external id
                AwsExternalId result = apiInstance.getAwsExternalId();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getAwsExternalId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();

try {
    $result = $api_instance->getAwsExternalId();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getAwsExternalId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();

eval { 
    my $result = $api_instance->getAwsExternalId();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getAwsExternalId: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
try:
    # Get AWS external id
    api_response = api_instance.get_aws_external_id()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LMApi->getAwsExternalId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetAwsExternalIDParams()
// Get AWS external id
resp, err := client.LM.GetAwsExternalID(params)
if err != nil {
fmt.Printf("Exception when calling client.LM.GetAwsExternalID: %v", err.Error())
}
fmt.Print(resp)
}

Parameters

Responses

Status: 200 - successful operation

Status: default - Error


getCollectorById

get collector


/setting/collector/collectors/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/collector/collectors/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            Collector result = apiInstance.getCollectorById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getCollectorById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            Collector result = apiInstance.getCollectorById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getCollectorById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get collector
[apiInstance getCollectorByIdWith:id
    fields:fields
              completionHandler: ^(Collector output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCollectorById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getCollectorByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get collector
                Collector result = apiInstance.getCollectorById(id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getCollectorById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getCollectorById($id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getCollectorById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getCollectorById(id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getCollectorById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get collector api_response = api_instance.get_collector_by_id(id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getCollectorById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetCollectorByIDParams()
    
// get collector resp, err := client.LM.GetCollectorByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetCollectorByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getCollectorGroupById

get collector group


/setting/collector/groups/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/collector/groups/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            CollectorGroup result = apiInstance.getCollectorGroupById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getCollectorGroupById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            CollectorGroup result = apiInstance.getCollectorGroupById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getCollectorGroupById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get collector group
[apiInstance getCollectorGroupByIdWith:id
    fields:fields
              completionHandler: ^(CollectorGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCollectorGroupById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getCollectorGroupByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get collector group
                CollectorGroup result = apiInstance.getCollectorGroupById(id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getCollectorGroupById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getCollectorGroupById($id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getCollectorGroupById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getCollectorGroupById(id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getCollectorGroupById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get collector group api_response = api_instance.get_collector_group_by_id(id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getCollectorGroupById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetCollectorGroupByIDParams()
    
// get collector group resp, err := client.LM.GetCollectorGroupByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetCollectorGroupByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getCollectorGroupList

get collector group list


/setting/collector/groups

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/collector/groups?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            CollectorGroupPaginationResponse result = apiInstance.getCollectorGroupList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getCollectorGroupList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            CollectorGroupPaginationResponse result = apiInstance.getCollectorGroupList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getCollectorGroupList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get collector group list
[apiInstance getCollectorGroupListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(CollectorGroupPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCollectorGroupList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getCollectorGroupListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get collector group list
                CollectorGroupPaginationResponse result = apiInstance.getCollectorGroupList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getCollectorGroupList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getCollectorGroupList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getCollectorGroupList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getCollectorGroupList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getCollectorGroupList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get collector group list api_response = api_instance.get_collector_group_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getCollectorGroupList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetCollectorGroupListParams()
    
// get collector group list resp, err := client.LM.GetCollectorGroupList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetCollectorGroupList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getCollectorInstaller

get collector installer


/setting/collector/collectors/{collectorId}/installers/{osAndArch}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/collector/collectors/{collectorId}/installers/{osAndArch}?collectorVersion=&token=&monitorOthers=&collectorSize=&useEA="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer collectorId = 56; // Integer | 
        String osAndArch = osAndArch_example; // String | 
        Integer collectorVersion = 56; // Integer | The version of the installer you'd like to download. This defaults to the latest GD Collector, unless useEA is true
        String token = token_example; // String | 
        Boolean monitorOthers = true; // Boolean | 
        String collectorSize = collectorSize_example; // String | The size of the Collector you'd like to install. Options are nano, small (requires 2GB memory), medium (requires 4GB memory), large (requires 8GB memory), extra large (requires 16GB memory), double extra large (requires 32GB memory). Requires collector version 22.180 or higher. Defaults to small
        Boolean useEA = true; // Boolean | If true, the latest EA Collector version will be used. Defaults to false
        try {
            File result = apiInstance.getCollectorInstaller(collectorId, osAndArch, collectorVersion, token, monitorOthers, collectorSize, useEA);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getCollectorInstaller");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer collectorId = 56; // Integer | 
        String osAndArch = osAndArch_example; // String | 
        Integer collectorVersion = 56; // Integer | The version of the installer you'd like to download. This defaults to the latest GD Collector, unless useEA is true
        String token = token_example; // String | 
        Boolean monitorOthers = true; // Boolean | 
        String collectorSize = collectorSize_example; // String | The size of the Collector you'd like to install. Options are nano, small (requires 2GB memory), medium (requires 4GB memory), large (requires 8GB memory), extra large (requires 16GB memory), double extra large (requires 32GB memory). Requires collector version 22.180 or higher. Defaults to small
        Boolean useEA = true; // Boolean | If true, the latest EA Collector version will be used. Defaults to false
        try {
            File result = apiInstance.getCollectorInstaller(collectorId, osAndArch, collectorVersion, token, monitorOthers, collectorSize, useEA);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getCollectorInstaller");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *collectorId = 56; // 
String *osAndArch = osAndArch_example; // 
Integer *collectorVersion = 56; // The version of the installer you'd like to download. This defaults to the latest GD Collector, unless useEA is true (optional)
String *token = token_example; //  (optional)
Boolean *monitorOthers = true; //  (optional) (default to true)
String *collectorSize = collectorSize_example; // The size of the Collector you'd like to install. Options are nano, small (requires 2GB memory), medium (requires 4GB memory), large (requires 8GB memory), extra large (requires 16GB memory), double extra large (requires 32GB memory). Requires collector version 22.180 or higher. Defaults to small (optional) (default to medium)
Boolean *useEA = true; // If true, the latest EA Collector version will be used. Defaults to false (optional) (default to false)

LMApi *apiInstance = [[LMApi alloc] init];

// get collector installer
[apiInstance getCollectorInstallerWith:collectorId
    osAndArch:osAndArch
    collectorVersion:collectorVersion
    token:token
    monitorOthers:monitorOthers
    collectorSize:collectorSize
    useEA:useEA
              completionHandler: ^(File output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var collectorId = 56; // {Integer} 

var osAndArch = osAndArch_example; // {String} 

var opts = { 
  'collectorVersion': 56, // {Integer} The version of the installer you'd like to download. This defaults to the latest GD Collector, unless useEA is true
  'token': token_example, // {String} 
  'monitorOthers': true, // {Boolean} 
  'collectorSize': collectorSize_example, // {String} The size of the Collector you'd like to install. Options are nano, small (requires 2GB memory), medium (requires 4GB memory), large (requires 8GB memory), extra large (requires 16GB memory), double extra large (requires 32GB memory). Requires collector version 22.180 or higher. Defaults to small
  'useEA': true // {Boolean} If true, the latest EA Collector version will be used. Defaults to false
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCollectorInstaller(collectorId, osAndArch, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getCollectorInstallerExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var collectorId = 56;  // Integer | 
            var osAndArch = osAndArch_example;  // String | 
            var collectorVersion = 56;  // Integer | The version of the installer you'd like to download. This defaults to the latest GD Collector, unless useEA is true (optional) 
            var token = token_example;  // String |  (optional) 
            var monitorOthers = true;  // Boolean |  (optional)  (default to true)
            var collectorSize = collectorSize_example;  // String | The size of the Collector you'd like to install. Options are nano, small (requires 2GB memory), medium (requires 4GB memory), large (requires 8GB memory), extra large (requires 16GB memory), double extra large (requires 32GB memory). Requires collector version 22.180 or higher. Defaults to small (optional)  (default to medium)
            var useEA = true;  // Boolean | If true, the latest EA Collector version will be used. Defaults to false (optional)  (default to false)

            try
            {
                // get collector installer
                File result = apiInstance.getCollectorInstaller(collectorId, osAndArch, collectorVersion, token, monitorOthers, collectorSize, useEA);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getCollectorInstaller: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$collectorId = 56; // Integer | 
$osAndArch = osAndArch_example; // String | 
$collectorVersion = 56; // Integer | The version of the installer you'd like to download. This defaults to the latest GD Collector, unless useEA is true
$token = token_example; // String | 
$monitorOthers = true; // Boolean | 
$collectorSize = collectorSize_example; // String | The size of the Collector you'd like to install. Options are nano, small (requires 2GB memory), medium (requires 4GB memory), large (requires 8GB memory), extra large (requires 16GB memory), double extra large (requires 32GB memory). Requires collector version 22.180 or higher. Defaults to small
$useEA = true; // Boolean | If true, the latest EA Collector version will be used. Defaults to false

try {
    $result = $api_instance->getCollectorInstaller($collectorId, $osAndArch, $collectorVersion, $token, $monitorOthers, $collectorSize, $useEA);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getCollectorInstaller: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $collectorId = 56; # Integer | 
my $osAndArch = osAndArch_example; # String | 
my $collectorVersion = 56; # Integer | The version of the installer you'd like to download. This defaults to the latest GD Collector, unless useEA is true
my $token = token_example; # String | 
my $monitorOthers = true; # Boolean | 
my $collectorSize = collectorSize_example; # String | The size of the Collector you'd like to install. Options are nano, small (requires 2GB memory), medium (requires 4GB memory), large (requires 8GB memory), extra large (requires 16GB memory), double extra large (requires 32GB memory). Requires collector version 22.180 or higher. Defaults to small
my $useEA = true; # Boolean | If true, the latest EA Collector version will be used. Defaults to false

eval { 
    my $result = $api_instance->getCollectorInstaller(collectorId => $collectorId, osAndArch => $osAndArch, collectorVersion => $collectorVersion, token => $token, monitorOthers => $monitorOthers, collectorSize => $collectorSize, useEA => $useEA);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getCollectorInstaller: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get collector installer api_response = api_instance.get_collector_installer(collectorId, osAndArch, collectorVersion=collectorVersion, token=token, monitorOthers=monitorOthers, collectorSize=collectorSize, useEA=useEA) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getCollectorInstaller: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetCollectorInstallerParams()
    
// get collector installer resp, err := client.LM.GetCollectorInstaller(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetCollectorInstaller: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
collectorId*
Integer (int32)
Required
osAndArch*
String
Required
Query parameters
Name Description
collectorVersion
Integer (int32)
The version of the installer you'd like to download. This defaults to the latest GD Collector, unless useEA is true
token
String
monitorOthers
Boolean
collectorSize
String
The size of the Collector you'd like to install. Options are nano, small (requires 2GB memory), medium (requires 4GB memory), large (requires 8GB memory), extra large (requires 16GB memory), double extra large (requires 32GB memory). Requires collector version 22.180 or higher. Defaults to small
useEA
Boolean
If true, the latest EA Collector version will be used. Defaults to false

Responses

Status: 200 - successful operation

Status: default - Error


getCollectorList

get collector list


/setting/collector/collectors

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/collector/collectors?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            CollectorPaginationResponse result = apiInstance.getCollectorList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getCollectorList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            CollectorPaginationResponse result = apiInstance.getCollectorList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getCollectorList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get collector list
[apiInstance getCollectorListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(CollectorPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCollectorList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getCollectorListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get collector list
                CollectorPaginationResponse result = apiInstance.getCollectorList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getCollectorList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getCollectorList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getCollectorList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getCollectorList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getCollectorList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get collector list api_response = api_instance.get_collector_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getCollectorList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetCollectorListParams()
    
// get collector list resp, err := client.LM.GetCollectorList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetCollectorList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getCollectorVersionList

get collector version list


/setting/collector/collectors/versions

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/collector/collectors/versions?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            CollectorVersionPaginationResponse result = apiInstance.getCollectorVersionList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getCollectorVersionList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            CollectorVersionPaginationResponse result = apiInstance.getCollectorVersionList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getCollectorVersionList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get collector version list
[apiInstance getCollectorVersionListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(CollectorVersionPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCollectorVersionList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getCollectorVersionListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get collector version list
                CollectorVersionPaginationResponse result = apiInstance.getCollectorVersionList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getCollectorVersionList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getCollectorVersionList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getCollectorVersionList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getCollectorVersionList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getCollectorVersionList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get collector version list api_response = api_instance.get_collector_version_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getCollectorVersionList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetCollectorVersionListParams()
    
// get collector version list resp, err := client.LM.GetCollectorVersionList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetCollectorVersionList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDashboardById

get dashboard


/dashboard/dashboards/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/dashboard/dashboards/{id}?template=&format=&fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Boolean template = true; // Boolean | 
        String format = format_example; // String | 
        String fields = fields_example; // String | 
        try {
            Dashboard result = apiInstance.getDashboardById(id, template, format, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDashboardById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Boolean template = true; // Boolean | 
        String format = format_example; // String | 
        String fields = fields_example; // String | 
        try {
            Dashboard result = apiInstance.getDashboardById(id, template, format, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDashboardById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Boolean *template = true; //  (optional) (default to false)
String *format = format_example; //  (optional) (default to json)
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get dashboard
[apiInstance getDashboardByIdWith:id
    template:template
    format:format
    fields:fields
              completionHandler: ^(Dashboard output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'template': true, // {Boolean} 
  'format': format_example, // {String} 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDashboardById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDashboardByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var template = true;  // Boolean |  (optional)  (default to false)
            var format = format_example;  // String |  (optional)  (default to json)
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get dashboard
                Dashboard result = apiInstance.getDashboardById(id, template, format, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDashboardById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$template = true; // Boolean | 
$format = format_example; // String | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDashboardById($id, $template, $format, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDashboardById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $template = true; # Boolean | 
my $format = format_example; # String | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDashboardById(id => $id, template => $template, format => $format, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDashboardById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get dashboard api_response = api_instance.get_dashboard_by_id(id, template=template, format=format, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDashboardById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDashboardByIDParams()
    
// get dashboard resp, err := client.LM.GetDashboardByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDashboardByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
template
Boolean
format
String
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDashboardGroupById

get dashboard group


/dashboard/groups/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/dashboard/groups/{id}?template=&format=&fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Boolean template = true; // Boolean | 
        String format = format_example; // String | 
        String fields = fields_example; // String | 
        try {
            DashboardGroup result = apiInstance.getDashboardGroupById(id, template, format, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDashboardGroupById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Boolean template = true; // Boolean | 
        String format = format_example; // String | 
        String fields = fields_example; // String | 
        try {
            DashboardGroup result = apiInstance.getDashboardGroupById(id, template, format, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDashboardGroupById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Boolean *template = true; //  (optional) (default to false)
String *format = format_example; //  (optional) (default to json)
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get dashboard group
[apiInstance getDashboardGroupByIdWith:id
    template:template
    format:format
    fields:fields
              completionHandler: ^(DashboardGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'template': true, // {Boolean} 
  'format': format_example, // {String} 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDashboardGroupById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDashboardGroupByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var template = true;  // Boolean |  (optional)  (default to false)
            var format = format_example;  // String |  (optional)  (default to json)
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get dashboard group
                DashboardGroup result = apiInstance.getDashboardGroupById(id, template, format, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDashboardGroupById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$template = true; // Boolean | 
$format = format_example; // String | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDashboardGroupById($id, $template, $format, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDashboardGroupById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $template = true; # Boolean | 
my $format = format_example; # String | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDashboardGroupById(id => $id, template => $template, format => $format, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDashboardGroupById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get dashboard group api_response = api_instance.get_dashboard_group_by_id(id, template=template, format=format, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDashboardGroupById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDashboardGroupByIDParams()
    
// get dashboard group resp, err := client.LM.GetDashboardGroupByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDashboardGroupByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
template
Boolean
format
String
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDashboardGroupList

get dashboard group list


/dashboard/groups

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/dashboard/groups?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DashboardGroupPaginationResponse result = apiInstance.getDashboardGroupList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDashboardGroupList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DashboardGroupPaginationResponse result = apiInstance.getDashboardGroupList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDashboardGroupList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get dashboard group list
[apiInstance getDashboardGroupListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DashboardGroupPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDashboardGroupList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDashboardGroupListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get dashboard group list
                DashboardGroupPaginationResponse result = apiInstance.getDashboardGroupList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDashboardGroupList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDashboardGroupList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDashboardGroupList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDashboardGroupList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDashboardGroupList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get dashboard group list api_response = api_instance.get_dashboard_group_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDashboardGroupList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDashboardGroupListParams()
    
// get dashboard group list resp, err := client.LM.GetDashboardGroupList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDashboardGroupList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDashboardList

get dashboard list


/dashboard/dashboards

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/dashboard/dashboards?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DashboardPaginationResponse result = apiInstance.getDashboardList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDashboardList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DashboardPaginationResponse result = apiInstance.getDashboardList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDashboardList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get dashboard list
[apiInstance getDashboardListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DashboardPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDashboardList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDashboardListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get dashboard list
                DashboardPaginationResponse result = apiInstance.getDashboardList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDashboardList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDashboardList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDashboardList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDashboardList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDashboardList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get dashboard list api_response = api_instance.get_dashboard_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDashboardList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDashboardListParams()
    
// get dashboard list resp, err := client.LM.GetDashboardList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDashboardList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDataSourceOverviewGraphById

get datasource overview graph by id


/setting/datasources/{dsId}/ographs/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/datasources/{dsId}/ographs/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer dsId = 56; // Integer | 
        Integer id = 56; // Integer | 
        try {
            DataSourceOverviewGraph result = apiInstance.getDataSourceOverviewGraphById(dsId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDataSourceOverviewGraphById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer dsId = 56; // Integer | 
        Integer id = 56; // Integer | 
        try {
            DataSourceOverviewGraph result = apiInstance.getDataSourceOverviewGraphById(dsId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDataSourceOverviewGraphById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *dsId = 56; // 
Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// get datasource overview graph by id
[apiInstance getDataSourceOverviewGraphByIdWith:dsId
    id:id
              completionHandler: ^(DataSourceOverviewGraph output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var dsId = 56; // {Integer} 

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDataSourceOverviewGraphById(dsId, id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDataSourceOverviewGraphByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var dsId = 56;  // Integer | 
            var id = 56;  // Integer | 

            try
            {
                // get datasource overview graph by id
                DataSourceOverviewGraph result = apiInstance.getDataSourceOverviewGraphById(dsId, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDataSourceOverviewGraphById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$dsId = 56; // Integer | 
$id = 56; // Integer | 

try {
    $result = $api_instance->getDataSourceOverviewGraphById($dsId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDataSourceOverviewGraphById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $dsId = 56; # Integer | 
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->getDataSourceOverviewGraphById(dsId => $dsId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDataSourceOverviewGraphById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get datasource overview graph by id api_response = api_instance.get_data_source_overview_graph_by_id(dsId, id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDataSourceOverviewGraphById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDataSourceOverviewGraphByIDParams()
    
// get datasource overview graph by id resp, err := client.LM.GetDataSourceOverviewGraphByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDataSourceOverviewGraphByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
dsId*
Integer (int32)
Required
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


getDataSourceOverviewGraphList

get datasource overview graph list


/setting/datasources/{dsId}/ographs

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/datasources/{dsId}/ographs?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer dsId = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DatasourceOverviewGraphPaginationResponse result = apiInstance.getDataSourceOverviewGraphList(dsId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDataSourceOverviewGraphList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer dsId = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DatasourceOverviewGraphPaginationResponse result = apiInstance.getDataSourceOverviewGraphList(dsId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDataSourceOverviewGraphList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *dsId = 56; // 
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get datasource overview graph list
[apiInstance getDataSourceOverviewGraphListWith:dsId
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DatasourceOverviewGraphPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var dsId = 56; // {Integer} 

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDataSourceOverviewGraphList(dsId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDataSourceOverviewGraphListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var dsId = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get datasource overview graph list
                DatasourceOverviewGraphPaginationResponse result = apiInstance.getDataSourceOverviewGraphList(dsId, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDataSourceOverviewGraphList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$dsId = 56; // Integer | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDataSourceOverviewGraphList($dsId, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDataSourceOverviewGraphList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $dsId = 56; # Integer | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDataSourceOverviewGraphList(dsId => $dsId, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDataSourceOverviewGraphList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get datasource overview graph list api_response = api_instance.get_data_source_overview_graph_list(dsId, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDataSourceOverviewGraphList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDataSourceOverviewGraphListParams()
    
// get datasource overview graph list resp, err := client.LM.GetDataSourceOverviewGraphList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDataSourceOverviewGraphList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
dsId*
Integer (int32)
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDatasourceById

get datasource by id


/setting/datasources/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/datasources/{id}?format=&fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String format = format_example; // String | 
        String fields = fields_example; // String | 
        try {
            DataSource result = apiInstance.getDatasourceById(id, format, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDatasourceById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String format = format_example; // String | 
        String fields = fields_example; // String | 
        try {
            DataSource result = apiInstance.getDatasourceById(id, format, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDatasourceById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *format = format_example; //  (optional) (default to json)
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get datasource by id
[apiInstance getDatasourceByIdWith:id
    format:format
    fields:fields
              completionHandler: ^(DataSource output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'format': format_example, // {String} 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDatasourceById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDatasourceByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var format = format_example;  // String |  (optional)  (default to json)
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get datasource by id
                DataSource result = apiInstance.getDatasourceById(id, format, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDatasourceById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$format = format_example; // String | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDatasourceById($id, $format, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDatasourceById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $format = format_example; # String | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDatasourceById(id => $id, format => $format, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDatasourceById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get datasource by id api_response = api_instance.get_datasource_by_id(id, format=format, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDatasourceById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDatasourceByIDParams()
    
// get datasource by id resp, err := client.LM.GetDatasourceByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDatasourceByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
format
String
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDatasourceList

get datasource list


/setting/datasources

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/datasources?format=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String format = format_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DatasourcePaginationResponse result = apiInstance.getDatasourceList(format, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDatasourceList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String format = format_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DatasourcePaginationResponse result = apiInstance.getDatasourceList(format, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDatasourceList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *format = format_example; //  (optional) (default to json)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get datasource list
[apiInstance getDatasourceListWith:format
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DatasourcePaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'format': format_example, // {String} 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDatasourceList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDatasourceListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var format = format_example;  // String |  (optional)  (default to json)
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get datasource list
                DatasourcePaginationResponse result = apiInstance.getDatasourceList(format, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDatasourceList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$format = format_example; // String | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDatasourceList($format, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDatasourceList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $format = format_example; # String | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDatasourceList(format => $format, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDatasourceList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get datasource list api_response = api_instance.get_datasource_list(format=format, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDatasourceList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDatasourceListParams()
    
// get datasource list resp, err := client.LM.GetDatasourceList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDatasourceList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
format
String
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDebugCommandResult

Get the result of a Collector debug command


/debug/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/debug/{id}?collectorId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        Integer collectorId = 56; // Integer | 
        try {
            Debug result = apiInstance.getDebugCommandResult(id, collectorId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDebugCommandResult");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        Integer collectorId = 56; // Integer | 
        try {
            Debug result = apiInstance.getDebugCommandResult(id, collectorId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDebugCommandResult");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *id = id_example; // 
Integer *collectorId = 56; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// Get the result of a Collector debug command
[apiInstance getDebugCommandResultWith:id
    collectorId:collectorId
              completionHandler: ^(Debug output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = id_example; // {String} 

var opts = { 
  'collectorId': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDebugCommandResult(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDebugCommandResultExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = id_example;  // String | 
            var collectorId = 56;  // Integer |  (optional) 

            try
            {
                // Get the result of a Collector debug command
                Debug result = apiInstance.getDebugCommandResult(id, collectorId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDebugCommandResult: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = id_example; // String | 
$collectorId = 56; // Integer | 

try {
    $result = $api_instance->getDebugCommandResult($id, $collectorId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDebugCommandResult: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = id_example; # String | 
my $collectorId = 56; # Integer | 

eval { 
    my $result = $api_instance->getDebugCommandResult(id => $id, collectorId => $collectorId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDebugCommandResult: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # Get the result of a Collector debug command api_response = api_instance.get_debug_command_result(id, collectorId=collectorId) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDebugCommandResult: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDebugCommandResultParams()
    
// Get the result of a Collector debug command resp, err := client.LM.GetDebugCommandResult(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDebugCommandResult: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
String
Required
Query parameters
Name Description
collectorId
Integer (int32)

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceById

get device by id


/device/devices/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{id}?start=&end=&netflowFilter=&fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String fields = fields_example; // String | 
        try {
            Device result = apiInstance.getDeviceById(id, start, end, netflowFilter, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String fields = fields_example; // String | 
        try {
            Device result = apiInstance.getDeviceById(id, start, end, netflowFilter, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *netflowFilter = netflowFilter_example; //  (optional)
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device by id
[apiInstance getDeviceByIdWith:id
    start:start
    end:end
    netflowFilter:netflowFilter
    fields:fields
              completionHandler: ^(Device output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'netflowFilter': netflowFilter_example, // {String} 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var netflowFilter = netflowFilter_example;  // String |  (optional) 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get device by id
                Device result = apiInstance.getDeviceById(id, start, end, netflowFilter, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$start = 789; // Long | 
$end = 789; // Long | 
$netflowFilter = netflowFilter_example; // String | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDeviceById($id, $start, $end, $netflowFilter, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $netflowFilter = netflowFilter_example; # String | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDeviceById(id => $id, start => $start, end => $end, netflowFilter => $netflowFilter, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device by id api_response = api_instance.get_device_by_id(id, start=start, end=end, netflowFilter=netflowFilter, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceByIDParams()
    
// get device by id resp, err := client.LM.GetDeviceByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
start
Long (int64)
end
Long (int64)
netflowFilter
String
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceConfigSourceConfigById

get a config for a device


/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{instanceId}/config/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{instanceId}/config/{id}?format=&startEpoch=&fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | 
        Integer instanceId = 56; // Integer | 
        String id = id_example; // String | 
        String format = format_example; // String | 
        Long startEpoch = 789; // Long | 
        String fields = fields_example; // String | 
        try {
            DeviceDataSourceInstanceConfig result = apiInstance.getDeviceConfigSourceConfigById(deviceId, hdsId, instanceId, id, format, startEpoch, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceConfigSourceConfigById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | 
        Integer instanceId = 56; // Integer | 
        String id = id_example; // String | 
        String format = format_example; // String | 
        Long startEpoch = 789; // Long | 
        String fields = fields_example; // String | 
        try {
            DeviceDataSourceInstanceConfig result = apiInstance.getDeviceConfigSourceConfigById(deviceId, hdsId, instanceId, id, format, startEpoch, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceConfigSourceConfigById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *hdsId = 56; // 
Integer *instanceId = 56; // 
String *id = id_example; // 
String *format = format_example; //  (optional) (default to json)
Long *startEpoch = 789; //  (optional)
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get a config for a device
[apiInstance getDeviceConfigSourceConfigByIdWith:deviceId
    hdsId:hdsId
    instanceId:instanceId
    id:id
    format:format
    startEpoch:startEpoch
    fields:fields
              completionHandler: ^(DeviceDataSourceInstanceConfig output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var hdsId = 56; // {Integer} 

var instanceId = 56; // {Integer} 

var id = id_example; // {String} 

var opts = { 
  'format': format_example, // {String} 
  'startEpoch': 789, // {Long} 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceConfigSourceConfigById(deviceId, hdsId, instanceId, id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceConfigSourceConfigByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var hdsId = 56;  // Integer | 
            var instanceId = 56;  // Integer | 
            var id = id_example;  // String | 
            var format = format_example;  // String |  (optional)  (default to json)
            var startEpoch = 789;  // Long |  (optional) 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get a config for a device
                DeviceDataSourceInstanceConfig result = apiInstance.getDeviceConfigSourceConfigById(deviceId, hdsId, instanceId, id, format, startEpoch, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceConfigSourceConfigById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$hdsId = 56; // Integer | 
$instanceId = 56; // Integer | 
$id = id_example; // String | 
$format = format_example; // String | 
$startEpoch = 789; // Long | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDeviceConfigSourceConfigById($deviceId, $hdsId, $instanceId, $id, $format, $startEpoch, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceConfigSourceConfigById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $hdsId = 56; # Integer | 
my $instanceId = 56; # Integer | 
my $id = id_example; # String | 
my $format = format_example; # String | 
my $startEpoch = 789; # Long | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDeviceConfigSourceConfigById(deviceId => $deviceId, hdsId => $hdsId, instanceId => $instanceId, id => $id, format => $format, startEpoch => $startEpoch, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceConfigSourceConfigById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get a config for a device api_response = api_instance.get_device_config_source_config_by_id(deviceId, hdsId, instanceId, id, format=format, startEpoch=startEpoch, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceConfigSourceConfigById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceConfigSourceConfigByIDParams()
    
// get a config for a device resp, err := client.LM.GetDeviceConfigSourceConfigByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceConfigSourceConfigByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
hdsId*
Integer (int32)
Required
instanceId*
Integer (int32)
Required
id*
String
Required
Query parameters
Name Description
format
String
startEpoch
Long (int64)
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceConfigSourceConfigList

get detailed config information for the instance


/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{instanceId}/config

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{instanceId}/config?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | 
        Integer instanceId = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDatasourceInstanceConfigPaginationResponse result = apiInstance.getDeviceConfigSourceConfigList(deviceId, hdsId, instanceId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceConfigSourceConfigList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | 
        Integer instanceId = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDatasourceInstanceConfigPaginationResponse result = apiInstance.getDeviceConfigSourceConfigList(deviceId, hdsId, instanceId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceConfigSourceConfigList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *hdsId = 56; // 
Integer *instanceId = 56; // 
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get detailed config information for the instance
[apiInstance getDeviceConfigSourceConfigListWith:deviceId
    hdsId:hdsId
    instanceId:instanceId
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DeviceDatasourceInstanceConfigPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var hdsId = 56; // {Integer} 

var instanceId = 56; // {Integer} 

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceConfigSourceConfigList(deviceId, hdsId, instanceId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceConfigSourceConfigListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var hdsId = 56;  // Integer | 
            var instanceId = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get detailed config information for the instance
                DeviceDatasourceInstanceConfigPaginationResponse result = apiInstance.getDeviceConfigSourceConfigList(deviceId, hdsId, instanceId, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceConfigSourceConfigList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$hdsId = 56; // Integer | 
$instanceId = 56; // Integer | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDeviceConfigSourceConfigList($deviceId, $hdsId, $instanceId, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceConfigSourceConfigList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $hdsId = 56; # Integer | 
my $instanceId = 56; # Integer | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDeviceConfigSourceConfigList(deviceId => $deviceId, hdsId => $hdsId, instanceId => $instanceId, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceConfigSourceConfigList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get detailed config information for the instance api_response = api_instance.get_device_config_source_config_list(deviceId, hdsId, instanceId, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceConfigSourceConfigList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceConfigSourceConfigListParams()
    
// get detailed config information for the instance resp, err := client.LM.GetDeviceConfigSourceConfigList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceConfigSourceConfigList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
hdsId*
Integer (int32)
Required
instanceId*
Integer (int32)
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceById

get device datasource


/device/devices/{deviceId}/devicedatasources/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceDataSource result = apiInstance.getDeviceDatasourceById(deviceId, id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceDataSource result = apiInstance.getDeviceDatasourceById(deviceId, id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *id = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device datasource 
[apiInstance getDeviceDatasourceByIdWith:deviceId
    id:id
    fields:fields
              completionHandler: ^(DeviceDataSource output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceById(deviceId, id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get device datasource 
                DeviceDataSource result = apiInstance.getDeviceDatasourceById(deviceId, id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$id = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDeviceDatasourceById($deviceId, $id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $id = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDeviceDatasourceById(deviceId => $deviceId, id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device datasource api_response = api_instance.get_device_datasource_by_id(deviceId, id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceByIDParams()
    
// get device datasource resp, err := client.LM.GetDeviceDatasourceByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceDataById

get device datasource data


/device/devices/{deviceId}/devicedatasources/{id}/data

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{id}/data?period=&start=&end=&datapoints=&format=&aggregate="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer id = 56; // Integer | 
        Double period = 1.2; // Double | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String datapoints = datapoints_example; // String | 
        String format = format_example; // String | 
        String aggregate = aggregate_example; // String | the aggregate option
        try {
            DeviceDataSourceData result = apiInstance.getDeviceDatasourceDataById(deviceId, id, period, start, end, datapoints, format, aggregate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceDataById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer id = 56; // Integer | 
        Double period = 1.2; // Double | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String datapoints = datapoints_example; // String | 
        String format = format_example; // String | 
        String aggregate = aggregate_example; // String | the aggregate option
        try {
            DeviceDataSourceData result = apiInstance.getDeviceDatasourceDataById(deviceId, id, period, start, end, datapoints, format, aggregate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceDataById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *id = 56; // 
Double *period = 1.2; //  (optional) (default to 1.0)
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *datapoints = datapoints_example; //  (optional)
String *format = format_example; //  (optional) (default to json)
String *aggregate = aggregate_example; // the aggregate option (optional) (default to none)

LMApi *apiInstance = [[LMApi alloc] init];

// get device datasource data 
[apiInstance getDeviceDatasourceDataByIdWith:deviceId
    id:id
    period:period
    start:start
    end:end
    datapoints:datapoints
    format:format
    aggregate:aggregate
              completionHandler: ^(DeviceDataSourceData output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var id = 56; // {Integer} 

var opts = { 
  'period': 1.2, // {Double} 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'datapoints': datapoints_example, // {String} 
  'format': format_example, // {String} 
  'aggregate': aggregate_example // {String} the aggregate option
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceDataById(deviceId, id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceDataByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var id = 56;  // Integer | 
            var period = 1.2;  // Double |  (optional)  (default to 1.0)
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var datapoints = datapoints_example;  // String |  (optional) 
            var format = format_example;  // String |  (optional)  (default to json)
            var aggregate = aggregate_example;  // String | the aggregate option (optional)  (default to none)

            try
            {
                // get device datasource data 
                DeviceDataSourceData result = apiInstance.getDeviceDatasourceDataById(deviceId, id, period, start, end, datapoints, format, aggregate);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceDataById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$id = 56; // Integer | 
$period = 1.2; // Double | 
$start = 789; // Long | 
$end = 789; // Long | 
$datapoints = datapoints_example; // String | 
$format = format_example; // String | 
$aggregate = aggregate_example; // String | the aggregate option

try {
    $result = $api_instance->getDeviceDatasourceDataById($deviceId, $id, $period, $start, $end, $datapoints, $format, $aggregate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceDataById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $id = 56; # Integer | 
my $period = 1.2; # Double | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $datapoints = datapoints_example; # String | 
my $format = format_example; # String | 
my $aggregate = aggregate_example; # String | the aggregate option

eval { 
    my $result = $api_instance->getDeviceDatasourceDataById(deviceId => $deviceId, id => $id, period => $period, start => $start, end => $end, datapoints => $datapoints, format => $format, aggregate => $aggregate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceDataById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device datasource data api_response = api_instance.get_device_datasource_data_by_id(deviceId, id, period=period, start=start, end=end, datapoints=datapoints, format=format, aggregate=aggregate) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceDataById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceDataByIDParams()
    
// get device datasource data resp, err := client.LM.GetDeviceDatasourceDataByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceDataByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
id*
Integer (int32)
Required
Query parameters
Name Description
period
Double (double)
start
Long (int64)
end
Long (int64)
datapoints
String
format
String
aggregate
String
the aggregate option

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceInstanceAlertSettingById

get device instance alert setting


/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{instanceId}/alertsettings/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{instanceId}/alertsettings/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | Device-DataSource ID
        Integer instanceId = 56; // Integer | 
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceDataSourceInstanceAlertSetting result = apiInstance.getDeviceDatasourceInstanceAlertSettingById(deviceId, hdsId, instanceId, id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceAlertSettingById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | Device-DataSource ID
        Integer instanceId = 56; // Integer | 
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceDataSourceInstanceAlertSetting result = apiInstance.getDeviceDatasourceInstanceAlertSettingById(deviceId, hdsId, instanceId, id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceAlertSettingById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *hdsId = 56; // Device-DataSource ID
Integer *instanceId = 56; // 
Integer *id = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device instance alert setting
[apiInstance getDeviceDatasourceInstanceAlertSettingByIdWith:deviceId
    hdsId:hdsId
    instanceId:instanceId
    id:id
    fields:fields
              completionHandler: ^(DeviceDataSourceInstanceAlertSetting output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var hdsId = 56; // {Integer} Device-DataSource ID

var instanceId = 56; // {Integer} 

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceInstanceAlertSettingById(deviceId, hdsId, instanceId, id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceInstanceAlertSettingByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var hdsId = 56;  // Integer | Device-DataSource ID
            var instanceId = 56;  // Integer | 
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get device instance alert setting
                DeviceDataSourceInstanceAlertSetting result = apiInstance.getDeviceDatasourceInstanceAlertSettingById(deviceId, hdsId, instanceId, id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceInstanceAlertSettingById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$hdsId = 56; // Integer | Device-DataSource ID
$instanceId = 56; // Integer | 
$id = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDeviceDatasourceInstanceAlertSettingById($deviceId, $hdsId, $instanceId, $id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceInstanceAlertSettingById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $hdsId = 56; # Integer | Device-DataSource ID
my $instanceId = 56; # Integer | 
my $id = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDeviceDatasourceInstanceAlertSettingById(deviceId => $deviceId, hdsId => $hdsId, instanceId => $instanceId, id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceInstanceAlertSettingById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device instance alert setting api_response = api_instance.get_device_datasource_instance_alert_setting_by_id(deviceId, hdsId, instanceId, id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceInstanceAlertSettingById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceInstanceAlertSettingByIDParams()
    
// get device instance alert setting resp, err := client.LM.GetDeviceDatasourceInstanceAlertSettingByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceInstanceAlertSettingByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
hdsId*
Integer (int32)
Device-DataSource ID
Required
instanceId*
Integer (int32)
Required
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceInstanceAlertSettingListOfDSI

get a list of alert settings for a device datasource instance


/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{instanceId}/alertsettings

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{instanceId}/alertsettings?size=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | Device-DataSource ID
        Integer instanceId = 56; // Integer | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        try {
            DeviceDataSourceInstanceAlertSettingPaginationResponse result = apiInstance.getDeviceDatasourceInstanceAlertSettingListOfDSI(deviceId, hdsId, instanceId, size, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceAlertSettingListOfDSI");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | Device-DataSource ID
        Integer instanceId = 56; // Integer | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        try {
            DeviceDataSourceInstanceAlertSettingPaginationResponse result = apiInstance.getDeviceDatasourceInstanceAlertSettingListOfDSI(deviceId, hdsId, instanceId, size, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceAlertSettingListOfDSI");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *hdsId = 56; // Device-DataSource ID
Integer *instanceId = 56; // 
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get a list of alert settings for a device datasource instance
[apiInstance getDeviceDatasourceInstanceAlertSettingListOfDSIWith:deviceId
    hdsId:hdsId
    instanceId:instanceId
    size:size
    offset:offset
              completionHandler: ^(DeviceDataSourceInstanceAlertSettingPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var hdsId = 56; // {Integer} Device-DataSource ID

var instanceId = 56; // {Integer} 

var opts = { 
  'size': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceInstanceAlertSettingListOfDSI(deviceId, hdsId, instanceId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceInstanceAlertSettingListOfDSIExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var hdsId = 56;  // Integer | Device-DataSource ID
            var instanceId = 56;  // Integer | 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 

            try
            {
                // get a list of alert settings for a device datasource instance
                DeviceDataSourceInstanceAlertSettingPaginationResponse result = apiInstance.getDeviceDatasourceInstanceAlertSettingListOfDSI(deviceId, hdsId, instanceId, size, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceInstanceAlertSettingListOfDSI: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$hdsId = 56; // Integer | Device-DataSource ID
$instanceId = 56; // Integer | 
$size = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->getDeviceDatasourceInstanceAlertSettingListOfDSI($deviceId, $hdsId, $instanceId, $size, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceInstanceAlertSettingListOfDSI: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $hdsId = 56; # Integer | Device-DataSource ID
my $instanceId = 56; # Integer | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 

eval { 
    my $result = $api_instance->getDeviceDatasourceInstanceAlertSettingListOfDSI(deviceId => $deviceId, hdsId => $hdsId, instanceId => $instanceId, size => $size, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceInstanceAlertSettingListOfDSI: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get a list of alert settings for a device datasource instance api_response = api_instance.get_device_datasource_instance_alert_setting_list_of_dsi(deviceId, hdsId, instanceId, size=size, offset=offset) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceInstanceAlertSettingListOfDSI: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceInstanceAlertSettingListOfDSIParams()
    
// get a list of alert settings for a device datasource instance resp, err := client.LM.GetDeviceDatasourceInstanceAlertSettingListOfDSI(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceInstanceAlertSettingListOfDSI: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
hdsId*
Integer (int32)
Device-DataSource ID
Required
instanceId*
Integer (int32)
Required
Query parameters
Name Description
size
Integer (int32)
offset
Integer (int32)

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceInstanceAlertSettingListOfDevice

get a list of alert settings for a device


/device/devices/{deviceId}/alertsettings

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/alertsettings?start=&end=&netflowFilter=&size=&offset="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        try {
            DeviceDataSourceInstanceAlertSettingPaginationResponse result = apiInstance.getDeviceDatasourceInstanceAlertSettingListOfDevice(deviceId, start, end, netflowFilter, size, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceAlertSettingListOfDevice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        try {
            DeviceDataSourceInstanceAlertSettingPaginationResponse result = apiInstance.getDeviceDatasourceInstanceAlertSettingListOfDevice(deviceId, start, end, netflowFilter, size, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceAlertSettingListOfDevice");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *netflowFilter = netflowFilter_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get a list of alert settings for a device
[apiInstance getDeviceDatasourceInstanceAlertSettingListOfDeviceWith:deviceId
    start:start
    end:end
    netflowFilter:netflowFilter
    size:size
    offset:offset
              completionHandler: ^(DeviceDataSourceInstanceAlertSettingPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'netflowFilter': netflowFilter_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceInstanceAlertSettingListOfDevice(deviceId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceInstanceAlertSettingListOfDeviceExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var netflowFilter = netflowFilter_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 

            try
            {
                // get a list of alert settings for a device
                DeviceDataSourceInstanceAlertSettingPaginationResponse result = apiInstance.getDeviceDatasourceInstanceAlertSettingListOfDevice(deviceId, start, end, netflowFilter, size, offset);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceInstanceAlertSettingListOfDevice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$start = 789; // Long | 
$end = 789; // Long | 
$netflowFilter = netflowFilter_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->getDeviceDatasourceInstanceAlertSettingListOfDevice($deviceId, $start, $end, $netflowFilter, $size, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceInstanceAlertSettingListOfDevice: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $netflowFilter = netflowFilter_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 

eval { 
    my $result = $api_instance->getDeviceDatasourceInstanceAlertSettingListOfDevice(deviceId => $deviceId, start => $start, end => $end, netflowFilter => $netflowFilter, size => $size, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceInstanceAlertSettingListOfDevice: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get a list of alert settings for a device api_response = api_instance.get_device_datasource_instance_alert_setting_list_of_device(deviceId, start=start, end=end, netflowFilter=netflowFilter, size=size, offset=offset) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceInstanceAlertSettingListOfDevice: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceInstanceAlertSettingListOfDeviceParams()
    
// get a list of alert settings for a device resp, err := client.LM.GetDeviceDatasourceInstanceAlertSettingListOfDevice(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceInstanceAlertSettingListOfDevice: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
Query parameters
Name Description
start
Long (int64)
end
Long (int64)
netflowFilter
String
size
Integer (int32)
offset
Integer (int32)

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceInstanceById

get device instance


/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceDataSourceInstance result = apiInstance.getDeviceDatasourceInstanceById(deviceId, hdsId, id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceDataSourceInstance result = apiInstance.getDeviceDatasourceInstanceById(deviceId, hdsId, id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *hdsId = 56; // The device-datasource ID
Integer *id = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device instance 
[apiInstance getDeviceDatasourceInstanceByIdWith:deviceId
    hdsId:hdsId
    id:id
    fields:fields
              completionHandler: ^(DeviceDataSourceInstance output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var hdsId = 56; // {Integer} The device-datasource ID

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceInstanceById(deviceId, hdsId, id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceInstanceByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var hdsId = 56;  // Integer | The device-datasource ID
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get device instance 
                DeviceDataSourceInstance result = apiInstance.getDeviceDatasourceInstanceById(deviceId, hdsId, id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceInstanceById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$hdsId = 56; // Integer | The device-datasource ID
$id = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDeviceDatasourceInstanceById($deviceId, $hdsId, $id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceInstanceById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $hdsId = 56; # Integer | The device-datasource ID
my $id = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDeviceDatasourceInstanceById(deviceId => $deviceId, hdsId => $hdsId, id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceInstanceById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device instance api_response = api_instance.get_device_datasource_instance_by_id(deviceId, hdsId, id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceInstanceById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceInstanceByIDParams()
    
// get device instance resp, err := client.LM.GetDeviceDatasourceInstanceByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceInstanceByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
hdsId*
Integer (int32)
The device-datasource ID
Required
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceInstanceData

get device instance data


/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{id}/data

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{id}/data?period=&start=&end=&datapoints=&format="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        Integer id = 56; // Integer | 
        Double period = 1.2; // Double | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String datapoints = datapoints_example; // String | 
        String format = format_example; // String | 
        try {
            DeviceDataSourceInstanceData result = apiInstance.getDeviceDatasourceInstanceData(deviceId, hdsId, id, period, start, end, datapoints, format);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceData");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        Integer id = 56; // Integer | 
        Double period = 1.2; // Double | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String datapoints = datapoints_example; // String | 
        String format = format_example; // String | 
        try {
            DeviceDataSourceInstanceData result = apiInstance.getDeviceDatasourceInstanceData(deviceId, hdsId, id, period, start, end, datapoints, format);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceData");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *hdsId = 56; // The device-datasource ID
Integer *id = 56; // 
Double *period = 1.2; //  (optional) (default to 1.0)
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *datapoints = datapoints_example; //  (optional)
String *format = format_example; //  (optional) (default to json)

LMApi *apiInstance = [[LMApi alloc] init];

// get device instance data
[apiInstance getDeviceDatasourceInstanceDataWith:deviceId
    hdsId:hdsId
    id:id
    period:period
    start:start
    end:end
    datapoints:datapoints
    format:format
              completionHandler: ^(DeviceDataSourceInstanceData output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var hdsId = 56; // {Integer} The device-datasource ID

var id = 56; // {Integer} 

var opts = { 
  'period': 1.2, // {Double} 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'datapoints': datapoints_example, // {String} 
  'format': format_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceInstanceData(deviceId, hdsId, id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceInstanceDataExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var hdsId = 56;  // Integer | The device-datasource ID
            var id = 56;  // Integer | 
            var period = 1.2;  // Double |  (optional)  (default to 1.0)
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var datapoints = datapoints_example;  // String |  (optional) 
            var format = format_example;  // String |  (optional)  (default to json)

            try
            {
                // get device instance data
                DeviceDataSourceInstanceData result = apiInstance.getDeviceDatasourceInstanceData(deviceId, hdsId, id, period, start, end, datapoints, format);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceInstanceData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$hdsId = 56; // Integer | The device-datasource ID
$id = 56; // Integer | 
$period = 1.2; // Double | 
$start = 789; // Long | 
$end = 789; // Long | 
$datapoints = datapoints_example; // String | 
$format = format_example; // String | 

try {
    $result = $api_instance->getDeviceDatasourceInstanceData($deviceId, $hdsId, $id, $period, $start, $end, $datapoints, $format);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceInstanceData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $hdsId = 56; # Integer | The device-datasource ID
my $id = 56; # Integer | 
my $period = 1.2; # Double | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $datapoints = datapoints_example; # String | 
my $format = format_example; # String | 

eval { 
    my $result = $api_instance->getDeviceDatasourceInstanceData(deviceId => $deviceId, hdsId => $hdsId, id => $id, period => $period, start => $start, end => $end, datapoints => $datapoints, format => $format);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceInstanceData: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device instance data api_response = api_instance.get_device_datasource_instance_data(deviceId, hdsId, id, period=period, start=start, end=end, datapoints=datapoints, format=format) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceInstanceData: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceInstanceDataParams()
    
// get device instance data resp, err := client.LM.GetDeviceDatasourceInstanceData(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceInstanceData: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
hdsId*
Integer (int32)
The device-datasource ID
Required
id*
Integer (int32)
Required
Query parameters
Name Description
period
Double (double)
start
Long (int64)
end
Long (int64)
datapoints
String
format
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceInstanceGraphData

get device instance graph data


/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{id}/graphs/{graphId}/data

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{id}/graphs/{graphId}/data?start=&end=&format="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        Integer id = 56; // Integer | 
        Integer graphId = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String format = format_example; // String | 
        try {
            GraphPlot result = apiInstance.getDeviceDatasourceInstanceGraphData(deviceId, hdsId, id, graphId, start, end, format);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceGraphData");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        Integer id = 56; // Integer | 
        Integer graphId = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String format = format_example; // String | 
        try {
            GraphPlot result = apiInstance.getDeviceDatasourceInstanceGraphData(deviceId, hdsId, id, graphId, start, end, format);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceGraphData");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *hdsId = 56; // The device-datasource ID
Integer *id = 56; // 
Integer *graphId = 56; // 
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *format = format_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device instance graph data 
[apiInstance getDeviceDatasourceInstanceGraphDataWith:deviceId
    hdsId:hdsId
    id:id
    graphId:graphId
    start:start
    end:end
    format:format
              completionHandler: ^(GraphPlot output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var hdsId = 56; // {Integer} The device-datasource ID

var id = 56; // {Integer} 

var graphId = 56; // {Integer} 

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'format': format_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceInstanceGraphData(deviceId, hdsId, id, graphId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceInstanceGraphDataExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var hdsId = 56;  // Integer | The device-datasource ID
            var id = 56;  // Integer | 
            var graphId = 56;  // Integer | 
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var format = format_example;  // String |  (optional) 

            try
            {
                // get device instance graph data 
                GraphPlot result = apiInstance.getDeviceDatasourceInstanceGraphData(deviceId, hdsId, id, graphId, start, end, format);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceInstanceGraphData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$hdsId = 56; // Integer | The device-datasource ID
$id = 56; // Integer | 
$graphId = 56; // Integer | 
$start = 789; // Long | 
$end = 789; // Long | 
$format = format_example; // String | 

try {
    $result = $api_instance->getDeviceDatasourceInstanceGraphData($deviceId, $hdsId, $id, $graphId, $start, $end, $format);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceInstanceGraphData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $hdsId = 56; # Integer | The device-datasource ID
my $id = 56; # Integer | 
my $graphId = 56; # Integer | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $format = format_example; # String | 

eval { 
    my $result = $api_instance->getDeviceDatasourceInstanceGraphData(deviceId => $deviceId, hdsId => $hdsId, id => $id, graphId => $graphId, start => $start, end => $end, format => $format);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceInstanceGraphData: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device instance graph data api_response = api_instance.get_device_datasource_instance_graph_data(deviceId, hdsId, id, graphId, start=start, end=end, format=format) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceInstanceGraphData: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceInstanceGraphDataParams()
    
// get device instance graph data resp, err := client.LM.GetDeviceDatasourceInstanceGraphData(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceInstanceGraphData: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
hdsId*
Integer (int32)
The device-datasource ID
Required
id*
Integer (int32)
Required
graphId*
Integer (int32)
Required
Query parameters
Name Description
start
Long (int64)
end
Long (int64)
format
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceInstanceGroupById

get device datasource instance group


/device/devices/{deviceId}/devicedatasources/{deviceDsId}/groups/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{deviceDsId}/groups/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer deviceDsId = 56; // Integer | The device-datasource ID you'd like to add an instance group for
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceDataSourceInstanceGroup result = apiInstance.getDeviceDatasourceInstanceGroupById(deviceId, deviceDsId, id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceGroupById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer deviceDsId = 56; // Integer | The device-datasource ID you'd like to add an instance group for
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceDataSourceInstanceGroup result = apiInstance.getDeviceDatasourceInstanceGroupById(deviceId, deviceDsId, id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceGroupById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *deviceDsId = 56; // The device-datasource ID you'd like to add an instance group for
Integer *id = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device datasource instance group 
[apiInstance getDeviceDatasourceInstanceGroupByIdWith:deviceId
    deviceDsId:deviceDsId
    id:id
    fields:fields
              completionHandler: ^(DeviceDataSourceInstanceGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var deviceDsId = 56; // {Integer} The device-datasource ID you'd like to add an instance group for

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceInstanceGroupById(deviceId, deviceDsId, id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceInstanceGroupByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var deviceDsId = 56;  // Integer | The device-datasource ID you'd like to add an instance group for
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get device datasource instance group 
                DeviceDataSourceInstanceGroup result = apiInstance.getDeviceDatasourceInstanceGroupById(deviceId, deviceDsId, id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceInstanceGroupById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$deviceDsId = 56; // Integer | The device-datasource ID you'd like to add an instance group for
$id = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDeviceDatasourceInstanceGroupById($deviceId, $deviceDsId, $id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceInstanceGroupById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $deviceDsId = 56; # Integer | The device-datasource ID you'd like to add an instance group for
my $id = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDeviceDatasourceInstanceGroupById(deviceId => $deviceId, deviceDsId => $deviceDsId, id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceInstanceGroupById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device datasource instance group api_response = api_instance.get_device_datasource_instance_group_by_id(deviceId, deviceDsId, id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceInstanceGroupById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceInstanceGroupByIDParams()
    
// get device datasource instance group resp, err := client.LM.GetDeviceDatasourceInstanceGroupByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceInstanceGroupByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
deviceDsId*
Integer (int32)
The device-datasource ID you'd like to add an instance group for
Required
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceInstanceGroupList

get device datasource instance group list


/device/devices/{deviceId}/devicedatasources/{deviceDsId}/groups

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{deviceDsId}/groups?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer deviceDsId = 56; // Integer | The device-datasource ID you'd like to add an instance group for
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDatasourceInstanceGroupPaginationResponse result = apiInstance.getDeviceDatasourceInstanceGroupList(deviceId, deviceDsId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceGroupList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer deviceDsId = 56; // Integer | The device-datasource ID you'd like to add an instance group for
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDatasourceInstanceGroupPaginationResponse result = apiInstance.getDeviceDatasourceInstanceGroupList(deviceId, deviceDsId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceGroupList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *deviceDsId = 56; // The device-datasource ID you'd like to add an instance group for
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device datasource instance group list 
[apiInstance getDeviceDatasourceInstanceGroupListWith:deviceId
    deviceDsId:deviceDsId
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DeviceDatasourceInstanceGroupPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var deviceDsId = 56; // {Integer} The device-datasource ID you'd like to add an instance group for

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceInstanceGroupList(deviceId, deviceDsId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceInstanceGroupListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var deviceDsId = 56;  // Integer | The device-datasource ID you'd like to add an instance group for
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get device datasource instance group list 
                DeviceDatasourceInstanceGroupPaginationResponse result = apiInstance.getDeviceDatasourceInstanceGroupList(deviceId, deviceDsId, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceInstanceGroupList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$deviceDsId = 56; // Integer | The device-datasource ID you'd like to add an instance group for
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDeviceDatasourceInstanceGroupList($deviceId, $deviceDsId, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceInstanceGroupList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $deviceDsId = 56; # Integer | The device-datasource ID you'd like to add an instance group for
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDeviceDatasourceInstanceGroupList(deviceId => $deviceId, deviceDsId => $deviceDsId, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceInstanceGroupList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device datasource instance group list api_response = api_instance.get_device_datasource_instance_group_list(deviceId, deviceDsId, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceInstanceGroupList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceInstanceGroupListParams()
    
// get device datasource instance group list resp, err := client.LM.GetDeviceDatasourceInstanceGroupList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceInstanceGroupList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
deviceDsId*
Integer (int32)
The device-datasource ID you'd like to add an instance group for
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceInstanceGroupOverviewGraphData

get device instance group overview graph data


/device/devices/{deviceId}/devicedatasources/{deviceDsId}/groups/{dsigId}/graphs/{ographId}/data

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{deviceDsId}/groups/{dsigId}/graphs/{ographId}/data?start=&end=&format="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer deviceDsId = 56; // Integer | The device-datasource ID you'd like to add an instance group for
        Integer dsigId = 56; // Integer | 
        Integer ographId = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String format = format_example; // String | 
        try {
            GraphPlot result = apiInstance.getDeviceDatasourceInstanceGroupOverviewGraphData(deviceId, deviceDsId, dsigId, ographId, start, end, format);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceGroupOverviewGraphData");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer deviceDsId = 56; // Integer | The device-datasource ID you'd like to add an instance group for
        Integer dsigId = 56; // Integer | 
        Integer ographId = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String format = format_example; // String | 
        try {
            GraphPlot result = apiInstance.getDeviceDatasourceInstanceGroupOverviewGraphData(deviceId, deviceDsId, dsigId, ographId, start, end, format);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceGroupOverviewGraphData");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *deviceDsId = 56; // The device-datasource ID you'd like to add an instance group for
Integer *dsigId = 56; // 
Integer *ographId = 56; // 
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *format = format_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device instance group overview graph data 
[apiInstance getDeviceDatasourceInstanceGroupOverviewGraphDataWith:deviceId
    deviceDsId:deviceDsId
    dsigId:dsigId
    ographId:ographId
    start:start
    end:end
    format:format
              completionHandler: ^(GraphPlot output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var deviceDsId = 56; // {Integer} The device-datasource ID you'd like to add an instance group for

var dsigId = 56; // {Integer} 

var ographId = 56; // {Integer} 

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'format': format_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceInstanceGroupOverviewGraphData(deviceId, deviceDsId, dsigId, ographId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceInstanceGroupOverviewGraphDataExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var deviceDsId = 56;  // Integer | The device-datasource ID you'd like to add an instance group for
            var dsigId = 56;  // Integer | 
            var ographId = 56;  // Integer | 
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var format = format_example;  // String |  (optional) 

            try
            {
                // get device instance group overview graph data 
                GraphPlot result = apiInstance.getDeviceDatasourceInstanceGroupOverviewGraphData(deviceId, deviceDsId, dsigId, ographId, start, end, format);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceInstanceGroupOverviewGraphData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$deviceDsId = 56; // Integer | The device-datasource ID you'd like to add an instance group for
$dsigId = 56; // Integer | 
$ographId = 56; // Integer | 
$start = 789; // Long | 
$end = 789; // Long | 
$format = format_example; // String | 

try {
    $result = $api_instance->getDeviceDatasourceInstanceGroupOverviewGraphData($deviceId, $deviceDsId, $dsigId, $ographId, $start, $end, $format);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceInstanceGroupOverviewGraphData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $deviceDsId = 56; # Integer | The device-datasource ID you'd like to add an instance group for
my $dsigId = 56; # Integer | 
my $ographId = 56; # Integer | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $format = format_example; # String | 

eval { 
    my $result = $api_instance->getDeviceDatasourceInstanceGroupOverviewGraphData(deviceId => $deviceId, deviceDsId => $deviceDsId, dsigId => $dsigId, ographId => $ographId, start => $start, end => $end, format => $format);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceInstanceGroupOverviewGraphData: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device instance group overview graph data api_response = api_instance.get_device_datasource_instance_group_overview_graph_data(deviceId, deviceDsId, dsigId, ographId, start=start, end=end, format=format) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceInstanceGroupOverviewGraphData: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceInstanceGroupOverviewGraphDataParams()
    
// get device instance group overview graph data resp, err := client.LM.GetDeviceDatasourceInstanceGroupOverviewGraphData(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceInstanceGroupOverviewGraphData: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
deviceDsId*
Integer (int32)
The device-datasource ID you'd like to add an instance group for
Required
dsigId*
Integer (int32)
Required
ographId*
Integer (int32)
Required
Query parameters
Name Description
start
Long (int64)
end
Long (int64)
format
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceInstanceList

get device instance list


/device/devices/{deviceId}/devicedatasources/{hdsId}/instances

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{hdsId}/instances?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDatasourceInstancePaginationResponse result = apiInstance.getDeviceDatasourceInstanceList(deviceId, hdsId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDatasourceInstancePaginationResponse result = apiInstance.getDeviceDatasourceInstanceList(deviceId, hdsId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *hdsId = 56; // The device-datasource ID
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device instance list
[apiInstance getDeviceDatasourceInstanceListWith:deviceId
    hdsId:hdsId
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DeviceDatasourceInstancePaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var hdsId = 56; // {Integer} The device-datasource ID

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceInstanceList(deviceId, hdsId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceInstanceListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var hdsId = 56;  // Integer | The device-datasource ID
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get device instance list
                DeviceDatasourceInstancePaginationResponse result = apiInstance.getDeviceDatasourceInstanceList(deviceId, hdsId, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceInstanceList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$hdsId = 56; // Integer | The device-datasource ID
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDeviceDatasourceInstanceList($deviceId, $hdsId, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceInstanceList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $hdsId = 56; # Integer | The device-datasource ID
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDeviceDatasourceInstanceList(deviceId => $deviceId, hdsId => $hdsId, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceInstanceList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device instance list api_response = api_instance.get_device_datasource_instance_list(deviceId, hdsId, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceInstanceList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceInstanceListParams()
    
// get device instance list resp, err := client.LM.GetDeviceDatasourceInstanceList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceInstanceList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
hdsId*
Integer (int32)
The device-datasource ID
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceInstanceSDTHistory

get device instance SDT history


/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{id}/historysdts

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{hdsId}/instances/{id}/historysdts?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceGroupSDTHistoryPaginationResponse result = apiInstance.getDeviceDatasourceInstanceSDTHistory(deviceId, hdsId, id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceSDTHistory");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer hdsId = 56; // Integer | The device-datasource ID
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceGroupSDTHistoryPaginationResponse result = apiInstance.getDeviceDatasourceInstanceSDTHistory(deviceId, hdsId, id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceInstanceSDTHistory");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *hdsId = 56; // The device-datasource ID
Integer *id = 56; // 
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device instance SDT history
[apiInstance getDeviceDatasourceInstanceSDTHistoryWith:deviceId
    hdsId:hdsId
    id:id
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DeviceGroupSDTHistoryPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var hdsId = 56; // {Integer} The device-datasource ID

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceInstanceSDTHistory(deviceId, hdsId, id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceInstanceSDTHistoryExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var hdsId = 56;  // Integer | The device-datasource ID
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get device instance SDT history
                DeviceGroupSDTHistoryPaginationResponse result = apiInstance.getDeviceDatasourceInstanceSDTHistory(deviceId, hdsId, id, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceInstanceSDTHistory: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$hdsId = 56; // Integer | The device-datasource ID
$id = 56; // Integer | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDeviceDatasourceInstanceSDTHistory($deviceId, $hdsId, $id, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceInstanceSDTHistory: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $hdsId = 56; # Integer | The device-datasource ID
my $id = 56; # Integer | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDeviceDatasourceInstanceSDTHistory(deviceId => $deviceId, hdsId => $hdsId, id => $id, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceInstanceSDTHistory: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device instance SDT history api_response = api_instance.get_device_datasource_instance_sdt_history(deviceId, hdsId, id, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceInstanceSDTHistory: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceInstanceSDTHistoryParams()
    
// get device instance SDT history resp, err := client.LM.GetDeviceDatasourceInstanceSDTHistory(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceInstanceSDTHistory: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
hdsId*
Integer (int32)
The device-datasource ID
Required
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceDatasourceList

get device datasource list


/device/devices/{deviceId}/devicedatasources

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDatasourcePaginationResponse result = apiInstance.getDeviceDatasourceList(deviceId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDatasourcePaginationResponse result = apiInstance.getDeviceDatasourceList(deviceId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceDatasourceList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device datasource list 
[apiInstance getDeviceDatasourceListWith:deviceId
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DeviceDatasourcePaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceDatasourceList(deviceId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceDatasourceListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get device datasource list 
                DeviceDatasourcePaginationResponse result = apiInstance.getDeviceDatasourceList(deviceId, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceDatasourceList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDeviceDatasourceList($deviceId, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceDatasourceList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDeviceDatasourceList(deviceId => $deviceId, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceDatasourceList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device datasource list api_response = api_instance.get_device_datasource_list(deviceId, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceDatasourceList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceDatasourceListParams()
    
// get device datasource list resp, err := client.LM.GetDeviceDatasourceList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceDatasourceList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceGroupById

get device group


/device/groups/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceGroup result = apiInstance.getDeviceGroupById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceGroup result = apiInstance.getDeviceGroupById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device group
[apiInstance getDeviceGroupByIdWith:id
    fields:fields
              completionHandler: ^(DeviceGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceGroupById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceGroupByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get device group
                DeviceGroup result = apiInstance.getDeviceGroupById(id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceGroupById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDeviceGroupById($id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceGroupById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDeviceGroupById(id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceGroupById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device group api_response = api_instance.get_device_group_by_id(id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceGroupById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceGroupByIDParams()
    
// get device group resp, err := client.LM.GetDeviceGroupByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceGroupByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceGroupClusterAlertConfById

Get cluster alert configuration by id


/device/groups/{deviceGroupId}/clusterAlertConf/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{deviceGroupId}/clusterAlertConf/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        Integer id = 56; // Integer | 
        try {
            DeviceClusterAlertConfig result = apiInstance.getDeviceGroupClusterAlertConfById(deviceGroupId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupClusterAlertConfById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        Integer id = 56; // Integer | 
        try {
            DeviceClusterAlertConfig result = apiInstance.getDeviceGroupClusterAlertConfById(deviceGroupId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupClusterAlertConfById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceGroupId = 56; // 
Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// Get cluster alert configuration by id
[apiInstance getDeviceGroupClusterAlertConfByIdWith:deviceGroupId
    id:id
              completionHandler: ^(DeviceClusterAlertConfig output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceGroupId = 56; // {Integer} 

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceGroupClusterAlertConfById(deviceGroupId, id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceGroupClusterAlertConfByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceGroupId = 56;  // Integer | 
            var id = 56;  // Integer | 

            try
            {
                // Get cluster alert configuration by id
                DeviceClusterAlertConfig result = apiInstance.getDeviceGroupClusterAlertConfById(deviceGroupId, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceGroupClusterAlertConfById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceGroupId = 56; // Integer | 
$id = 56; // Integer | 

try {
    $result = $api_instance->getDeviceGroupClusterAlertConfById($deviceGroupId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceGroupClusterAlertConfById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceGroupId = 56; # Integer | 
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->getDeviceGroupClusterAlertConfById(deviceGroupId => $deviceGroupId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceGroupClusterAlertConfById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # Get cluster alert configuration by id api_response = api_instance.get_device_group_cluster_alert_conf_by_id(deviceGroupId, id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceGroupClusterAlertConfById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceGroupClusterAlertConfByIDParams()
    
// Get cluster alert configuration by id resp, err := client.LM.GetDeviceGroupClusterAlertConfByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceGroupClusterAlertConfByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceGroupId*
Integer (int32)
Required
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceGroupClusterAlertConfList

get a list of cluster alert configurations for a device group


/device/groups/{deviceGroupId}/clusterAlertConf

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{deviceGroupId}/clusterAlertConf?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceClusterAlertConfigPaginationResponse result = apiInstance.getDeviceGroupClusterAlertConfList(deviceGroupId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupClusterAlertConfList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceClusterAlertConfigPaginationResponse result = apiInstance.getDeviceGroupClusterAlertConfList(deviceGroupId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupClusterAlertConfList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceGroupId = 56; // 
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get a list of cluster alert configurations for a device group
[apiInstance getDeviceGroupClusterAlertConfListWith:deviceGroupId
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DeviceClusterAlertConfigPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceGroupId = 56; // {Integer} 

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceGroupClusterAlertConfList(deviceGroupId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceGroupClusterAlertConfListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceGroupId = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get a list of cluster alert configurations for a device group
                DeviceClusterAlertConfigPaginationResponse result = apiInstance.getDeviceGroupClusterAlertConfList(deviceGroupId, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceGroupClusterAlertConfList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceGroupId = 56; // Integer | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDeviceGroupClusterAlertConfList($deviceGroupId, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceGroupClusterAlertConfList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceGroupId = 56; # Integer | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDeviceGroupClusterAlertConfList(deviceGroupId => $deviceGroupId, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceGroupClusterAlertConfList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get a list of cluster alert configurations for a device group api_response = api_instance.get_device_group_cluster_alert_conf_list(deviceGroupId, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceGroupClusterAlertConfList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceGroupClusterAlertConfListParams()
    
// get a list of cluster alert configurations for a device group resp, err := client.LM.GetDeviceGroupClusterAlertConfList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceGroupClusterAlertConfList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceGroupId*
Integer (int32)
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceGroupDatasourceAlertSetting

get device group datasource alert setting


/device/groups/{deviceGroupId}/datasources/{dsId}/alertsettings

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{deviceGroupId}/datasources/{dsId}/alertsettings?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        Integer dsId = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceGroupDataSourceAlertConfig result = apiInstance.getDeviceGroupDatasourceAlertSetting(deviceGroupId, dsId, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupDatasourceAlertSetting");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        Integer dsId = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceGroupDataSourceAlertConfig result = apiInstance.getDeviceGroupDatasourceAlertSetting(deviceGroupId, dsId, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupDatasourceAlertSetting");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceGroupId = 56; // 
Integer *dsId = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device group datasource alert setting 
[apiInstance getDeviceGroupDatasourceAlertSettingWith:deviceGroupId
    dsId:dsId
    fields:fields
              completionHandler: ^(DeviceGroupDataSourceAlertConfig output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceGroupId = 56; // {Integer} 

var dsId = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceGroupDatasourceAlertSetting(deviceGroupId, dsId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceGroupDatasourceAlertSettingExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceGroupId = 56;  // Integer | 
            var dsId = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get device group datasource alert setting 
                DeviceGroupDataSourceAlertConfig result = apiInstance.getDeviceGroupDatasourceAlertSetting(deviceGroupId, dsId, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceGroupDatasourceAlertSetting: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceGroupId = 56; // Integer | 
$dsId = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDeviceGroupDatasourceAlertSetting($deviceGroupId, $dsId, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceGroupDatasourceAlertSetting: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceGroupId = 56; # Integer | 
my $dsId = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDeviceGroupDatasourceAlertSetting(deviceGroupId => $deviceGroupId, dsId => $dsId, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceGroupDatasourceAlertSetting: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device group datasource alert setting api_response = api_instance.get_device_group_datasource_alert_setting(deviceGroupId, dsId, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceGroupDatasourceAlertSetting: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceGroupDatasourceAlertSettingParams()
    
// get device group datasource alert setting resp, err := client.LM.GetDeviceGroupDatasourceAlertSetting(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceGroupDatasourceAlertSetting: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceGroupId*
Integer (int32)
Required
dsId*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceGroupDatasourceById

get device group datasource


/device/groups/{deviceGroupId}/datasources/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{deviceGroupId}/datasources/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceGroupDataSource result = apiInstance.getDeviceGroupDatasourceById(deviceGroupId, id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupDatasourceById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            DeviceGroupDataSource result = apiInstance.getDeviceGroupDatasourceById(deviceGroupId, id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupDatasourceById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceGroupId = 56; // 
Integer *id = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device group datasource
[apiInstance getDeviceGroupDatasourceByIdWith:deviceGroupId
    id:id
    fields:fields
              completionHandler: ^(DeviceGroupDataSource output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceGroupId = 56; // {Integer} 

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceGroupDatasourceById(deviceGroupId, id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceGroupDatasourceByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceGroupId = 56;  // Integer | 
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get device group datasource
                DeviceGroupDataSource result = apiInstance.getDeviceGroupDatasourceById(deviceGroupId, id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceGroupDatasourceById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceGroupId = 56; // Integer | 
$id = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDeviceGroupDatasourceById($deviceGroupId, $id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceGroupDatasourceById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceGroupId = 56; # Integer | 
my $id = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDeviceGroupDatasourceById(deviceGroupId => $deviceGroupId, id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceGroupDatasourceById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device group datasource api_response = api_instance.get_device_group_datasource_by_id(deviceGroupId, id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceGroupDatasourceById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceGroupDatasourceByIDParams()
    
// get device group datasource resp, err := client.LM.GetDeviceGroupDatasourceByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceGroupDatasourceByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceGroupId*
Integer (int32)
Required
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceGroupDatasourceList

get device group datasource list


/device/groups/{deviceGroupId}/datasources

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{deviceGroupId}/datasources?includeDisabledDataSourceWithoutInstance=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        Boolean includeDisabledDataSourceWithoutInstance = true; // Boolean | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceGroupDatasourcePaginationResponse result = apiInstance.getDeviceGroupDatasourceList(deviceGroupId, includeDisabledDataSourceWithoutInstance, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupDatasourceList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceGroupId = 56; // Integer | 
        Boolean includeDisabledDataSourceWithoutInstance = true; // Boolean | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceGroupDatasourcePaginationResponse result = apiInstance.getDeviceGroupDatasourceList(deviceGroupId, includeDisabledDataSourceWithoutInstance, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupDatasourceList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceGroupId = 56; // 
Boolean *includeDisabledDataSourceWithoutInstance = true; //  (optional) (default to false)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device group datasource list
[apiInstance getDeviceGroupDatasourceListWith:deviceGroupId
    includeDisabledDataSourceWithoutInstance:includeDisabledDataSourceWithoutInstance
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DeviceGroupDatasourcePaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceGroupId = 56; // {Integer} 

var opts = { 
  'includeDisabledDataSourceWithoutInstance': true, // {Boolean} 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceGroupDatasourceList(deviceGroupId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceGroupDatasourceListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceGroupId = 56;  // Integer | 
            var includeDisabledDataSourceWithoutInstance = true;  // Boolean |  (optional)  (default to false)
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get device group datasource list
                DeviceGroupDatasourcePaginationResponse result = apiInstance.getDeviceGroupDatasourceList(deviceGroupId, includeDisabledDataSourceWithoutInstance, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceGroupDatasourceList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceGroupId = 56; // Integer | 
$includeDisabledDataSourceWithoutInstance = true; // Boolean | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDeviceGroupDatasourceList($deviceGroupId, $includeDisabledDataSourceWithoutInstance, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceGroupDatasourceList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceGroupId = 56; # Integer | 
my $includeDisabledDataSourceWithoutInstance = true; # Boolean | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDeviceGroupDatasourceList(deviceGroupId => $deviceGroupId, includeDisabledDataSourceWithoutInstance => $includeDisabledDataSourceWithoutInstance, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceGroupDatasourceList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device group datasource list api_response = api_instance.get_device_group_datasource_list(deviceGroupId, includeDisabledDataSourceWithoutInstance=includeDisabledDataSourceWithoutInstance, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceGroupDatasourceList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceGroupDatasourceListParams()
    
// get device group datasource list resp, err := client.LM.GetDeviceGroupDatasourceList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceGroupDatasourceList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceGroupId*
Integer (int32)
Required
Query parameters
Name Description
includeDisabledDataSourceWithoutInstance
Boolean
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceGroupList

get device group list


/device/groups

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceGroupPaginationResponse result = apiInstance.getDeviceGroupList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceGroupPaginationResponse result = apiInstance.getDeviceGroupList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device group list
[apiInstance getDeviceGroupListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DeviceGroupPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceGroupList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceGroupListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get device group list
                DeviceGroupPaginationResponse result = apiInstance.getDeviceGroupList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceGroupList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDeviceGroupList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceGroupList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDeviceGroupList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceGroupList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device group list api_response = api_instance.get_device_group_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceGroupList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceGroupListParams()
    
// get device group list resp, err := client.LM.GetDeviceGroupList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceGroupList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceGroupPropertyByName

get device group property by name


/device/groups/{gid}/properties/{name}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{gid}/properties/{name}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer gid = 56; // Integer | group ID
        String name = name_example; // String | 
        String fields = fields_example; // String | 
        try {
            EntityProperty result = apiInstance.getDeviceGroupPropertyByName(gid, name, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupPropertyByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer gid = 56; // Integer | group ID
        String name = name_example; // String | 
        String fields = fields_example; // String | 
        try {
            EntityProperty result = apiInstance.getDeviceGroupPropertyByName(gid, name, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupPropertyByName");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *gid = 56; // group ID
String *name = name_example; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device group property by name
[apiInstance getDeviceGroupPropertyByNameWith:gid
    name:name
    fields:fields
              completionHandler: ^(EntityProperty output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var gid = 56; // {Integer} group ID

var name = name_example; // {String} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceGroupPropertyByName(gid, name, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceGroupPropertyByNameExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var gid = 56;  // Integer | group ID
            var name = name_example;  // String | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get device group property by name
                EntityProperty result = apiInstance.getDeviceGroupPropertyByName(gid, name, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceGroupPropertyByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$gid = 56; // Integer | group ID
$name = name_example; // String | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDeviceGroupPropertyByName($gid, $name, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceGroupPropertyByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $gid = 56; # Integer | group ID
my $name = name_example; # String | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDeviceGroupPropertyByName(gid => $gid, name => $name, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceGroupPropertyByName: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device group property by name api_response = api_instance.get_device_group_property_by_name(gid, name, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceGroupPropertyByName: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceGroupPropertyByNameParams()
    
// get device group property by name resp, err := client.LM.GetDeviceGroupPropertyByName(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceGroupPropertyByName: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
gid*
Integer (int32)
group ID
Required
name*
String
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceGroupPropertyList

get device group properties


/device/groups/{gid}/properties

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{gid}/properties?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer gid = 56; // Integer | group ID
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            PropertyPaginationResponse result = apiInstance.getDeviceGroupPropertyList(gid, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupPropertyList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer gid = 56; // Integer | group ID
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            PropertyPaginationResponse result = apiInstance.getDeviceGroupPropertyList(gid, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupPropertyList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *gid = 56; // group ID
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device group properties
[apiInstance getDeviceGroupPropertyListWith:gid
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(PropertyPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var gid = 56; // {Integer} group ID

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceGroupPropertyList(gid, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceGroupPropertyListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var gid = 56;  // Integer | group ID
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get device group properties
                PropertyPaginationResponse result = apiInstance.getDeviceGroupPropertyList(gid, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceGroupPropertyList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$gid = 56; // Integer | group ID
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDeviceGroupPropertyList($gid, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceGroupPropertyList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $gid = 56; # Integer | group ID
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDeviceGroupPropertyList(gid => $gid, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceGroupPropertyList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device group properties api_response = api_instance.get_device_group_property_list(gid, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceGroupPropertyList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceGroupPropertyListParams()
    
// get device group properties resp, err := client.LM.GetDeviceGroupPropertyList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceGroupPropertyList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
gid*
Integer (int32)
group ID
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceGroupSDTList

get device group SDTs


/device/groups/{id}/sdts

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{id}/sdts?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            SDTPaginationResponse result = apiInstance.getDeviceGroupSDTList(id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupSDTList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            SDTPaginationResponse result = apiInstance.getDeviceGroupSDTList(id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceGroupSDTList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device group SDTs
[apiInstance getDeviceGroupSDTListWith:id
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(SDTPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceGroupSDTList(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceGroupSDTListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get device group SDTs
                SDTPaginationResponse result = apiInstance.getDeviceGroupSDTList(id, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceGroupSDTList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDeviceGroupSDTList($id, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceGroupSDTList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDeviceGroupSDTList(id => $id, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceGroupSDTList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device group SDTs api_response = api_instance.get_device_group_sdt_list(id, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceGroupSDTList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceGroupSDTListParams()
    
// get device group SDTs resp, err := client.LM.GetDeviceGroupSDTList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceGroupSDTList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceInstanceGraphDataOnlyByInstanceId

get device instance data


/device/devicedatasourceinstances/{instanceId}/graphs/{graphId}/data

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devicedatasourceinstances/{instanceId}/graphs/{graphId}/data?start=&end=&format="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer instanceId = 56; // Integer | 
        Integer graphId = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String format = format_example; // String | 
        try {
            GraphPlot result = apiInstance.getDeviceInstanceGraphDataOnlyByInstanceId(instanceId, graphId, start, end, format);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceInstanceGraphDataOnlyByInstanceId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer instanceId = 56; // Integer | 
        Integer graphId = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String format = format_example; // String | 
        try {
            GraphPlot result = apiInstance.getDeviceInstanceGraphDataOnlyByInstanceId(instanceId, graphId, start, end, format);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceInstanceGraphDataOnlyByInstanceId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *instanceId = 56; // 
Integer *graphId = 56; // 
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *format = format_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device instance data
[apiInstance getDeviceInstanceGraphDataOnlyByInstanceIdWith:instanceId
    graphId:graphId
    start:start
    end:end
    format:format
              completionHandler: ^(GraphPlot output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var instanceId = 56; // {Integer} 

var graphId = 56; // {Integer} 

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'format': format_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceInstanceGraphDataOnlyByInstanceId(instanceId, graphId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceInstanceGraphDataOnlyByInstanceIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var instanceId = 56;  // Integer | 
            var graphId = 56;  // Integer | 
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var format = format_example;  // String |  (optional) 

            try
            {
                // get device instance data
                GraphPlot result = apiInstance.getDeviceInstanceGraphDataOnlyByInstanceId(instanceId, graphId, start, end, format);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceInstanceGraphDataOnlyByInstanceId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$instanceId = 56; // Integer | 
$graphId = 56; // Integer | 
$start = 789; // Long | 
$end = 789; // Long | 
$format = format_example; // String | 

try {
    $result = $api_instance->getDeviceInstanceGraphDataOnlyByInstanceId($instanceId, $graphId, $start, $end, $format);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceInstanceGraphDataOnlyByInstanceId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $instanceId = 56; # Integer | 
my $graphId = 56; # Integer | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $format = format_example; # String | 

eval { 
    my $result = $api_instance->getDeviceInstanceGraphDataOnlyByInstanceId(instanceId => $instanceId, graphId => $graphId, start => $start, end => $end, format => $format);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceInstanceGraphDataOnlyByInstanceId: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device instance data api_response = api_instance.get_device_instance_graph_data_only_by_instance_id(instanceId, graphId, start=start, end=end, format=format) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceInstanceGraphDataOnlyByInstanceId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceInstanceGraphDataOnlyByInstanceIDParams()
    
// get device instance data resp, err := client.LM.GetDeviceInstanceGraphDataOnlyByInstanceID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceInstanceGraphDataOnlyByInstanceID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
instanceId*
Integer (int32)
Required
graphId*
Integer (int32)
Required
Query parameters
Name Description
start
Long (int64)
end
Long (int64)
format
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceInstanceList

get device instance list


/device/devices/{id}/instances

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{id}/instances?start=&end=&netflowFilter=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDatasourceInstancePaginationResponse result = apiInstance.getDeviceInstanceList(id, start, end, netflowFilter, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceInstanceList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDatasourceInstancePaginationResponse result = apiInstance.getDeviceInstanceList(id, start, end, netflowFilter, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceInstanceList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *netflowFilter = netflowFilter_example; //  (optional)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device instance list
[apiInstance getDeviceInstanceListWith:id
    start:start
    end:end
    netflowFilter:netflowFilter
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DeviceDatasourceInstancePaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'netflowFilter': netflowFilter_example, // {String} 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceInstanceList(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceInstanceListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var netflowFilter = netflowFilter_example;  // String |  (optional) 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get device instance list
                DeviceDatasourceInstancePaginationResponse result = apiInstance.getDeviceInstanceList(id, start, end, netflowFilter, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceInstanceList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$start = 789; // Long | 
$end = 789; // Long | 
$netflowFilter = netflowFilter_example; // String | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDeviceInstanceList($id, $start, $end, $netflowFilter, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceInstanceList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $netflowFilter = netflowFilter_example; # String | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDeviceInstanceList(id => $id, start => $start, end => $end, netflowFilter => $netflowFilter, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceInstanceList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device instance list api_response = api_instance.get_device_instance_list(id, start=start, end=end, netflowFilter=netflowFilter, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceInstanceList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceInstanceListParams()
    
// get device instance list resp, err := client.LM.GetDeviceInstanceList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceInstanceList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
start
Long (int64)
end
Long (int64)
netflowFilter
String
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDeviceList

get device list


/device/devices

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices?start=&end=&netflowFilter=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DevicePaginationResponse result = apiInstance.getDeviceList(start, end, netflowFilter, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DevicePaginationResponse result = apiInstance.getDeviceList(start, end, netflowFilter, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDeviceList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *netflowFilter = netflowFilter_example; //  (optional)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device list
[apiInstance getDeviceListWith:start
    end:end
    netflowFilter:netflowFilter
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DevicePaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'netflowFilter': netflowFilter_example, // {String} 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDeviceList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDeviceListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var netflowFilter = netflowFilter_example;  // String |  (optional) 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get device list
                DevicePaginationResponse result = apiInstance.getDeviceList(start, end, netflowFilter, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDeviceList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$start = 789; // Long | 
$end = 789; // Long | 
$netflowFilter = netflowFilter_example; // String | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDeviceList($start, $end, $netflowFilter, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDeviceList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $start = 789; # Long | 
my $end = 789; # Long | 
my $netflowFilter = netflowFilter_example; # String | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDeviceList(start => $start, end => $end, netflowFilter => $netflowFilter, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDeviceList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device list api_response = api_instance.get_device_list(start=start, end=end, netflowFilter=netflowFilter, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDeviceList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDeviceListParams()
    
// get device list resp, err := client.LM.GetDeviceList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDeviceList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
start
Long (int64)
end
Long (int64)
netflowFilter
String
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getDevicePropertyByName

get device property by name


/device/devices/{deviceId}/properties/{name}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/properties/{name}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        String name = name_example; // String | 
        String fields = fields_example; // String | 
        try {
            EntityProperty result = apiInstance.getDevicePropertyByName(deviceId, name, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDevicePropertyByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        String name = name_example; // String | 
        String fields = fields_example; // String | 
        try {
            EntityProperty result = apiInstance.getDevicePropertyByName(deviceId, name, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDevicePropertyByName");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
String *name = name_example; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device property by name
[apiInstance getDevicePropertyByNameWith:deviceId
    name:name
    fields:fields
              completionHandler: ^(EntityProperty output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var name = name_example; // {String} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDevicePropertyByName(deviceId, name, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDevicePropertyByNameExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var name = name_example;  // String | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get device property by name
                EntityProperty result = apiInstance.getDevicePropertyByName(deviceId, name, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDevicePropertyByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$name = name_example; // String | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getDevicePropertyByName($deviceId, $name, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDevicePropertyByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $name = name_example; # String | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getDevicePropertyByName(deviceId => $deviceId, name => $name, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDevicePropertyByName: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device property by name api_response = api_instance.get_device_property_by_name(deviceId, name, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDevicePropertyByName: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDevicePropertyByNameParams()
    
// get device property by name resp, err := client.LM.GetDevicePropertyByName(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDevicePropertyByName: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
name*
String
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getDevicePropertyList

get device properties


/device/devices/{deviceId}/properties

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/properties?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            PropertyPaginationResponse result = apiInstance.getDevicePropertyList(deviceId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDevicePropertyList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            PropertyPaginationResponse result = apiInstance.getDevicePropertyList(deviceId, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getDevicePropertyList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get device properties
[apiInstance getDevicePropertyListWith:deviceId
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(PropertyPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDevicePropertyList(deviceId, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getDevicePropertyListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get device properties
                PropertyPaginationResponse result = apiInstance.getDevicePropertyList(deviceId, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getDevicePropertyList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getDevicePropertyList($deviceId, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getDevicePropertyList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getDevicePropertyList(deviceId => $deviceId, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getDevicePropertyList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get device properties api_response = api_instance.get_device_property_list(deviceId, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getDevicePropertyList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetDevicePropertyListParams()
    
// get device properties resp, err := client.LM.GetDevicePropertyList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetDevicePropertyList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
deviceId*
Integer (int32)
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getEscalationChainById

get escalation chain by id


/setting/alert/chains/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/alert/chains/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            EscalatingChain result = apiInstance.getEscalationChainById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getEscalationChainById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            EscalatingChain result = apiInstance.getEscalationChainById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getEscalationChainById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get escalation chain by id
[apiInstance getEscalationChainByIdWith:id
    fields:fields
              completionHandler: ^(EscalatingChain output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getEscalationChainById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getEscalationChainByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get escalation chain by id
                EscalatingChain result = apiInstance.getEscalationChainById(id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getEscalationChainById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getEscalationChainById($id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getEscalationChainById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getEscalationChainById(id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getEscalationChainById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get escalation chain by id api_response = api_instance.get_escalation_chain_by_id(id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getEscalationChainById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetEscalationChainByIDParams()
    
// get escalation chain by id resp, err := client.LM.GetEscalationChainByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetEscalationChainByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getEscalationChainList

get escalation chain list


/setting/alert/chains

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/alert/chains?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            EscalationChainPaginationResponse result = apiInstance.getEscalationChainList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getEscalationChainList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            EscalationChainPaginationResponse result = apiInstance.getEscalationChainList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getEscalationChainList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get escalation chain list
[apiInstance getEscalationChainListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(EscalationChainPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getEscalationChainList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getEscalationChainListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get escalation chain list
                EscalationChainPaginationResponse result = apiInstance.getEscalationChainList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getEscalationChainList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getEscalationChainList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getEscalationChainList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getEscalationChainList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getEscalationChainList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get escalation chain list api_response = api_instance.get_escalation_chain_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getEscalationChainList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetEscalationChainListParams()
    
// get escalation chain list resp, err := client.LM.GetEscalationChainList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetEscalationChainList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getEventSourceList

get eventSource list


/setting/eventsources

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/eventsources?format=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String format = format_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            EventSourcePaginationResponse result = apiInstance.getEventSourceList(format, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getEventSourceList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String format = format_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            EventSourcePaginationResponse result = apiInstance.getEventSourceList(format, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getEventSourceList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *format = format_example; //  (optional) (default to json)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get eventSource list
[apiInstance getEventSourceListWith:format
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(EventSourcePaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'format': format_example, // {String} 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getEventSourceList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getEventSourceListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var format = format_example;  // String |  (optional)  (default to json)
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get eventSource list
                EventSourcePaginationResponse result = apiInstance.getEventSourceList(format, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getEventSourceList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$format = format_example; // String | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getEventSourceList($format, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getEventSourceList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $format = format_example; # String | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getEventSourceList(format => $format, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getEventSourceList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get eventSource list api_response = api_instance.get_event_source_list(format=format, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getEventSourceList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetEventSourceListParams()
    
// get eventSource list resp, err := client.LM.GetEventSourceList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetEventSourceList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
format
String
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getExternalApiStats

get external api stats info


/apiStats/externalApis

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/apiStats/externalApis"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        try {
            ApiPerfMetrics result = apiInstance.getExternalApiStats();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getExternalApiStats");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        try {
            ApiPerfMetrics result = apiInstance.getExternalApiStats();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getExternalApiStats");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


LMApi *apiInstance = [[LMApi alloc] init];

// get external api stats info
[apiInstance getExternalApiStatsWithCompletionHandler: 
              ^(ApiPerfMetrics output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getExternalApiStats(callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getExternalApiStatsExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();

            try
            {
                // get external api stats info
                ApiPerfMetrics result = apiInstance.getExternalApiStats();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getExternalApiStats: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();

try {
    $result = $api_instance->getExternalApiStats();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getExternalApiStats: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();

eval { 
    my $result = $api_instance->getExternalApiStats();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getExternalApiStats: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
try:
    # get external api stats info
    api_response = api_instance.get_external_api_stats()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LMApi->getExternalApiStats: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetExternalApiStatsParams()
// get external api stats info
resp, err := client.LM.GetExternalApiStats(params)
if err != nil {
fmt.Printf("Exception when calling client.LM.GetExternalApiStats: %v", err.Error())
}
fmt.Print(resp)
}

Parameters

Responses

Status: 200 - successful operation

Status: default - Error


getImmediateDeviceListByDeviceGroupId

get immediate devices under group


/device/groups/{id}/devices

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/groups/{id}/devices?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DevicePaginationResponse result = apiInstance.getImmediateDeviceListByDeviceGroupId(id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getImmediateDeviceListByDeviceGroupId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DevicePaginationResponse result = apiInstance.getImmediateDeviceListByDeviceGroupId(id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getImmediateDeviceListByDeviceGroupId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get immediate devices under group
[apiInstance getImmediateDeviceListByDeviceGroupIdWith:id
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DevicePaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getImmediateDeviceListByDeviceGroupId(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getImmediateDeviceListByDeviceGroupIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get immediate devices under group
                DevicePaginationResponse result = apiInstance.getImmediateDeviceListByDeviceGroupId(id, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getImmediateDeviceListByDeviceGroupId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getImmediateDeviceListByDeviceGroupId($id, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getImmediateDeviceListByDeviceGroupId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getImmediateDeviceListByDeviceGroupId(id => $id, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getImmediateDeviceListByDeviceGroupId: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get immediate devices under group api_response = api_instance.get_immediate_device_list_by_device_group_id(id, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getImmediateDeviceListByDeviceGroupId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetImmediateDeviceListByDeviceGroupIDParams()
    
// get immediate devices under group resp, err := client.LM.GetImmediateDeviceListByDeviceGroupID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetImmediateDeviceListByDeviceGroupID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getImmediateWebsiteListByWebsiteGroupId

get a list of websites for a group


/website/groups/{id}/websites

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/website/groups/{id}/websites?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            WebsitePaginationResponse result = apiInstance.getImmediateWebsiteListByWebsiteGroupId(id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getImmediateWebsiteListByWebsiteGroupId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            WebsitePaginationResponse result = apiInstance.getImmediateWebsiteListByWebsiteGroupId(id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getImmediateWebsiteListByWebsiteGroupId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get a list of websites for a group
[apiInstance getImmediateWebsiteListByWebsiteGroupIdWith:id
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(WebsitePaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getImmediateWebsiteListByWebsiteGroupId(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getImmediateWebsiteListByWebsiteGroupIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get a list of websites for a group
                WebsitePaginationResponse result = apiInstance.getImmediateWebsiteListByWebsiteGroupId(id, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getImmediateWebsiteListByWebsiteGroupId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getImmediateWebsiteListByWebsiteGroupId($id, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getImmediateWebsiteListByWebsiteGroupId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getImmediateWebsiteListByWebsiteGroupId(id => $id, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getImmediateWebsiteListByWebsiteGroupId: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get a list of websites for a group api_response = api_instance.get_immediate_website_list_by_website_group_id(id, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getImmediateWebsiteListByWebsiteGroupId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetImmediateWebsiteListByWebsiteGroupIDParams()
    
// get a list of websites for a group resp, err := client.LM.GetImmediateWebsiteListByWebsiteGroupID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetImmediateWebsiteListByWebsiteGroupID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getMetricsUsage

get metrics usage


/metrics/usage

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/metrics/usage"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        try {
            Usage result = apiInstance.getMetricsUsage();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getMetricsUsage");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        try {
            Usage result = apiInstance.getMetricsUsage();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getMetricsUsage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


LMApi *apiInstance = [[LMApi alloc] init];

// get metrics usage
[apiInstance getMetricsUsageWithCompletionHandler: 
              ^(Usage output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMetricsUsage(callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getMetricsUsageExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();

            try
            {
                // get metrics usage
                Usage result = apiInstance.getMetricsUsage();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getMetricsUsage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();

try {
    $result = $api_instance->getMetricsUsage();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getMetricsUsage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();

eval { 
    my $result = $api_instance->getMetricsUsage();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getMetricsUsage: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
try:
    # get metrics usage
    api_response = api_instance.get_metrics_usage()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LMApi->getMetricsUsage: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetMetricsUsageParams()
// get metrics usage
resp, err := client.LM.GetMetricsUsage(params)
if err != nil {
fmt.Printf("Exception when calling client.LM.GetMetricsUsage: %v", err.Error())
}
fmt.Print(resp)
}

Parameters

Responses

Status: 200 - successful operation

Status: default - Error


getNetflowEndpointList

get netflow endpoint list


/device/devices/{id}/endpoints

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{id}/endpoints?start=&end=&netflowFilter=&port=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String port = port_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            EndpointPaginationResponse result = apiInstance.getNetflowEndpointList(id, start, end, netflowFilter, port, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getNetflowEndpointList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String port = port_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            EndpointPaginationResponse result = apiInstance.getNetflowEndpointList(id, start, end, netflowFilter, port, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getNetflowEndpointList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *netflowFilter = netflowFilter_example; //  (optional)
String *port = port_example; //  (optional)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get netflow endpoint list
[apiInstance getNetflowEndpointListWith:id
    start:start
    end:end
    netflowFilter:netflowFilter
    port:port
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(EndpointPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'netflowFilter': netflowFilter_example, // {String} 
  'port': port_example, // {String} 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getNetflowEndpointList(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getNetflowEndpointListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var netflowFilter = netflowFilter_example;  // String |  (optional) 
            var port = port_example;  // String |  (optional) 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get netflow endpoint list
                EndpointPaginationResponse result = apiInstance.getNetflowEndpointList(id, start, end, netflowFilter, port, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getNetflowEndpointList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$start = 789; // Long | 
$end = 789; // Long | 
$netflowFilter = netflowFilter_example; // String | 
$port = port_example; // String | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getNetflowEndpointList($id, $start, $end, $netflowFilter, $port, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getNetflowEndpointList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $netflowFilter = netflowFilter_example; # String | 
my $port = port_example; # String | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getNetflowEndpointList(id => $id, start => $start, end => $end, netflowFilter => $netflowFilter, port => $port, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getNetflowEndpointList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get netflow endpoint list api_response = api_instance.get_netflow_endpoint_list(id, start=start, end=end, netflowFilter=netflowFilter, port=port, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getNetflowEndpointList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetNetflowEndpointListParams()
    
// get netflow endpoint list resp, err := client.LM.GetNetflowEndpointList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetNetflowEndpointList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
start
Long (int64)
end
Long (int64)
netflowFilter
String
port
String
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getNetflowFlowList

get netflow flow list


/device/devices/{id}/flows

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{id}/flows?start=&end=&netflowFilter=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            FlowRecordPaginationResponse result = apiInstance.getNetflowFlowList(id, start, end, netflowFilter, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getNetflowFlowList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            FlowRecordPaginationResponse result = apiInstance.getNetflowFlowList(id, start, end, netflowFilter, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getNetflowFlowList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *netflowFilter = netflowFilter_example; //  (optional)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get netflow flow list
[apiInstance getNetflowFlowListWith:id
    start:start
    end:end
    netflowFilter:netflowFilter
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(FlowRecordPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'netflowFilter': netflowFilter_example, // {String} 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getNetflowFlowList(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getNetflowFlowListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var netflowFilter = netflowFilter_example;  // String |  (optional) 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get netflow flow list
                FlowRecordPaginationResponse result = apiInstance.getNetflowFlowList(id, start, end, netflowFilter, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getNetflowFlowList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$start = 789; // Long | 
$end = 789; // Long | 
$netflowFilter = netflowFilter_example; // String | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getNetflowFlowList($id, $start, $end, $netflowFilter, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getNetflowFlowList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $netflowFilter = netflowFilter_example; # String | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getNetflowFlowList(id => $id, start => $start, end => $end, netflowFilter => $netflowFilter, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getNetflowFlowList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get netflow flow list api_response = api_instance.get_netflow_flow_list(id, start=start, end=end, netflowFilter=netflowFilter, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getNetflowFlowList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetNetflowFlowListParams()
    
// get netflow flow list resp, err := client.LM.GetNetflowFlowList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetNetflowFlowList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
start
Long (int64)
end
Long (int64)
netflowFilter
String
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getNetflowPortList

get netflow port list


/device/devices/{id}/ports

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{id}/ports?start=&end=&netflowFilter=&ip=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String ip = ip_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            PortPaginationResponse result = apiInstance.getNetflowPortList(id, start, end, netflowFilter, ip, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getNetflowPortList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        Long start = 789; // Long | 
        Long end = 789; // Long | 
        String netflowFilter = netflowFilter_example; // String | 
        String ip = ip_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            PortPaginationResponse result = apiInstance.getNetflowPortList(id, start, end, netflowFilter, ip, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getNetflowPortList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
Long *start = 789; //  (optional)
Long *end = 789; //  (optional)
String *netflowFilter = netflowFilter_example; //  (optional)
String *ip = ip_example; //  (optional)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get netflow port list
[apiInstance getNetflowPortListWith:id
    start:start
    end:end
    netflowFilter:netflowFilter
    ip:ip
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(PortPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'start': 789, // {Long} 
  'end': 789, // {Long} 
  'netflowFilter': netflowFilter_example, // {String} 
  'ip': ip_example, // {String} 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getNetflowPortList(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getNetflowPortListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var start = 789;  // Long |  (optional) 
            var end = 789;  // Long |  (optional) 
            var netflowFilter = netflowFilter_example;  // String |  (optional) 
            var ip = ip_example;  // String |  (optional) 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get netflow port list
                PortPaginationResponse result = apiInstance.getNetflowPortList(id, start, end, netflowFilter, ip, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getNetflowPortList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$start = 789; // Long | 
$end = 789; // Long | 
$netflowFilter = netflowFilter_example; // String | 
$ip = ip_example; // String | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getNetflowPortList($id, $start, $end, $netflowFilter, $ip, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getNetflowPortList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $start = 789; # Long | 
my $end = 789; # Long | 
my $netflowFilter = netflowFilter_example; # String | 
my $ip = ip_example; # String | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getNetflowPortList(id => $id, start => $start, end => $end, netflowFilter => $netflowFilter, ip => $ip, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getNetflowPortList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get netflow port list api_response = api_instance.get_netflow_port_list(id, start=start, end=end, netflowFilter=netflowFilter, ip=ip, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getNetflowPortList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetNetflowPortListParams()
    
// get netflow port list resp, err := client.LM.GetNetflowPortList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetNetflowPortList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
start
Long (int64)
end
Long (int64)
netflowFilter
String
ip
String
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getNetscanById

get netscan by id


/setting/netscans/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/netscans/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Netscan result = apiInstance.getNetscanById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getNetscanById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            Netscan result = apiInstance.getNetscanById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getNetscanById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// get netscan by id
[apiInstance getNetscanByIdWith:id
              completionHandler: ^(Netscan output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getNetscanById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getNetscanByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // get netscan by id
                Netscan result = apiInstance.getNetscanById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getNetscanById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->getNetscanById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getNetscanById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->getNetscanById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getNetscanById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get netscan by id api_response = api_instance.get_netscan_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getNetscanById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetNetscanByIDParams()
    
// get netscan by id resp, err := client.LM.GetNetscanByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetNetscanByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


getNetscanList

get netscan list


/setting/netscans

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/netscans?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            NetscanPaginationResponse result = apiInstance.getNetscanList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getNetscanList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            NetscanPaginationResponse result = apiInstance.getNetscanList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getNetscanList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get netscan list
[apiInstance getNetscanListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(NetscanPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getNetscanList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getNetscanListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get netscan list
                NetscanPaginationResponse result = apiInstance.getNetscanList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getNetscanList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getNetscanList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getNetscanList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getNetscanList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getNetscanList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get netscan list api_response = api_instance.get_netscan_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getNetscanList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetNetscanListParams()
    
// get netscan list resp, err := client.LM.GetNetscanList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetNetscanList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getOpsNoteById

get opsnote by id


/setting/opsnotes/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/opsnotes/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        String fields = fields_example; // String | 
        try {
            OpsNote result = apiInstance.getOpsNoteById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getOpsNoteById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        String fields = fields_example; // String | 
        try {
            OpsNote result = apiInstance.getOpsNoteById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getOpsNoteById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *id = id_example; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get opsnote by id
[apiInstance getOpsNoteByIdWith:id
    fields:fields
              completionHandler: ^(OpsNote output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = id_example; // {String} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOpsNoteById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getOpsNoteByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = id_example;  // String | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get opsnote by id
                OpsNote result = apiInstance.getOpsNoteById(id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getOpsNoteById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = id_example; // String | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getOpsNoteById($id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getOpsNoteById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = id_example; # String | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getOpsNoteById(id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getOpsNoteById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get opsnote by id api_response = api_instance.get_ops_note_by_id(id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getOpsNoteById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetOpsNoteByIDParams()
    
// get opsnote by id resp, err := client.LM.GetOpsNoteByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetOpsNoteByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
String
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getOpsNoteList

get opsnote list


/setting/opsnotes

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/opsnotes?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | Filter the response based on tags, createdBy, happenedOn, monitorObjectGroups, monitorObjectNames, or _all field values
        try {
            OpsNotePaginationResponse result = apiInstance.getOpsNoteList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getOpsNoteList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | Filter the response based on tags, createdBy, happenedOn, monitorObjectGroups, monitorObjectNames, or _all field values
        try {
            OpsNotePaginationResponse result = apiInstance.getOpsNoteList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getOpsNoteList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; // Filter the response based on tags, createdBy, happenedOn, monitorObjectGroups, monitorObjectNames, or _all field values (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get opsnote list
[apiInstance getOpsNoteListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(OpsNotePaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} Filter the response based on tags, createdBy, happenedOn, monitorObjectGroups, monitorObjectNames, or _all field values
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOpsNoteList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getOpsNoteListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String | Filter the response based on tags, createdBy, happenedOn, monitorObjectGroups, monitorObjectNames, or _all field values (optional) 

            try
            {
                // get opsnote list
                OpsNotePaginationResponse result = apiInstance.getOpsNoteList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getOpsNoteList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | Filter the response based on tags, createdBy, happenedOn, monitorObjectGroups, monitorObjectNames, or _all field values

try {
    $result = $api_instance->getOpsNoteList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getOpsNoteList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | Filter the response based on tags, createdBy, happenedOn, monitorObjectGroups, monitorObjectNames, or _all field values

eval { 
    my $result = $api_instance->getOpsNoteList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getOpsNoteList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get opsnote list api_response = api_instance.get_ops_note_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getOpsNoteList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetOpsNoteListParams()
    
// get opsnote list resp, err := client.LM.GetOpsNoteList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetOpsNoteList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String
Filter the response based on tags, createdBy, happenedOn, monitorObjectGroups, monitorObjectNames, or _all field values

Responses

Status: 200 - successful operation

Status: default - Error


getRecipientGroupById

get recipient group by id


/setting/recipientgroups/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/recipientgroups/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            RecipientGroup result = apiInstance.getRecipientGroupById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getRecipientGroupById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            RecipientGroup result = apiInstance.getRecipientGroupById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getRecipientGroupById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// get recipient group by id
[apiInstance getRecipientGroupByIdWith:id
              completionHandler: ^(RecipientGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRecipientGroupById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getRecipientGroupByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // get recipient group by id
                RecipientGroup result = apiInstance.getRecipientGroupById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getRecipientGroupById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->getRecipientGroupById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getRecipientGroupById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->getRecipientGroupById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getRecipientGroupById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get recipient group by id api_response = api_instance.get_recipient_group_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getRecipientGroupById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetRecipientGroupByIDParams()
    
// get recipient group by id resp, err := client.LM.GetRecipientGroupByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetRecipientGroupByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


getRecipientGroupList

get recipient group List


/setting/recipientgroups

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/recipientgroups?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            RecipientGroupPaginationResponse result = apiInstance.getRecipientGroupList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getRecipientGroupList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            RecipientGroupPaginationResponse result = apiInstance.getRecipientGroupList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getRecipientGroupList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get recipient group List
[apiInstance getRecipientGroupListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(RecipientGroupPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRecipientGroupList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getRecipientGroupListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get recipient group List
                RecipientGroupPaginationResponse result = apiInstance.getRecipientGroupList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getRecipientGroupList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getRecipientGroupList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getRecipientGroupList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getRecipientGroupList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getRecipientGroupList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get recipient group List api_response = api_instance.get_recipient_group_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getRecipientGroupList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetRecipientGroupListParams()
    
// get recipient group List resp, err := client.LM.GetRecipientGroupList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetRecipientGroupList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getReportById

get report by id


/report/reports/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/report/reports/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            ReportBase result = apiInstance.getReportById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getReportById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            ReportBase result = apiInstance.getReportById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getReportById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get report by id
[apiInstance getReportByIdWith:id
    fields:fields
              completionHandler: ^(ReportBase output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getReportById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getReportByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get report by id
                ReportBase result = apiInstance.getReportById(id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getReportById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getReportById($id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getReportById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getReportById(id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getReportById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get report by id api_response = api_instance.get_report_by_id(id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getReportById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetReportByIDParams()
    
// get report by id resp, err := client.LM.GetReportByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetReportByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getReportGroupById

get report group by id


/report/groups/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/report/groups/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            ReportGroup result = apiInstance.getReportGroupById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getReportGroupById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        try {
            ReportGroup result = apiInstance.getReportGroupById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getReportGroupById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 

LMApi *apiInstance = [[LMApi alloc] init];

// get report group by id
[apiInstance getReportGroupByIdWith:id
              completionHandler: ^(ReportGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getReportGroupById(id, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getReportGroupByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 

            try
            {
                // get report group by id
                ReportGroup result = apiInstance.getReportGroupById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getReportGroupById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->getReportGroupById($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getReportGroupById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->getReportGroupById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getReportGroupById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get report group by id api_response = api_instance.get_report_group_by_id(id) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getReportGroupById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetReportGroupByIDParams()
    
// get report group by id resp, err := client.LM.GetReportGroupByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetReportGroupByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses

Status: 200 - successful operation

Status: default - Error


getReportGroupList

get report group list


/report/groups

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/report/groups?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            ReportGroupPaginationResponse result = apiInstance.getReportGroupList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getReportGroupList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            ReportGroupPaginationResponse result = apiInstance.getReportGroupList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getReportGroupList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get report group list
[apiInstance getReportGroupListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(ReportGroupPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getReportGroupList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getReportGroupListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get report group list
                ReportGroupPaginationResponse result = apiInstance.getReportGroupList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getReportGroupList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getReportGroupList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getReportGroupList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getReportGroupList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getReportGroupList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get report group list api_response = api_instance.get_report_group_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getReportGroupList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetReportGroupListParams()
    
// get report group list resp, err := client.LM.GetReportGroupList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetReportGroupList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getReportList

get report list


/report/reports

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/report/reports?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            ReportPaginationResponse result = apiInstance.getReportList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getReportList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            ReportPaginationResponse result = apiInstance.getReportList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getReportList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get report list
[apiInstance getReportListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(ReportPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getReportList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getReportListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get report list
                ReportPaginationResponse result = apiInstance.getReportList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getReportList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getReportList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getReportList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getReportList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getReportList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get report list api_response = api_instance.get_report_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getReportList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetReportListParams()
    
// get report list resp, err := client.LM.GetReportList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetReportList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getRoleById

get role by id


/setting/roles/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/roles/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            Role result = apiInstance.getRoleById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getRoleById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        try {
            Role result = apiInstance.getRoleById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getRoleById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *id = 56; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get role by id
[apiInstance getRoleByIdWith:id
    fields:fields
              completionHandler: ^(Role output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRoleById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getRoleByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get role by id
                Role result = apiInstance.getRoleById(id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getRoleById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getRoleById($id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getRoleById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = 56; # Integer | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getRoleById(id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getRoleById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get role by id api_response = api_instance.get_role_by_id(id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getRoleById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetRoleByIDParams()
    
// get role by id resp, err := client.LM.GetRoleByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetRoleByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getRoleList

get role list


/setting/roles

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/setting/roles?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            RolePaginationResponse result = apiInstance.getRoleList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getRoleList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            RolePaginationResponse result = apiInstance.getRoleList(fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getRoleList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get role list
[apiInstance getRoleListWith:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(RolePaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRoleList(opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getRoleListExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get role list
                RolePaginationResponse result = apiInstance.getRoleList(fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getRoleList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getRoleList($fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getRoleList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getRoleList(fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getRoleList: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get role list api_response = api_instance.get_role_list(fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getRoleList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetRoleListParams()
    
// get role list resp, err := client.LM.GetRoleList(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetRoleList: %v", err.Error()) } fmt.Print(resp) }

Parameters

Query parameters
Name Description
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


getSDTById

get SDT by id


/sdt/sdts/{id}

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/sdt/sdts/{id}?fields="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        String fields = fields_example; // String | 
        try {
            SDT result = apiInstance.getSDTById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getSDTById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        String id = id_example; // String | 
        String fields = fields_example; // String | 
        try {
            SDT result = apiInstance.getSDTById(id, fields);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getSDTById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

String *id = id_example; // 
String *fields = fields_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get SDT by id
[apiInstance getSDTByIdWith:id
    fields:fields
              completionHandler: ^(SDT output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var id = id_example; // {String} 

var opts = { 
  'fields': fields_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSDTById(id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getSDTByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var id = id_example;  // String | 
            var fields = fields_example;  // String |  (optional) 

            try
            {
                // get SDT by id
                SDT result = apiInstance.getSDTById(id, fields);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getSDTById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$id = id_example; // String | 
$fields = fields_example; // String | 

try {
    $result = $api_instance->getSDTById($id, $fields);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getSDTById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $id = id_example; # String | 
my $fields = fields_example; # String | 

eval { 
    my $result = $api_instance->getSDTById(id => $id, fields => $fields);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getSDTById: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get SDT by id api_response = api_instance.get_sdt_by_id(id, fields=fields) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getSDTById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetSDTByIDParams()
    
// get SDT by id resp, err := client.LM.GetSDTByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.GetSDTByID: %v", err.Error()) } fmt.Print(resp) }

Parameters

Path parameters
Name Description
id*
String
Required
Query parameters
Name Description
fields
String

Responses

Status: 200 - successful operation

Status: default - Error


getSDTHistoryByDeviceDataSourceId

get SDT history for the device dataSource


/device/devices/{deviceId}/devicedatasources/{id}/historysdts

Usage and SDK Samples

curl -X GET -H "Authorization: [[apiKey]]" "https://localhost/santaba/rest/device/devices/{deviceId}/devicedatasources/{id}/historysdts?fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LMApi;

import java.io.File;
import java.util.*;

public class LMApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: LMv1
        ApiKeyAuth LMv1 = (ApiKeyAuth) defaultClient.getAuthentication("LMv1");
        LMv1.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //LMv1.setApiKeyPrefix("Token");

        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDataSourceSDTHistoryPaginationResponse result = apiInstance.getSDTHistoryByDeviceDataSourceId(deviceId, id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getSDTHistoryByDeviceDataSourceId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LMApi;

public class LMApiExample {

    public static void main(String[] args) {
        LMApi apiInstance = new LMApi();
        Integer deviceId = 56; // Integer | 
        Integer id = 56; // Integer | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            DeviceDataSourceSDTHistoryPaginationResponse result = apiInstance.getSDTHistoryByDeviceDataSourceId(deviceId, id, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LMApi#getSDTHistoryByDeviceDataSourceId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: LMv1)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];

Integer *deviceId = 56; // 
Integer *id = 56; // 
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

LMApi *apiInstance = [[LMApi alloc] init];

// get SDT history for the device dataSource
[apiInstance getSDTHistoryByDeviceDataSourceIdWith:deviceId
    id:id
    fields:fields
    size:size
    offset:offset
    filter:filter
              completionHandler: ^(DeviceDataSourceSDTHistoryPaginationResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var LogicMonitorRestApi = require('logic_monitor_rest_api');
var defaultClient = LogicMonitorRestApi.ApiClient.instance;

// Configure API key authorization: LMv1
var LMv1 = defaultClient.authentications['LMv1'];
LMv1.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//LMv1.apiKeyPrefix['Authorization'] = "Token"

var api = new LogicMonitorRestApi.LMApi()

var deviceId = 56; // {Integer} 

var id = 56; // {Integer} 

var opts = { 
  'fields': fields_example, // {String} 
  'size': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'filter': filter_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSDTHistoryByDeviceDataSourceId(deviceId, id, opts, callback);
using System;
using System.Diagnostics;
using logicmonitor_sdk.Api;
using logicmonitor_sdk.Client;
using logicmonitor_sdk.Model;

namespace Example
{
    public class getSDTHistoryByDeviceDataSourceIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: LMv1
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            var apiInstance = new LMApi();
            var deviceId = 56;  // Integer | 
            var id = 56;  // Integer | 
            var fields = fields_example;  // String |  (optional) 
            var size = 56;  // Integer |  (optional) 
            var offset = 56;  // Integer |  (optional) 
            var filter = filter_example;  // String |  (optional) 

            try
            {
                // get SDT history for the device dataSource
                DeviceDataSourceSDTHistoryPaginationResponse result = apiInstance.getSDTHistoryByDeviceDataSourceId(deviceId, id, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LMApi.getSDTHistoryByDeviceDataSourceId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: LMv1
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new Swagger\Client\Api\LMApi();
$deviceId = 56; // Integer | 
$id = 56; // Integer | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getSDTHistoryByDeviceDataSourceId($deviceId, $id, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LMApi->getSDTHistoryByDeviceDataSourceId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LMApi;

# Configure API key authorization: LMv1
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

my $api_instance = WWW::SwaggerClient::LMApi->new();
my $deviceId = 56; # Integer | 
my $id = 56; # Integer | 
my $fields = fields_example; # String | 
my $size = 56; # Integer | 
my $offset = 56; # Integer | 
my $filter = filter_example; # String | 

eval { 
    my $result = $api_instance->getSDTHistoryByDeviceDataSourceId(deviceId => $deviceId, id => $id, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LMApi->getSDTHistoryByDeviceDataSourceId: $@\n";
}
from __future__ import print_function
import time
import logicmonitor_sdk
from logicmonitor_sdk.rest import ApiException
from pprint import pprint


# Configure API key authorization: LMv1
configuration = logicmonitor_sdk.Configuration()
configuration.company = 'YOUR_COMPANY'
configuration.access_id = 'YOUR_ACCESS_ID'
configuration.access_key = 'YOUR_ACCESS_KEY'

# create an instance of the API class
api_instance = logicmonitor_sdk.LMApi(logicmonitor_sdk.ApiClient(configuration))
    
try: # get SDT history for the device dataSource api_response = api_instance.get_sdt_history_by_device_data_source_id(deviceId, id, fields=fields, size=size, offset=offset, filter=filter) pprint(api_response) except ApiException as e: print("Exception when calling LMApi->getSDTHistoryByDeviceDataSourceId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
)
func main() {
// Configure API key authorization: LMv1
domain := "YOUR_COMPANY.logicmonitor.com"
accessID := "YOUR_ACCESS_ID"
accessKey := "YOUR_ACCESS_KEY"

config := client.NewConfig()
config.SetAccountDomain(&domain)
config.SetAccessID(&accessID)
config.SetAccessKey(&accessKey)

// create an instance of the API class
client := client.New(config)
params := lm.NewGetSDTHistoryByDeviceDataSourceIDParams()