LogicMonitor REST API

APITokens

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.APITokensApi;

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

public class APITokensApiExample {

    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");

        APITokensApi apiInstance = new APITokensApi();
        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 APITokensApi#addApiTokenByAdminId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APITokensApi;

public class APITokensApiExample {

    public static void main(String[] args) {
        APITokensApi apiInstance = new APITokensApi();
        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 APITokensApi#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)

APITokensApi *apiInstance = [[APITokensApi 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.APITokensApi()

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 APITokensApi();
            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 APITokensApi.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\APITokensApi();
$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 APITokensApi->addApiTokenByAdminId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::APITokensApi;

# 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::APITokensApi->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 APITokensApi->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, ) pprint(api_response) except ApiException as e: print("Exception when calling APITokensApi->addApiTokenByAdminId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
    "github.com/logicmonitor/lm-sdk-go/models"
)
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


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?type=&permission=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.APITokensApi;

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

public class APITokensApiExample {

    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");

        APITokensApi apiInstance = new APITokensApi();
        String type = type_example; // String | 
        String permission = permission_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            ApiTokenPaginationResponse result = apiInstance.getApiTokenList(type, permission, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APITokensApi#getApiTokenList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APITokensApi;

public class APITokensApiExample {

    public static void main(String[] args) {
        APITokensApi apiInstance = new APITokensApi();
        String type = type_example; // String | 
        String permission = permission_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            ApiTokenPaginationResponse result = apiInstance.getApiTokenList(type, permission, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APITokensApi#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 *type = type_example; //  (optional)
String *permission = permission_example; //  (optional)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

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

// get a list of api tokens across users
[apiInstance getApiTokenListWith:type
    permission:permission
    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.APITokensApi()

var opts = { 
  'type': type_example, // {String} 
  'permission': permission_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.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 APITokensApi();
            var type = type_example;  // String |  (optional) 
            var permission = permission_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 a list of api tokens across users
                ApiTokenPaginationResponse result = apiInstance.getApiTokenList(type, permission, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APITokensApi.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\APITokensApi();
$type = type_example; // String | 
$permission = permission_example; // String | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getApiTokenList($type, $permission, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling APITokensApi->getApiTokenList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::APITokensApi;

# 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::APITokensApi->new();
my $type = type_example; # String | 
my $permission = permission_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->getApiTokenList(type => $type, permission => $permission, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APITokensApi->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(, , , , , ) pprint(api_response) except ApiException as e: print("Exception when calling APITokensApi->getApiTokenList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
    "github.com/logicmonitor/lm-sdk-go/models"
)
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
type
String
permission
String
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?type=&permission=&fields=&size=&offset=&filter="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.APITokensApi;

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

public class APITokensApiExample {

    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");

        APITokensApi apiInstance = new APITokensApi();
        Integer adminId = 56; // Integer | 
        String type = type_example; // String | 
        String permission = permission_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            ApiTokenPaginationResponse result = apiInstance.getApiTokenListByAdminId(adminId, type, permission, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APITokensApi#getApiTokenListByAdminId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.APITokensApi;

public class APITokensApiExample {

    public static void main(String[] args) {
        APITokensApi apiInstance = new APITokensApi();
        Integer adminId = 56; // Integer | 
        String type = type_example; // String | 
        String permission = permission_example; // String | 
        String fields = fields_example; // String | 
        Integer size = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String filter = filter_example; // String | 
        try {
            ApiTokenPaginationResponse result = apiInstance.getApiTokenListByAdminId(adminId, type, permission, fields, size, offset, filter);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling APITokensApi#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 *type = type_example; //  (optional)
String *permission = permission_example; //  (optional)
String *fields = fields_example; //  (optional)
Integer *size = 56; //  (optional)
Integer *offset = 56; //  (optional)
String *filter = filter_example; //  (optional)

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

// get api tokens for a user
[apiInstance getApiTokenListByAdminIdWith:adminId
    type:type
    permission:permission
    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.APITokensApi()

var adminId = 56; // {Integer} 

var opts = { 
  'type': type_example, // {String} 
  'permission': permission_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.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 APITokensApi();
            var adminId = 56;  // Integer | 
            var type = type_example;  // String |  (optional) 
            var permission = permission_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 api tokens for a user
                ApiTokenPaginationResponse result = apiInstance.getApiTokenListByAdminId(adminId, type, permission, fields, size, offset, filter);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling APITokensApi.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\APITokensApi();
$adminId = 56; // Integer | 
$type = type_example; // String | 
$permission = permission_example; // String | 
$fields = fields_example; // String | 
$size = 56; // Integer | 
$offset = 56; // Integer | 
$filter = filter_example; // String | 

try {
    $result = $api_instance->getApiTokenListByAdminId($adminId, $type, $permission, $fields, $size, $offset, $filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling APITokensApi->getApiTokenListByAdminId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::APITokensApi;

# 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::APITokensApi->new();
my $adminId = 56; # Integer | 
my $type = type_example; # String | 
my $permission = permission_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->getApiTokenListByAdminId(adminId => $adminId, type => $type, permission => $permission, fields => $fields, size => $size, offset => $offset, filter => $filter);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling APITokensApi->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, , , , , , ) pprint(api_response) except ApiException as e: print("Exception when calling APITokensApi->getApiTokenListByAdminId: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
    "github.com/logicmonitor/lm-sdk-go/models"
)
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
type
String
permission
String
fields
String
size
Integer (int32)
offset
Integer (int32)
filter
String

Responses

Status: 200 - successful operation

Status: default - Error


AlertRules

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.AlertRulesApi;

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

public class AlertRulesApiExample {

    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");

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

public class AlertRulesApiExample {

    public static void main(String[] args) {
        AlertRulesApi apiInstance = new AlertRulesApi();
        AlertRule body = ; // AlertRule | 
        try {
            AlertRule result = apiInstance.addAlertRule(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertRulesApi#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 = ; // 

AlertRulesApi *apiInstance = [[AlertRulesApi 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.AlertRulesApi()

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 AlertRulesApi();
            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 AlertRulesApi.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\AlertRulesApi();
$body = ; // AlertRule | 

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

# 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::AlertRulesApi->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 AlertRulesApi->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 AlertRulesApi->addAlertRule: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
    "github.com/logicmonitor/lm-sdk-go/models"
)
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


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.AlertRulesApi;

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

public class AlertRulesApiExample {

    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");

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

public class AlertRulesApiExample {

    public static void main(String[] args) {
        AlertRulesApi apiInstance = new AlertRulesApi();
        Integer id = 56; // Integer | 
        try {
            Object result = apiInstance.deleteAlertRuleById(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertRulesApi#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; // 

AlertRulesApi *apiInstance = [[AlertRulesApi 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.AlertRulesApi()

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 AlertRulesApi();
            var id = 56;  // Integer | 

            try
            {
                // delete alert rule
                Object result = apiInstance.deleteAlertRuleById(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AlertRulesApi.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\AlertRulesApi();
$id = 56; // Integer | 

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

# 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::AlertRulesApi->new();
my $id = 56; # Integer | 

eval { 
    my $result = $api_instance->deleteAlertRuleById(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertRulesApi->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 AlertRulesApi->deleteAlertRuleById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
    "github.com/logicmonitor/lm-sdk-go/models"
)
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


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.AlertRulesApi;

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

public class AlertRulesApiExample {

    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");

        AlertRulesApi apiInstance = new AlertRulesApi();
        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 AlertRulesApi#getAlertRuleById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AlertRulesApi;

public class AlertRulesApiExample {

    public static void main(String[] args) {
        AlertRulesApi apiInstance = new AlertRulesApi();
        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 AlertRulesApi#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)

AlertRulesApi *apiInstance = [[AlertRulesApi 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.AlertRulesApi()

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 AlertRulesApi();
            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 AlertRulesApi.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\AlertRulesApi();
$id = 56; // Integer | 
$fields = fields_example; // String | 

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

# 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::AlertRulesApi->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 AlertRulesApi->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, ) pprint(api_response) except ApiException as e: print("Exception when calling AlertRulesApi->getAlertRuleById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
    "github.com/logicmonitor/lm-sdk-go/models"
)
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.AlertRulesApi;

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

public class AlertRulesApiExample {

    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");

        AlertRulesApi apiInstance = new AlertRulesApi();
        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 AlertRulesApi#getAlertRuleList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AlertRulesApi;

public class AlertRulesApiExample {

    public static void main(String[] args) {
        AlertRulesApi apiInstance = new AlertRulesApi();
        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 AlertRulesApi#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)

AlertRulesApi *apiInstance = [[AlertRulesApi 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.AlertRulesApi()

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 AlertRulesApi();
            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 AlertRulesApi.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\AlertRulesApi();
$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 AlertRulesApi->getAlertRuleList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AlertRulesApi;

# 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::AlertRulesApi->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 AlertRulesApi->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(, , , ) pprint(api_response) except ApiException as e: print("Exception when calling AlertRulesApi->getAlertRuleList: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
    "github.com/logicmonitor/lm-sdk-go/models"
)
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


patchAlertRuleById

update alert rule


/setting/alert/rules/{id}

Usage and SDK Samples

curl -X PATCH -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.AlertRulesApi;

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

public class AlertRulesApiExample {

    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");

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

public class AlertRulesApiExample {

    public static void main(String[] args) {
        AlertRulesApi apiInstance = new AlertRulesApi();
        Integer id = 56; // Integer | 
        AlertRule body = ; // AlertRule | 
        try {
            AlertRule result = apiInstance.patchAlertRuleById(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertRulesApi#patchAlertRuleById");
            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; // 
AlertRule *body = ; // 

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

// update alert rule
[apiInstance patchAlertRuleByIdWith:id
    body: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.AlertRulesApi()

var id = 56; // {Integer} 

var body = ; // {AlertRule} 


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

namespace Example
{
    public class patchAlertRuleByIdExample
    {
        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 AlertRulesApi();
            var id = 56;  // Integer | 
            var body = new AlertRule(); // AlertRule | 

            try
            {
                // update alert rule
                AlertRule result = apiInstance.patchAlertRuleById(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AlertRulesApi.patchAlertRuleById: " + 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\AlertRulesApi();
$id = 56; // Integer | 
$body = ; // AlertRule | 

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

# 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::AlertRulesApi->new();
my $id = 56; # Integer | 
my $body = WWW::SwaggerClient::Object::AlertRule->new(); # AlertRule | 

eval { 
    my $result = $api_instance->patchAlertRuleById(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertRulesApi->patchAlertRuleById: $@\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: # update alert rule api_response = api_instance.patch_alert_rule_by_id(id, body) pprint(api_response) except ApiException as e: print("Exception when calling AlertRulesApi->patchAlertRuleById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
    "github.com/logicmonitor/lm-sdk-go/models"
)
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.NewPatchAlertRuleByIDParams()
    
// update alert rule resp, err := client.LM.PatchAlertRuleByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.PatchAlertRuleByID: %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


updateAlertRuleById

update alert rule


/setting/alert/rules/{id}

Usage and SDK Samples

curl -X PUT -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.AlertRulesApi;

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

public class AlertRulesApiExample {

    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");

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

public class AlertRulesApiExample {

    public static void main(String[] args) {
        AlertRulesApi apiInstance = new AlertRulesApi();
        Integer id = 56; // Integer | 
        AlertRule body = ; // AlertRule | 
        try {
            AlertRule result = apiInstance.updateAlertRuleById(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertRulesApi#updateAlertRuleById");
            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; // 
AlertRule *body = ; // 

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

// update alert rule
[apiInstance updateAlertRuleByIdWith:id
    body: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.AlertRulesApi()

var id = 56; // {Integer} 

var body = ; // {AlertRule} 


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

namespace Example
{
    public class updateAlertRuleByIdExample
    {
        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 AlertRulesApi();
            var id = 56;  // Integer | 
            var body = new AlertRule(); // AlertRule | 

            try
            {
                // update alert rule
                AlertRule result = apiInstance.updateAlertRuleById(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AlertRulesApi.updateAlertRuleById: " + 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\AlertRulesApi();
$id = 56; // Integer | 
$body = ; // AlertRule | 

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

# 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::AlertRulesApi->new();
my $id = 56; # Integer | 
my $body = WWW::SwaggerClient::Object::AlertRule->new(); # AlertRule | 

eval { 
    my $result = $api_instance->updateAlertRuleById(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertRulesApi->updateAlertRuleById: $@\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: # update alert rule api_response = api_instance.update_alert_rule_by_id(id, body) pprint(api_response) except ApiException as e: print("Exception when calling AlertRulesApi->updateAlertRuleById: %s\n" % e)
package main

import (
    "fmt"
    "github.com/logicmonitor/lm-sdk-go/client"
    "github.com/logicmonitor/lm-sdk-go/client/lm"
    "github.com/logicmonitor/lm-sdk-go/models"
)
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.NewUpdateAlertRuleByIDParams()
    
// update alert rule resp, err := client.LM.UpdateAlertRuleByID(params) if err != nil { fmt.Printf("Exception when calling client.LM.UpdateAlertRuleByID: %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