Genian NAC REST API

Admins

changePassword

Reset a specific user's password

Resets the password of the user specified.


/admins/{adminId}/password

Usage and SDK Samples

curl -X PUT "https://localhost/mc2/rest/admins/{adminId}/password"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AdminsApi;

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

public class AdminsApiExample {

    public static void main(String[] args) {
        
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Username (ADM_ID)
        String oldPw = oldPw_example; // String | Old password
        String newPw = newPw_example; // String | New password
        Boolean isEncrytion = true; // Boolean | Password encryption
        try {
            apiInstance.changePassword(adminId, oldPw, newPw, isEncrytion);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#changePassword");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AdminsApi;

public class AdminsApiExample {

    public static void main(String[] args) {
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Username (ADM_ID)
        String oldPw = oldPw_example; // String | Old password
        String newPw = newPw_example; // String | New password
        Boolean isEncrytion = true; // Boolean | Password encryption
        try {
            apiInstance.changePassword(adminId, oldPw, newPw, isEncrytion);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#changePassword");
            e.printStackTrace();
        }
    }
}
String *adminId = adminId_example; // Username (ADM_ID)
String *oldPw = oldPw_example; // Old password
String *newPw = newPw_example; // New password
Boolean *isEncrytion = true; // Password encryption (optional)

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

// Reset a specific user's password
[apiInstance changePasswordWith:adminId
    oldPw:oldPw
    newPw:newPw
    isEncrytion:isEncrytion
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.AdminsApi()

var adminId = adminId_example; // {String} Username (ADM_ID)

var oldPw = oldPw_example; // {String} Old password

var newPw = newPw_example; // {String} New password

var opts = { 
  'isEncrytion': true // {Boolean} Password encryption
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.changePassword(adminId, oldPw, newPw, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class changePasswordExample
    {
        public void main()
        {
            
            var apiInstance = new AdminsApi();
            var adminId = adminId_example;  // String | Username (ADM_ID)
            var oldPw = oldPw_example;  // String | Old password
            var newPw = newPw_example;  // String | New password
            var isEncrytion = true;  // Boolean | Password encryption (optional) 

            try
            {
                // Reset a specific user's password
                apiInstance.changePassword(adminId, oldPw, newPw, isEncrytion);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AdminsApi.changePassword: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AdminsApi();
$adminId = adminId_example; // String | Username (ADM_ID)
$oldPw = oldPw_example; // String | Old password
$newPw = newPw_example; // String | New password
$isEncrytion = true; // Boolean | Password encryption

try {
    $api_instance->changePassword($adminId, $oldPw, $newPw, $isEncrytion);
} catch (Exception $e) {
    echo 'Exception when calling AdminsApi->changePassword: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AdminsApi;

my $api_instance = WWW::SwaggerClient::AdminsApi->new();
my $adminId = adminId_example; # String | Username (ADM_ID)
my $oldPw = oldPw_example; # String | Old password
my $newPw = newPw_example; # String | New password
my $isEncrytion = true; # Boolean | Password encryption

eval { 
    $api_instance->changePassword(adminId => $adminId, oldPw => $oldPw, newPw => $newPw, isEncrytion => $isEncrytion);
};
if ($@) {
    warn "Exception when calling AdminsApi->changePassword: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AdminsApi()
adminId = adminId_example # String | Username (ADM_ID)
oldPw = oldPw_example # String | Old password
newPw = newPw_example # String | New password
isEncrytion = true # Boolean | Password encryption (optional)

try: 
    # Reset a specific user's password
    api_instance.change_password(adminId, oldPw, newPw, isEncrytion=isEncrytion)
except ApiException as e:
    print("Exception when calling AdminsApi->changePassword: %s\n" % e)

Parameters

Path parameters
Name Description
adminId*
String
Username (ADM_ID)
Required
Form parameters
Name Description
oldPw*
String
Old password
Required
newPw*
String
New password
Required
isEncrytion
Boolean
Password encryption

Responses

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 500 - Internal Server Error


createAdmin

Create an administrator

Create an administrator.


/admins/{adminId}

Usage and SDK Samples

curl -X POST "https://localhost/mc2/rest/admins/{adminId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AdminsApi;

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

public class AdminsApiExample {

    public static void main(String[] args) {
        
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Admin Username (ADM_ID)
        AdminVo body = ; // AdminVo | AdminVo JSON Data
        try {
            apiInstance.createAdmin(adminId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#createAdmin");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AdminsApi;

public class AdminsApiExample {

    public static void main(String[] args) {
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Admin Username (ADM_ID)
        AdminVo body = ; // AdminVo | AdminVo JSON Data
        try {
            apiInstance.createAdmin(adminId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#createAdmin");
            e.printStackTrace();
        }
    }
}
String *adminId = adminId_example; // Admin Username (ADM_ID)
AdminVo *body = ; // AdminVo JSON Data

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

// Create an administrator
[apiInstance createAdminWith:adminId
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.AdminsApi()

var adminId = adminId_example; // {String} Admin Username (ADM_ID)

var body = ; // {AdminVo} AdminVo JSON Data


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createAdmin(adminId, body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createAdminExample
    {
        public void main()
        {
            
            var apiInstance = new AdminsApi();
            var adminId = adminId_example;  // String | Admin Username (ADM_ID)
            var body = new AdminVo(); // AdminVo | AdminVo JSON Data

            try
            {
                // Create an administrator
                apiInstance.createAdmin(adminId, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AdminsApi.createAdmin: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AdminsApi();
$adminId = adminId_example; // String | Admin Username (ADM_ID)
$body = ; // AdminVo | AdminVo JSON Data

try {
    $api_instance->createAdmin($adminId, $body);
} catch (Exception $e) {
    echo 'Exception when calling AdminsApi->createAdmin: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AdminsApi;

my $api_instance = WWW::SwaggerClient::AdminsApi->new();
my $adminId = adminId_example; # String | Admin Username (ADM_ID)
my $body = WWW::SwaggerClient::Object::AdminVo->new(); # AdminVo | AdminVo JSON Data

eval { 
    $api_instance->createAdmin(adminId => $adminId, body => $body);
};
if ($@) {
    warn "Exception when calling AdminsApi->createAdmin: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AdminsApi()
adminId = adminId_example # String | Admin Username (ADM_ID)
body =  # AdminVo | AdminVo JSON Data

try: 
    # Create an administrator
    api_instance.create_admin(adminId, body)
except ApiException as e:
    print("Exception when calling AdminsApi->createAdmin: %s\n" % e)

Parameters

Path parameters
Name Description
adminId*
String
Admin Username (ADM_ID)
Required
Body parameters
Name Description
body *

Responses

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 500 - Internal Server Error


deleteAdmin

Delete a specific admin

Deletes the admin specified.


/admins/{adminId}

Usage and SDK Samples

curl -X DELETE "https://localhost/mc2/rest/admins/{adminId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AdminsApi;

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

public class AdminsApiExample {

    public static void main(String[] args) {
        
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Username (ADM_ID)
        try {
            apiInstance.deleteAdmin(adminId);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#deleteAdmin");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AdminsApi;

public class AdminsApiExample {

    public static void main(String[] args) {
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Username (ADM_ID)
        try {
            apiInstance.deleteAdmin(adminId);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#deleteAdmin");
            e.printStackTrace();
        }
    }
}
String *adminId = adminId_example; // Username (ADM_ID)

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

// Delete a specific admin
[apiInstance deleteAdminWith:adminId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.AdminsApi()

var adminId = adminId_example; // {String} Username (ADM_ID)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteAdmin(adminId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteAdminExample
    {
        public void main()
        {
            
            var apiInstance = new AdminsApi();
            var adminId = adminId_example;  // String | Username (ADM_ID)

            try
            {
                // Delete a specific admin
                apiInstance.deleteAdmin(adminId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AdminsApi.deleteAdmin: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AdminsApi();
$adminId = adminId_example; // String | Username (ADM_ID)

try {
    $api_instance->deleteAdmin($adminId);
} catch (Exception $e) {
    echo 'Exception when calling AdminsApi->deleteAdmin: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AdminsApi;

my $api_instance = WWW::SwaggerClient::AdminsApi->new();
my $adminId = adminId_example; # String | Username (ADM_ID)

eval { 
    $api_instance->deleteAdmin(adminId => $adminId);
};
if ($@) {
    warn "Exception when calling AdminsApi->deleteAdmin: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AdminsApi()
adminId = adminId_example # String | Username (ADM_ID)

try: 
    # Delete a specific admin
    api_instance.delete_admin(adminId)
except ApiException as e:
    print("Exception when calling AdminsApi->deleteAdmin: %s\n" % e)

Parameters

Path parameters
Name Description
adminId*
String
Username (ADM_ID)
Required

Responses

Status: 401 - Unauthorized

Status: 500 - Internal Server Error


getAdmin

Retrieve a specific administrator's information

Retrieves the information of the administrator specified.


/admins/{adminId}

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/admins/{adminId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AdminsApi;

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

public class AdminsApiExample {

    public static void main(String[] args) {
        
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Admin Username (ADM_ID)
        try {
            AdminVo result = apiInstance.getAdmin(adminId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#getAdmin");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AdminsApi;

public class AdminsApiExample {

    public static void main(String[] args) {
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Admin Username (ADM_ID)
        try {
            AdminVo result = apiInstance.getAdmin(adminId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#getAdmin");
            e.printStackTrace();
        }
    }
}
String *adminId = adminId_example; // Admin Username (ADM_ID)

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

// Retrieve a specific administrator's information
[apiInstance getAdminWith:adminId
              completionHandler: ^(AdminVo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.AdminsApi()

var adminId = adminId_example; // {String} Admin Username (ADM_ID)


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

namespace Example
{
    public class getAdminExample
    {
        public void main()
        {
            
            var apiInstance = new AdminsApi();
            var adminId = adminId_example;  // String | Admin Username (ADM_ID)

            try
            {
                // Retrieve a specific administrator's information
                AdminVo result = apiInstance.getAdmin(adminId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AdminsApi.getAdmin: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AdminsApi();
$adminId = adminId_example; // String | Admin Username (ADM_ID)

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

my $api_instance = WWW::SwaggerClient::AdminsApi->new();
my $adminId = adminId_example; # String | Admin Username (ADM_ID)

eval { 
    my $result = $api_instance->getAdmin(adminId => $adminId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AdminsApi->getAdmin: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AdminsApi()
adminId = adminId_example # String | Admin Username (ADM_ID)

try: 
    # Retrieve a specific administrator's information
    api_response = api_instance.get_admin(adminId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminsApi->getAdmin: %s\n" % e)

Parameters

Path parameters
Name Description
adminId*
String
Admin Username (ADM_ID)
Required

Responses

Status: 200 - successful operation

Status: 401 - Unauthorized

Status: 404 - Not Found


getAdminRestriction

Retrieve a restriction of management scope

Retrieves the restriction of management scope for the node/user of the administrator.


/admins/{adminId}/restriction

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/admins/{adminId}/restriction"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AdminsApi;

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

public class AdminsApiExample {

    public static void main(String[] args) {
        
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Admin Username (ADM_ID)
        try {
            AdminRestrictionVo result = apiInstance.getAdminRestriction(adminId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#getAdminRestriction");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AdminsApi;

public class AdminsApiExample {

    public static void main(String[] args) {
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Admin Username (ADM_ID)
        try {
            AdminRestrictionVo result = apiInstance.getAdminRestriction(adminId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#getAdminRestriction");
            e.printStackTrace();
        }
    }
}
String *adminId = adminId_example; // Admin Username (ADM_ID)

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

// Retrieve a restriction of management scope
[apiInstance getAdminRestrictionWith:adminId
              completionHandler: ^(AdminRestrictionVo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.AdminsApi()

var adminId = adminId_example; // {String} Admin Username (ADM_ID)


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

namespace Example
{
    public class getAdminRestrictionExample
    {
        public void main()
        {
            
            var apiInstance = new AdminsApi();
            var adminId = adminId_example;  // String | Admin Username (ADM_ID)

            try
            {
                // Retrieve a restriction of management scope
                AdminRestrictionVo result = apiInstance.getAdminRestriction(adminId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AdminsApi.getAdminRestriction: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AdminsApi();
$adminId = adminId_example; // String | Admin Username (ADM_ID)

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

my $api_instance = WWW::SwaggerClient::AdminsApi->new();
my $adminId = adminId_example; # String | Admin Username (ADM_ID)

eval { 
    my $result = $api_instance->getAdminRestriction(adminId => $adminId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AdminsApi->getAdminRestriction: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AdminsApi()
adminId = adminId_example # String | Admin Username (ADM_ID)

try: 
    # Retrieve a restriction of management scope
    api_response = api_instance.get_admin_restriction(adminId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminsApi->getAdminRestriction: %s\n" % e)

Parameters

Path parameters
Name Description
adminId*
String
Admin Username (ADM_ID)
Required

Responses

Status: 200 - successful operation

Status: 400 - Bad Request

Status: 401 - Forbidden

Status: 500 - Internal Server Error


updateAdmin

Update an existing administrator

Updates an existing administrator.


/admins/{adminId}

Usage and SDK Samples

curl -X PUT "https://localhost/mc2/rest/admins/{adminId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AdminsApi;

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

public class AdminsApiExample {

    public static void main(String[] args) {
        
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Admin Username (ADM_ID)
        AdminVo body = ; // AdminVo | AdminVo JSON Data
        try {
            apiInstance.updateAdmin(adminId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#updateAdmin");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AdminsApi;

public class AdminsApiExample {

    public static void main(String[] args) {
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Admin Username (ADM_ID)
        AdminVo body = ; // AdminVo | AdminVo JSON Data
        try {
            apiInstance.updateAdmin(adminId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#updateAdmin");
            e.printStackTrace();
        }
    }
}
String *adminId = adminId_example; // Admin Username (ADM_ID)
AdminVo *body = ; // AdminVo JSON Data

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

// Update an existing administrator
[apiInstance updateAdminWith:adminId
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.AdminsApi()

var adminId = adminId_example; // {String} Admin Username (ADM_ID)

var body = ; // {AdminVo} AdminVo JSON Data


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateAdmin(adminId, body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateAdminExample
    {
        public void main()
        {
            
            var apiInstance = new AdminsApi();
            var adminId = adminId_example;  // String | Admin Username (ADM_ID)
            var body = new AdminVo(); // AdminVo | AdminVo JSON Data

            try
            {
                // Update an existing administrator
                apiInstance.updateAdmin(adminId, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AdminsApi.updateAdmin: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AdminsApi();
$adminId = adminId_example; // String | Admin Username (ADM_ID)
$body = ; // AdminVo | AdminVo JSON Data

try {
    $api_instance->updateAdmin($adminId, $body);
} catch (Exception $e) {
    echo 'Exception when calling AdminsApi->updateAdmin: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AdminsApi;

my $api_instance = WWW::SwaggerClient::AdminsApi->new();
my $adminId = adminId_example; # String | Admin Username (ADM_ID)
my $body = WWW::SwaggerClient::Object::AdminVo->new(); # AdminVo | AdminVo JSON Data

eval { 
    $api_instance->updateAdmin(adminId => $adminId, body => $body);
};
if ($@) {
    warn "Exception when calling AdminsApi->updateAdmin: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AdminsApi()
adminId = adminId_example # String | Admin Username (ADM_ID)
body =  # AdminVo | AdminVo JSON Data

try: 
    # Update an existing administrator
    api_instance.update_admin(adminId, body)
except ApiException as e:
    print("Exception when calling AdminsApi->updateAdmin: %s\n" % e)

Parameters

Path parameters
Name Description
adminId*
String
Admin Username (ADM_ID)
Required
Body parameters
Name Description
body *

Responses

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 500 - Internal Server Error


updateAdminRestriction

Setting restriction of management scope

Restricts the scope of management for the node/user of the administrator.


/admins/{adminId}/restriction

Usage and SDK Samples

curl -X PUT "https://localhost/mc2/rest/admins/{adminId}/restriction"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AdminsApi;

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

public class AdminsApiExample {

    public static void main(String[] args) {
        
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Admin Username (ADM_ID)
        AdminRestrictionVo body = ; // AdminRestrictionVo | AdminRestrictionVo JSON Data
        try {
            apiInstance.updateAdminRestriction(adminId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#updateAdminRestriction");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AdminsApi;

public class AdminsApiExample {

    public static void main(String[] args) {
        AdminsApi apiInstance = new AdminsApi();
        String adminId = adminId_example; // String | Admin Username (ADM_ID)
        AdminRestrictionVo body = ; // AdminRestrictionVo | AdminRestrictionVo JSON Data
        try {
            apiInstance.updateAdminRestriction(adminId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#updateAdminRestriction");
            e.printStackTrace();
        }
    }
}
String *adminId = adminId_example; // Admin Username (ADM_ID)
AdminRestrictionVo *body = ; // AdminRestrictionVo JSON Data

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

// Setting restriction of management scope
[apiInstance updateAdminRestrictionWith:adminId
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.AdminsApi()

var adminId = adminId_example; // {String} Admin Username (ADM_ID)

var body = ; // {AdminRestrictionVo} AdminRestrictionVo JSON Data


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateAdminRestriction(adminId, body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateAdminRestrictionExample
    {
        public void main()
        {
            
            var apiInstance = new AdminsApi();
            var adminId = adminId_example;  // String | Admin Username (ADM_ID)
            var body = new AdminRestrictionVo(); // AdminRestrictionVo | AdminRestrictionVo JSON Data

            try
            {
                // Setting restriction of management scope
                apiInstance.updateAdminRestriction(adminId, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AdminsApi.updateAdminRestriction: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AdminsApi();
$adminId = adminId_example; // String | Admin Username (ADM_ID)
$body = ; // AdminRestrictionVo | AdminRestrictionVo JSON Data

try {
    $api_instance->updateAdminRestriction($adminId, $body);
} catch (Exception $e) {
    echo 'Exception when calling AdminsApi->updateAdminRestriction: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AdminsApi;

my $api_instance = WWW::SwaggerClient::AdminsApi->new();
my $adminId = adminId_example; # String | Admin Username (ADM_ID)
my $body = WWW::SwaggerClient::Object::AdminRestrictionVo->new(); # AdminRestrictionVo | AdminRestrictionVo JSON Data

eval { 
    $api_instance->updateAdminRestriction(adminId => $adminId, body => $body);
};
if ($@) {
    warn "Exception when calling AdminsApi->updateAdminRestriction: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AdminsApi()
adminId = adminId_example # String | Admin Username (ADM_ID)
body =  # AdminRestrictionVo | AdminRestrictionVo JSON Data

try: 
    # Setting restriction of management scope
    api_instance.update_admin_restriction(adminId, body)
except ApiException as e:
    print("Exception when calling AdminsApi->updateAdminRestriction: %s\n" % e)

Parameters

Path parameters
Name Description
adminId*
String
Admin Username (ADM_ID)
Required
Body parameters
Name Description
body *

Responses

Status: 400 - Bad Request

Status: 401 - Forbidden

Status: 500 - Internal Server Error


updateMyinfoOfAdmin

Edit my information

Modify the information of the currently connected admin.


/admins/myinfo

Usage and SDK Samples

curl -X PUT "https://localhost/mc2/rest/admins/myinfo"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AdminsApi;

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

public class AdminsApiExample {

    public static void main(String[] args) {
        
        AdminsApi apiInstance = new AdminsApi();
        AdminVo body = ; // AdminVo | AdminVo JSON Data
        try {
            apiInstance.updateMyinfoOfAdmin(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#updateMyinfoOfAdmin");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AdminsApi;

public class AdminsApiExample {

    public static void main(String[] args) {
        AdminsApi apiInstance = new AdminsApi();
        AdminVo body = ; // AdminVo | AdminVo JSON Data
        try {
            apiInstance.updateMyinfoOfAdmin(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminsApi#updateMyinfoOfAdmin");
            e.printStackTrace();
        }
    }
}
AdminVo *body = ; // AdminVo JSON Data

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

// Edit my information
[apiInstance updateMyinfoOfAdminWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.AdminsApi()

var body = ; // {AdminVo} AdminVo JSON Data


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateMyinfoOfAdmin(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateMyinfoOfAdminExample
    {
        public void main()
        {
            
            var apiInstance = new AdminsApi();
            var body = new AdminVo(); // AdminVo | AdminVo JSON Data

            try
            {
                // Edit my information
                apiInstance.updateMyinfoOfAdmin(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AdminsApi.updateMyinfoOfAdmin: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\AdminsApi();
$body = ; // AdminVo | AdminVo JSON Data

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

my $api_instance = WWW::SwaggerClient::AdminsApi->new();
my $body = WWW::SwaggerClient::Object::AdminVo->new(); # AdminVo | AdminVo JSON Data

eval { 
    $api_instance->updateMyinfoOfAdmin(body => $body);
};
if ($@) {
    warn "Exception when calling AdminsApi->updateMyinfoOfAdmin: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.AdminsApi()
body =  # AdminVo | AdminVo JSON Data

try: 
    # Edit my information
    api_instance.update_myinfo_of_admin(body)
except ApiException as e:
    print("Exception when calling AdminsApi->updateMyinfoOfAdmin: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 500 - Internal Server Error


Applications

createIpApplications

Add a new IP Request

Adds a new IP Request.


/applications/ips

Usage and SDK Samples

curl -X POST "https://localhost/mc2/rest/applications/ips"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

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

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        array[IpAppVo] body = ; // array[IpAppVo] | IP Request
        try {
            apiInstance.createIpApplications(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#createIpApplications");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        array[IpAppVo] body = ; // array[IpAppVo] | IP Request
        try {
            apiInstance.createIpApplications(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#createIpApplications");
            e.printStackTrace();
        }
    }
}
array[IpAppVo] *body = ; // IP Request

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

// Add a new IP Request
[apiInstance createIpApplicationsWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApplicationsApi()

var body = ; // {array[IpAppVo]} IP Request


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createIpApplications(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createIpApplicationsExample
    {
        public void main()
        {
            
            var apiInstance = new ApplicationsApi();
            var body = new array[IpAppVo](); // array[IpAppVo] | IP Request

            try
            {
                // Add a new IP Request
                apiInstance.createIpApplications(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.createIpApplications: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApplicationsApi();
$body = ; // array[IpAppVo] | IP Request

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

my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();
my $body = [WWW::SwaggerClient::Object::array[IpAppVo]->new()]; # array[IpAppVo] | IP Request

eval { 
    $api_instance->createIpApplications(body => $body);
};
if ($@) {
    warn "Exception when calling ApplicationsApi->createIpApplications: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()
body =  # array[IpAppVo] | IP Request

try: 
    # Add a new IP Request
    api_instance.create_ip_applications(body)
except ApiException as e:
    print("Exception when calling ApplicationsApi->createIpApplications: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 401 - Unauthorized

Status: 406 - Not Acceptable

Status: 500 - Internal Server Error


getCountOfIps

Retrieve the number of IP Requests

Retrieves the number of IP Requests submitted.


/applications/ips/count

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/applications/ips/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

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

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        try {
            apiInstance.getCountOfIps();
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getCountOfIps");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        try {
            apiInstance.getCountOfIps();
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getCountOfIps");
            e.printStackTrace();
        }
    }
}

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

// Retrieve the number of IP Requests
[apiInstance getCountOfIpsWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApplicationsApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getCountOfIps(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCountOfIpsExample
    {
        public void main()
        {
            
            var apiInstance = new ApplicationsApi();

            try
            {
                // Retrieve the number of IP Requests
                apiInstance.getCountOfIps();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.getCountOfIps: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApplicationsApi();

try {
    $api_instance->getCountOfIps();
} catch (Exception $e) {
    echo 'Exception when calling ApplicationsApi->getCountOfIps: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;

my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();

eval { 
    $api_instance->getCountOfIps();
};
if ($@) {
    warn "Exception when calling ApplicationsApi->getCountOfIps: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()

try: 
    # Retrieve the number of IP Requests
    api_instance.get_count_of_ips()
except ApiException as e:
    print("Exception when calling ApplicationsApi->getCountOfIps: %s\n" % e)

Parameters

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


getCountOfMediaApplications

Rertrieve the number of the External Device Requests

Retrieves the number of the External Device Requests.


/applications/medias/count

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/applications/medias/count?application="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

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

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        Boolean application = true; // Boolean | Approval status (true: Submitted, false: Approved)
        try {
            apiInstance.getCountOfMediaApplications(application);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getCountOfMediaApplications");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        Boolean application = true; // Boolean | Approval status (true: Submitted, false: Approved)
        try {
            apiInstance.getCountOfMediaApplications(application);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getCountOfMediaApplications");
            e.printStackTrace();
        }
    }
}
Boolean *application = true; // Approval status (true: Submitted, false: Approved)

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

// Rertrieve the number of the External Device Requests
[apiInstance getCountOfMediaApplicationsWith:application
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApplicationsApi()

var application = true; // {Boolean} Approval status (true: Submitted, false: Approved)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getCountOfMediaApplications(application, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCountOfMediaApplicationsExample
    {
        public void main()
        {
            
            var apiInstance = new ApplicationsApi();
            var application = true;  // Boolean | Approval status (true: Submitted, false: Approved)

            try
            {
                // Rertrieve the number of the External Device Requests
                apiInstance.getCountOfMediaApplications(application);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.getCountOfMediaApplications: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApplicationsApi();
$application = true; // Boolean | Approval status (true: Submitted, false: Approved)

try {
    $api_instance->getCountOfMediaApplications($application);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationsApi->getCountOfMediaApplications: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;

my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();
my $application = true; # Boolean | Approval status (true: Submitted, false: Approved)

eval { 
    $api_instance->getCountOfMediaApplications(application => $application);
};
if ($@) {
    warn "Exception when calling ApplicationsApi->getCountOfMediaApplications: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()
application = true # Boolean | Approval status (true: Submitted, false: Approved)

try: 
    # Rertrieve the number of the External Device Requests
    api_instance.get_count_of_media_applications(application)
except ApiException as e:
    print("Exception when calling ApplicationsApi->getCountOfMediaApplications: %s\n" % e)

Parameters

Query parameters
Name Description
application*
Boolean
Approval status (true: Submitted, false: Approved)
Required

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


getCountOfUserApplications

Retrieve the number of User Account Requests

Retrieves the number of User Account Requests submitted.


/applications/users/count

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/applications/users/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

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

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        try {
            apiInstance.getCountOfUserApplications();
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getCountOfUserApplications");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        try {
            apiInstance.getCountOfUserApplications();
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getCountOfUserApplications");
            e.printStackTrace();
        }
    }
}

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

// Retrieve the number of User Account Requests
[apiInstance getCountOfUserApplicationsWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApplicationsApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getCountOfUserApplications(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCountOfUserApplicationsExample
    {
        public void main()
        {
            
            var apiInstance = new ApplicationsApi();

            try
            {
                // Retrieve the number of User Account Requests
                apiInstance.getCountOfUserApplications();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.getCountOfUserApplications: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApplicationsApi();

try {
    $api_instance->getCountOfUserApplications();
} catch (Exception $e) {
    echo 'Exception when calling ApplicationsApi->getCountOfUserApplications: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;

my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();

eval { 
    $api_instance->getCountOfUserApplications();
};
if ($@) {
    warn "Exception when calling ApplicationsApi->getCountOfUserApplications: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()

try: 
    # Retrieve the number of User Account Requests
    api_instance.get_count_of_user_applications()
except ApiException as e:
    print("Exception when calling ApplicationsApi->getCountOfUserApplications: %s\n" % e)

Parameters

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


getIpApplication

Retrieve a specific IP Request's information

Retrieves the information of the IP Request specified.


/applications/ips/{idx}

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/applications/ips/{idx}?idx="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

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

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        Integer idx = 56; // Integer | idx
        try {
            apiInstance.getIpApplication(idx);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getIpApplication");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        Integer idx = 56; // Integer | idx
        try {
            apiInstance.getIpApplication(idx);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getIpApplication");
            e.printStackTrace();
        }
    }
}
Integer *idx = 56; // idx

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

// Retrieve a specific IP Request's information
[apiInstance getIpApplicationWith:idx
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApplicationsApi()

var idx = 56; // {Integer} idx


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getIpApplication(idx, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getIpApplicationExample
    {
        public void main()
        {
            
            var apiInstance = new ApplicationsApi();
            var idx = 56;  // Integer | idx

            try
            {
                // Retrieve a specific IP Request's information
                apiInstance.getIpApplication(idx);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.getIpApplication: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApplicationsApi();
$idx = 56; // Integer | idx

try {
    $api_instance->getIpApplication($idx);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationsApi->getIpApplication: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;

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

eval { 
    $api_instance->getIpApplication(idx => $idx);
};
if ($@) {
    warn "Exception when calling ApplicationsApi->getIpApplication: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()
idx = 56 # Integer | idx

try: 
    # Retrieve a specific IP Request's information
    api_instance.get_ip_application(idx)
except ApiException as e:
    print("Exception when calling ApplicationsApi->getIpApplication: %s\n" % e)

Parameters

Query parameters
Name Description
idx*
Integer (int32)
idx
Required

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


getIpApplications

List IP Requests

Retrieves a list of the IP Requests.


/applications/ips

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/applications/ips?page=&pageSize=&sort=&confirmStatus=&appType=&qsearch=&appTypeCode=&applicantUser=&applicantDept=&user=&userDept=&purpose=&os=&isGuestUser=&ip=&mac=&pcName=&confirmAppType="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

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

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        String confirmStatus = confirmStatus_example; // String | Hierarchical Approval status (ready, complete, confirm, reject, progress)
        String appType = appType_example; // String | Request Type (newreturn, new, return, devchange, userchange)
        String qsearch = qsearch_example; // String | Search string
        String appTypeCode = appTypeCode_example; // String | appTypeCode
        String applicantUser = applicantUser_example; // String | Requester
        String applicantDept = applicantDept_example; // String | Requester department (applicantDept)
        String user = user_example; // String | User
        String userDept = userDept_example; // String | User department (userDept)
        String purpose = purpose_example; // String | Purpose
        String os = os_example; // String | OS
        Boolean isGuestUser = true; // Boolean | Guest enabled
        String ip = ip_example; // String | IP
        String mac = mac_example; // String | MAC
        String pcName = pcName_example; // String | Hostname
        String confirmAppType = confirmAppType_example; // String | Approval Type (prevapp: Submitted, nextapp: Approved)
        try {
            apiInstance.getIpApplications(page, pageSize, sort, confirmStatus, appType, qsearch, appTypeCode, applicantUser, applicantDept, user, userDept, purpose, os, isGuestUser, ip, mac, pcName, confirmAppType);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getIpApplications");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        String confirmStatus = confirmStatus_example; // String | Hierarchical Approval status (ready, complete, confirm, reject, progress)
        String appType = appType_example; // String | Request Type (newreturn, new, return, devchange, userchange)
        String qsearch = qsearch_example; // String | Search string
        String appTypeCode = appTypeCode_example; // String | appTypeCode
        String applicantUser = applicantUser_example; // String | Requester
        String applicantDept = applicantDept_example; // String | Requester department (applicantDept)
        String user = user_example; // String | User
        String userDept = userDept_example; // String | User department (userDept)
        String purpose = purpose_example; // String | Purpose
        String os = os_example; // String | OS
        Boolean isGuestUser = true; // Boolean | Guest enabled
        String ip = ip_example; // String | IP
        String mac = mac_example; // String | MAC
        String pcName = pcName_example; // String | Hostname
        String confirmAppType = confirmAppType_example; // String | Approval Type (prevapp: Submitted, nextapp: Approved)
        try {
            apiInstance.getIpApplications(page, pageSize, sort, confirmStatus, appType, qsearch, appTypeCode, applicantUser, applicantDept, user, userDept, purpose, os, isGuestUser, ip, mac, pcName, confirmAppType);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getIpApplications");
            e.printStackTrace();
        }
    }
}
Integer *page = 56; // Results page to be retrieved (default to 1)
Integer *pageSize = 56; // Number of records per page (default to 30)
String *sort = sort_example; // Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
String *confirmStatus = confirmStatus_example; // Hierarchical Approval status (ready, complete, confirm, reject, progress) (optional)
String *appType = appType_example; // Request Type (newreturn, new, return, devchange, userchange) (optional)
String *qsearch = qsearch_example; // Search string (optional)
String *appTypeCode = appTypeCode_example; // appTypeCode (optional)
String *applicantUser = applicantUser_example; // Requester (optional)
String *applicantDept = applicantDept_example; // Requester department (applicantDept) (optional)
String *user = user_example; // User (optional)
String *userDept = userDept_example; // User department (userDept) (optional)
String *purpose = purpose_example; // Purpose (optional)
String *os = os_example; // OS (optional)
Boolean *isGuestUser = true; // Guest enabled (optional)
String *ip = ip_example; // IP (optional)
String *mac = mac_example; // MAC (optional)
String *pcName = pcName_example; // Hostname (optional)
String *confirmAppType = confirmAppType_example; // Approval Type (prevapp: Submitted, nextapp: Approved) (optional)

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

// List IP Requests
[apiInstance getIpApplicationsWith:page
    pageSize:pageSize
    sort:sort
    confirmStatus:confirmStatus
    appType:appType
    qsearch:qsearch
    appTypeCode:appTypeCode
    applicantUser:applicantUser
    applicantDept:applicantDept
    user:user
    userDept:userDept
    purpose:purpose
    os:os
    isGuestUser:isGuestUser
    ip:ip
    mac:mac
    pcName:pcName
    confirmAppType:confirmAppType
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApplicationsApi()

var page = 56; // {Integer} Results page to be retrieved

var pageSize = 56; // {Integer} Number of records per page

var opts = { 
  'sort': sort_example, // {String} Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
  'confirmStatus': confirmStatus_example, // {String} Hierarchical Approval status (ready, complete, confirm, reject, progress)
  'appType': appType_example, // {String} Request Type (newreturn, new, return, devchange, userchange)
  'qsearch': qsearch_example, // {String} Search string
  'appTypeCode': appTypeCode_example, // {String} appTypeCode
  'applicantUser': applicantUser_example, // {String} Requester
  'applicantDept': applicantDept_example, // {String} Requester department (applicantDept)
  'user': user_example, // {String} User
  'userDept': userDept_example, // {String} User department (userDept)
  'purpose': purpose_example, // {String} Purpose
  'os': os_example, // {String} OS
  'isGuestUser': true, // {Boolean} Guest enabled
  'ip': ip_example, // {String} IP
  'mac': mac_example, // {String} MAC
  'pcName': pcName_example, // {String} Hostname
  'confirmAppType': confirmAppType_example // {String} Approval Type (prevapp: Submitted, nextapp: Approved)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getIpApplications(page, pageSize, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getIpApplicationsExample
    {
        public void main()
        {
            
            var apiInstance = new ApplicationsApi();
            var page = 56;  // Integer | Results page to be retrieved (default to 1)
            var pageSize = 56;  // Integer | Number of records per page (default to 30)
            var sort = sort_example;  // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional) 
            var confirmStatus = confirmStatus_example;  // String | Hierarchical Approval status (ready, complete, confirm, reject, progress) (optional) 
            var appType = appType_example;  // String | Request Type (newreturn, new, return, devchange, userchange) (optional) 
            var qsearch = qsearch_example;  // String | Search string (optional) 
            var appTypeCode = appTypeCode_example;  // String | appTypeCode (optional) 
            var applicantUser = applicantUser_example;  // String | Requester (optional) 
            var applicantDept = applicantDept_example;  // String | Requester department (applicantDept) (optional) 
            var user = user_example;  // String | User (optional) 
            var userDept = userDept_example;  // String | User department (userDept) (optional) 
            var purpose = purpose_example;  // String | Purpose (optional) 
            var os = os_example;  // String | OS (optional) 
            var isGuestUser = true;  // Boolean | Guest enabled (optional) 
            var ip = ip_example;  // String | IP (optional) 
            var mac = mac_example;  // String | MAC (optional) 
            var pcName = pcName_example;  // String | Hostname (optional) 
            var confirmAppType = confirmAppType_example;  // String | Approval Type (prevapp: Submitted, nextapp: Approved) (optional) 

            try
            {
                // List IP Requests
                apiInstance.getIpApplications(page, pageSize, sort, confirmStatus, appType, qsearch, appTypeCode, applicantUser, applicantDept, user, userDept, purpose, os, isGuestUser, ip, mac, pcName, confirmAppType);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.getIpApplications: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApplicationsApi();
$page = 56; // Integer | Results page to be retrieved
$pageSize = 56; // Integer | Number of records per page
$sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
$confirmStatus = confirmStatus_example; // String | Hierarchical Approval status (ready, complete, confirm, reject, progress)
$appType = appType_example; // String | Request Type (newreturn, new, return, devchange, userchange)
$qsearch = qsearch_example; // String | Search string
$appTypeCode = appTypeCode_example; // String | appTypeCode
$applicantUser = applicantUser_example; // String | Requester
$applicantDept = applicantDept_example; // String | Requester department (applicantDept)
$user = user_example; // String | User
$userDept = userDept_example; // String | User department (userDept)
$purpose = purpose_example; // String | Purpose
$os = os_example; // String | OS
$isGuestUser = true; // Boolean | Guest enabled
$ip = ip_example; // String | IP
$mac = mac_example; // String | MAC
$pcName = pcName_example; // String | Hostname
$confirmAppType = confirmAppType_example; // String | Approval Type (prevapp: Submitted, nextapp: Approved)

try {
    $api_instance->getIpApplications($page, $pageSize, $sort, $confirmStatus, $appType, $qsearch, $appTypeCode, $applicantUser, $applicantDept, $user, $userDept, $purpose, $os, $isGuestUser, $ip, $mac, $pcName, $confirmAppType);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationsApi->getIpApplications: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;

my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();
my $page = 56; # Integer | Results page to be retrieved
my $pageSize = 56; # Integer | Number of records per page
my $sort = sort_example; # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
my $confirmStatus = confirmStatus_example; # String | Hierarchical Approval status (ready, complete, confirm, reject, progress)
my $appType = appType_example; # String | Request Type (newreturn, new, return, devchange, userchange)
my $qsearch = qsearch_example; # String | Search string
my $appTypeCode = appTypeCode_example; # String | appTypeCode
my $applicantUser = applicantUser_example; # String | Requester
my $applicantDept = applicantDept_example; # String | Requester department (applicantDept)
my $user = user_example; # String | User
my $userDept = userDept_example; # String | User department (userDept)
my $purpose = purpose_example; # String | Purpose
my $os = os_example; # String | OS
my $isGuestUser = true; # Boolean | Guest enabled
my $ip = ip_example; # String | IP
my $mac = mac_example; # String | MAC
my $pcName = pcName_example; # String | Hostname
my $confirmAppType = confirmAppType_example; # String | Approval Type (prevapp: Submitted, nextapp: Approved)

eval { 
    $api_instance->getIpApplications(page => $page, pageSize => $pageSize, sort => $sort, confirmStatus => $confirmStatus, appType => $appType, qsearch => $qsearch, appTypeCode => $appTypeCode, applicantUser => $applicantUser, applicantDept => $applicantDept, user => $user, userDept => $userDept, purpose => $purpose, os => $os, isGuestUser => $isGuestUser, ip => $ip, mac => $mac, pcName => $pcName, confirmAppType => $confirmAppType);
};
if ($@) {
    warn "Exception when calling ApplicationsApi->getIpApplications: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()
page = 56 # Integer | Results page to be retrieved (default to 1)
pageSize = 56 # Integer | Number of records per page (default to 30)
sort = sort_example # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
confirmStatus = confirmStatus_example # String | Hierarchical Approval status (ready, complete, confirm, reject, progress) (optional)
appType = appType_example # String | Request Type (newreturn, new, return, devchange, userchange) (optional)
qsearch = qsearch_example # String | Search string (optional)
appTypeCode = appTypeCode_example # String | appTypeCode (optional)
applicantUser = applicantUser_example # String | Requester (optional)
applicantDept = applicantDept_example # String | Requester department (applicantDept) (optional)
user = user_example # String | User (optional)
userDept = userDept_example # String | User department (userDept) (optional)
purpose = purpose_example # String | Purpose (optional)
os = os_example # String | OS (optional)
isGuestUser = true # Boolean | Guest enabled (optional)
ip = ip_example # String | IP (optional)
mac = mac_example # String | MAC (optional)
pcName = pcName_example # String | Hostname (optional)
confirmAppType = confirmAppType_example # String | Approval Type (prevapp: Submitted, nextapp: Approved) (optional)

try: 
    # List IP Requests
    api_instance.get_ip_applications(page, pageSize, sort=sort, confirmStatus=confirmStatus, appType=appType, qsearch=qsearch, appTypeCode=appTypeCode, applicantUser=applicantUser, applicantDept=applicantDept, user=user, userDept=userDept, purpose=purpose, os=os, isGuestUser=isGuestUser, ip=ip, mac=mac, pcName=pcName, confirmAppType=confirmAppType)
except ApiException as e:
    print("Exception when calling ApplicationsApi->getIpApplications: %s\n" % e)

Parameters

Query parameters
Name Description
page*
Integer (int32)
Results page to be retrieved
Required
pageSize*
Integer (int32)
Number of records per page
Required
sort
String
Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
confirmStatus
String
Hierarchical Approval status (ready, complete, confirm, reject, progress)
appType
String
Request Type (newreturn, new, return, devchange, userchange)
qsearch
String
Search string
appTypeCode
String
appTypeCode
applicantUser
String
Requester
applicantDept
String
Requester department (applicantDept)
user
String
User
userDept
String
User department (userDept)
purpose
String
Purpose
os
String
OS
isGuestUser
Boolean
Guest enabled
ip
String
IP
mac
String
MAC
pcName
String
Hostname
confirmAppType
String
Approval Type (prevapp: Submitted, nextapp: Approved)

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


getMediaApplication

Retrieve a specific External Device Request's information

Retrieves the information of the External Device Request specified.


/applications/medias/{idx}

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/applications/medias/{idx}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

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

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        Integer idx = 56; // Integer | External Device Request idx
        try {
            apiInstance.getMediaApplication(idx);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getMediaApplication");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        Integer idx = 56; // Integer | External Device Request idx
        try {
            apiInstance.getMediaApplication(idx);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getMediaApplication");
            e.printStackTrace();
        }
    }
}
Integer *idx = 56; // External Device Request idx

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

// Retrieve a specific External Device Request's information
[apiInstance getMediaApplicationWith:idx
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApplicationsApi()

var idx = 56; // {Integer} External Device Request idx


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getMediaApplication(idx, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getMediaApplicationExample
    {
        public void main()
        {
            
            var apiInstance = new ApplicationsApi();
            var idx = 56;  // Integer | External Device Request idx

            try
            {
                // Retrieve a specific External Device Request's information
                apiInstance.getMediaApplication(idx);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.getMediaApplication: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApplicationsApi();
$idx = 56; // Integer | External Device Request idx

try {
    $api_instance->getMediaApplication($idx);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationsApi->getMediaApplication: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;

my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();
my $idx = 56; # Integer | External Device Request idx

eval { 
    $api_instance->getMediaApplication(idx => $idx);
};
if ($@) {
    warn "Exception when calling ApplicationsApi->getMediaApplication: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()
idx = 56 # Integer | External Device Request idx

try: 
    # Retrieve a specific External Device Request's information
    api_instance.get_media_application(idx)
except ApiException as e:
    print("Exception when calling ApplicationsApi->getMediaApplication: %s\n" % e)

Parameters

Path parameters
Name Description
idx*
Integer (int32)
External Device Request idx
Required

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


getMediaApplications

List External Device Requests

Retrieves a list of the External Device Requests.


/applications/medias

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/applications/medias?page=&pageSize=&sort=&application=&qsearch="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

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

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        Boolean application = true; // Boolean | Approval status (true: Submitted, false: Approved)
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        String qsearch = qsearch_example; // String | Search string
        try {
            apiInstance.getMediaApplications(page, pageSize, application, sort, qsearch);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getMediaApplications");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        Boolean application = true; // Boolean | Approval status (true: Submitted, false: Approved)
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        String qsearch = qsearch_example; // String | Search string
        try {
            apiInstance.getMediaApplications(page, pageSize, application, sort, qsearch);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getMediaApplications");
            e.printStackTrace();
        }
    }
}
Integer *page = 56; // Results page to be retrieved (default to 1)
Integer *pageSize = 56; // Number of records per page (default to 30)
Boolean *application = true; // Approval status (true: Submitted, false: Approved)
String *sort = sort_example; // Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
String *qsearch = qsearch_example; // Search string (optional)

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

// List External Device Requests
[apiInstance getMediaApplicationsWith:page
    pageSize:pageSize
    application:application
    sort:sort
    qsearch:qsearch
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApplicationsApi()

var page = 56; // {Integer} Results page to be retrieved

var pageSize = 56; // {Integer} Number of records per page

var application = true; // {Boolean} Approval status (true: Submitted, false: Approved)

var opts = { 
  'sort': sort_example, // {String} Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
  'qsearch': qsearch_example // {String} Search string
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getMediaApplications(page, pageSize, application, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getMediaApplicationsExample
    {
        public void main()
        {
            
            var apiInstance = new ApplicationsApi();
            var page = 56;  // Integer | Results page to be retrieved (default to 1)
            var pageSize = 56;  // Integer | Number of records per page (default to 30)
            var application = true;  // Boolean | Approval status (true: Submitted, false: Approved)
            var sort = sort_example;  // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional) 
            var qsearch = qsearch_example;  // String | Search string (optional) 

            try
            {
                // List External Device Requests
                apiInstance.getMediaApplications(page, pageSize, application, sort, qsearch);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.getMediaApplications: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApplicationsApi();
$page = 56; // Integer | Results page to be retrieved
$pageSize = 56; // Integer | Number of records per page
$application = true; // Boolean | Approval status (true: Submitted, false: Approved)
$sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
$qsearch = qsearch_example; // String | Search string

try {
    $api_instance->getMediaApplications($page, $pageSize, $application, $sort, $qsearch);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationsApi->getMediaApplications: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;

my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();
my $page = 56; # Integer | Results page to be retrieved
my $pageSize = 56; # Integer | Number of records per page
my $application = true; # Boolean | Approval status (true: Submitted, false: Approved)
my $sort = sort_example; # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
my $qsearch = qsearch_example; # String | Search string

eval { 
    $api_instance->getMediaApplications(page => $page, pageSize => $pageSize, application => $application, sort => $sort, qsearch => $qsearch);
};
if ($@) {
    warn "Exception when calling ApplicationsApi->getMediaApplications: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()
page = 56 # Integer | Results page to be retrieved (default to 1)
pageSize = 56 # Integer | Number of records per page (default to 30)
application = true # Boolean | Approval status (true: Submitted, false: Approved)
sort = sort_example # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
qsearch = qsearch_example # String | Search string (optional)

try: 
    # List External Device Requests
    api_instance.get_media_applications(page, pageSize, application, sort=sort, qsearch=qsearch)
except ApiException as e:
    print("Exception when calling ApplicationsApi->getMediaApplications: %s\n" % e)

Parameters

Query parameters
Name Description
page*
Integer (int32)
Results page to be retrieved
Required
pageSize*
Integer (int32)
Number of records per page
Required
sort
String
Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
application*
Boolean
Approval status (true: Submitted, false: Approved)
Required
qsearch
String
Search string

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


getUserApplication

Retrieve a specific User Account Request's information

Retrieves the information of the User Account Request specified.


/applications/users/{idx}

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/applications/users/{idx}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

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

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        Long idx = 789; // Long | User Account Request idx
        try {
            apiInstance.getUserApplication(idx);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getUserApplication");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        Long idx = 789; // Long | User Account Request idx
        try {
            apiInstance.getUserApplication(idx);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getUserApplication");
            e.printStackTrace();
        }
    }
}
Long *idx = 789; // User Account Request idx

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

// Retrieve a specific User Account Request's information
[apiInstance getUserApplicationWith:idx
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApplicationsApi()

var idx = 789; // {Long} User Account Request idx


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getUserApplication(idx, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUserApplicationExample
    {
        public void main()
        {
            
            var apiInstance = new ApplicationsApi();
            var idx = 789;  // Long | User Account Request idx

            try
            {
                // Retrieve a specific User Account Request's information
                apiInstance.getUserApplication(idx);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.getUserApplication: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApplicationsApi();
$idx = 789; // Long | User Account Request idx

try {
    $api_instance->getUserApplication($idx);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationsApi->getUserApplication: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;

my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();
my $idx = 789; # Long | User Account Request idx

eval { 
    $api_instance->getUserApplication(idx => $idx);
};
if ($@) {
    warn "Exception when calling ApplicationsApi->getUserApplication: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()
idx = 789 # Long | User Account Request idx

try: 
    # Retrieve a specific User Account Request's information
    api_instance.get_user_application(idx)
except ApiException as e:
    print("Exception when calling ApplicationsApi->getUserApplication: %s\n" % e)

Parameters

Path parameters
Name Description
idx*
Long (int64)
User Account Request idx
Required

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


getUserApplications

List User Account Requests

Retrieves a list of the User Account Requests.


/applications/users

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/applications/users?page=&pageSize=&sort=&confirmStatus=&appType=&qsearch="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

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

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        String confirmStatus = confirmStatus_example; // String | Hierarchical Approval status
        String appType = appType_example; // String | Request Type (new)
        String qsearch = qsearch_example; // String | Search string
        try {
            apiInstance.getUserApplications(page, pageSize, sort, confirmStatus, appType, qsearch);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getUserApplications");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        String confirmStatus = confirmStatus_example; // String | Hierarchical Approval status
        String appType = appType_example; // String | Request Type (new)
        String qsearch = qsearch_example; // String | Search string
        try {
            apiInstance.getUserApplications(page, pageSize, sort, confirmStatus, appType, qsearch);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#getUserApplications");
            e.printStackTrace();
        }
    }
}
Integer *page = 56; // Results page to be retrieved (default to 1)
Integer *pageSize = 56; // Number of records per page (default to 30)
String *sort = sort_example; // Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
String *confirmStatus = confirmStatus_example; // Hierarchical Approval status (optional)
String *appType = appType_example; // Request Type (new) (optional)
String *qsearch = qsearch_example; // Search string (optional)

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

// List User Account Requests
[apiInstance getUserApplicationsWith:page
    pageSize:pageSize
    sort:sort
    confirmStatus:confirmStatus
    appType:appType
    qsearch:qsearch
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApplicationsApi()

var page = 56; // {Integer} Results page to be retrieved

var pageSize = 56; // {Integer} Number of records per page

var opts = { 
  'sort': sort_example, // {String} Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
  'confirmStatus': confirmStatus_example, // {String} Hierarchical Approval status
  'appType': appType_example, // {String} Request Type (new)
  'qsearch': qsearch_example // {String} Search string
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getUserApplications(page, pageSize, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUserApplicationsExample
    {
        public void main()
        {
            
            var apiInstance = new ApplicationsApi();
            var page = 56;  // Integer | Results page to be retrieved (default to 1)
            var pageSize = 56;  // Integer | Number of records per page (default to 30)
            var sort = sort_example;  // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional) 
            var confirmStatus = confirmStatus_example;  // String | Hierarchical Approval status (optional) 
            var appType = appType_example;  // String | Request Type (new) (optional) 
            var qsearch = qsearch_example;  // String | Search string (optional) 

            try
            {
                // List User Account Requests
                apiInstance.getUserApplications(page, pageSize, sort, confirmStatus, appType, qsearch);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.getUserApplications: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApplicationsApi();
$page = 56; // Integer | Results page to be retrieved
$pageSize = 56; // Integer | Number of records per page
$sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
$confirmStatus = confirmStatus_example; // String | Hierarchical Approval status
$appType = appType_example; // String | Request Type (new)
$qsearch = qsearch_example; // String | Search string

try {
    $api_instance->getUserApplications($page, $pageSize, $sort, $confirmStatus, $appType, $qsearch);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationsApi->getUserApplications: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;

my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();
my $page = 56; # Integer | Results page to be retrieved
my $pageSize = 56; # Integer | Number of records per page
my $sort = sort_example; # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
my $confirmStatus = confirmStatus_example; # String | Hierarchical Approval status
my $appType = appType_example; # String | Request Type (new)
my $qsearch = qsearch_example; # String | Search string

eval { 
    $api_instance->getUserApplications(page => $page, pageSize => $pageSize, sort => $sort, confirmStatus => $confirmStatus, appType => $appType, qsearch => $qsearch);
};
if ($@) {
    warn "Exception when calling ApplicationsApi->getUserApplications: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()
page = 56 # Integer | Results page to be retrieved (default to 1)
pageSize = 56 # Integer | Number of records per page (default to 30)
sort = sort_example # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
confirmStatus = confirmStatus_example # String | Hierarchical Approval status (optional)
appType = appType_example # String | Request Type (new) (optional)
qsearch = qsearch_example # String | Search string (optional)

try: 
    # List User Account Requests
    api_instance.get_user_applications(page, pageSize, sort=sort, confirmStatus=confirmStatus, appType=appType, qsearch=qsearch)
except ApiException as e:
    print("Exception when calling ApplicationsApi->getUserApplications: %s\n" % e)

Parameters

Query parameters
Name Description
page*
Integer (int32)
Results page to be retrieved
Required
pageSize*
Integer (int32)
Number of records per page
Required
sort
String
Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
confirmStatus
String
Hierarchical Approval status
appType
String
Request Type (new)
qsearch
String
Search string

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


updateIpApplication

Update an existing IP Request

Updates an existing IP Request.


/applications/ips/{idx}

Usage and SDK Samples

curl -X PUT "https://localhost/mc2/rest/applications/ips/{idx}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

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

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        Long idx = 789; // Long | IP Request / Return idx
        String cmd = cmd_example; // String | IP Request Approval (approve: Accept, reject: Reject)
        try {
            apiInstance.updateIpApplication(idx, cmd);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#updateIpApplication");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        Long idx = 789; // Long | IP Request / Return idx
        String cmd = cmd_example; // String | IP Request Approval (approve: Accept, reject: Reject)
        try {
            apiInstance.updateIpApplication(idx, cmd);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#updateIpApplication");
            e.printStackTrace();
        }
    }
}
Long *idx = 789; // IP Request / Return idx
String *cmd = cmd_example; // IP Request Approval (approve: Accept, reject: Reject)

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

// Update an existing IP Request
[apiInstance updateIpApplicationWith:idx
    cmd:cmd
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApplicationsApi()

var idx = 789; // {Long} IP Request / Return idx

var cmd = cmd_example; // {String} IP Request Approval (approve: Accept, reject: Reject)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateIpApplication(idx, cmd, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateIpApplicationExample
    {
        public void main()
        {
            
            var apiInstance = new ApplicationsApi();
            var idx = 789;  // Long | IP Request / Return idx
            var cmd = cmd_example;  // String | IP Request Approval (approve: Accept, reject: Reject)

            try
            {
                // Update an existing IP Request
                apiInstance.updateIpApplication(idx, cmd);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.updateIpApplication: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApplicationsApi();
$idx = 789; // Long | IP Request / Return idx
$cmd = cmd_example; // String | IP Request Approval (approve: Accept, reject: Reject)

try {
    $api_instance->updateIpApplication($idx, $cmd);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationsApi->updateIpApplication: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;

my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();
my $idx = 789; # Long | IP Request / Return idx
my $cmd = cmd_example; # String | IP Request Approval (approve: Accept, reject: Reject)

eval { 
    $api_instance->updateIpApplication(idx => $idx, cmd => $cmd);
};
if ($@) {
    warn "Exception when calling ApplicationsApi->updateIpApplication: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()
idx = 789 # Long | IP Request / Return idx
cmd = cmd_example # String | IP Request Approval (approve: Accept, reject: Reject)

try: 
    # Update an existing IP Request
    api_instance.update_ip_application(idx, cmd)
except ApiException as e:
    print("Exception when calling ApplicationsApi->updateIpApplication: %s\n" % e)

Parameters

Path parameters
Name Description
idx*
Long (int64)
IP Request / Return idx
Required
Form parameters
Name Description
cmd*
String
IP Request Approval (approve: Accept, reject: Reject)
Enum: approve, reject
Required

Responses

Status: 401 - Unauthorized

Status: 404 - Not found

Status: 500 - Internal Server Error


updateMediaApplication

Update an existing External Device Request

Updates an existing External Device Request.


/applications/medias/{idx}

Usage and SDK Samples

curl -X PUT "https://localhost/mc2/rest/applications/medias/{idx}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

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

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        String cmd = cmd_example; // String | Request Approval (approve: Accept, deny: Reject, expire: Disable)
        Long idx = 789; // Long | External Device Request idx
        String reason = reason_example; // String | Approval Comments (for deny, expire only)
        try {
            apiInstance.updateMediaApplication(cmd, idx, reason);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#updateMediaApplication");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        String cmd = cmd_example; // String | Request Approval (approve: Accept, deny: Reject, expire: Disable)
        Long idx = 789; // Long | External Device Request idx
        String reason = reason_example; // String | Approval Comments (for deny, expire only)
        try {
            apiInstance.updateMediaApplication(cmd, idx, reason);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#updateMediaApplication");
            e.printStackTrace();
        }
    }
}
String *cmd = cmd_example; // Request Approval (approve: Accept, deny: Reject, expire: Disable)
Long *idx = 789; // External Device Request idx
String *reason = reason_example; // Approval Comments (for deny, expire only) (optional)

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

// Update an existing External Device Request
[apiInstance updateMediaApplicationWith:cmd
    idx:idx
    reason:reason
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApplicationsApi()

var cmd = cmd_example; // {String} Request Approval (approve: Accept, deny: Reject, expire: Disable)

var idx = 789; // {Long} External Device Request idx

var opts = { 
  'reason': reason_example // {String} Approval Comments (for deny, expire only)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateMediaApplication(cmd, idx, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateMediaApplicationExample
    {
        public void main()
        {
            
            var apiInstance = new ApplicationsApi();
            var cmd = cmd_example;  // String | Request Approval (approve: Accept, deny: Reject, expire: Disable)
            var idx = 789;  // Long | External Device Request idx
            var reason = reason_example;  // String | Approval Comments (for deny, expire only) (optional) 

            try
            {
                // Update an existing External Device Request
                apiInstance.updateMediaApplication(cmd, idx, reason);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.updateMediaApplication: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApplicationsApi();
$cmd = cmd_example; // String | Request Approval (approve: Accept, deny: Reject, expire: Disable)
$idx = 789; // Long | External Device Request idx
$reason = reason_example; // String | Approval Comments (for deny, expire only)

try {
    $api_instance->updateMediaApplication($cmd, $idx, $reason);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationsApi->updateMediaApplication: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;

my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();
my $cmd = cmd_example; # String | Request Approval (approve: Accept, deny: Reject, expire: Disable)
my $idx = 789; # Long | External Device Request idx
my $reason = reason_example; # String | Approval Comments (for deny, expire only)

eval { 
    $api_instance->updateMediaApplication(cmd => $cmd, idx => $idx, reason => $reason);
};
if ($@) {
    warn "Exception when calling ApplicationsApi->updateMediaApplication: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()
cmd = cmd_example # String | Request Approval (approve: Accept, deny: Reject, expire: Disable)
idx = 789 # Long | External Device Request idx
reason = reason_example # String | Approval Comments (for deny, expire only) (optional)

try: 
    # Update an existing External Device Request
    api_instance.update_media_application(cmd, idx, reason=reason)
except ApiException as e:
    print("Exception when calling ApplicationsApi->updateMediaApplication: %s\n" % e)

Parameters

Path parameters
Name Description
idx*
Long (int64)
External Device Request idx
Required
Form parameters
Name Description
cmd*
String
Request Approval (approve: Accept, deny: Reject, expire: Disable)
Enum: approve, deny, expire
Required
reason
String
Approval Comments (for deny, expire only)

Responses

Status: 401 - Unauthorized

Status: 404 - Data Not Found

Status: 500 - Internal Server Error


updateUserApplication

Update an existing User Account Request

Updates an existing User Account Request.


/applications/users/{idx}

Usage and SDK Samples

curl -X PUT "https://localhost/mc2/rest/applications/users/{idx}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationsApi;

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

public class ApplicationsApiExample {

    public static void main(String[] args) {
        
        ApplicationsApi apiInstance = new ApplicationsApi();
        String cmd = cmd_example; // String | User Account Request Approval(approve: Accept, reject: Reject)
        Long idx = 789; // Long | User Account Request idx
        try {
            apiInstance.updateUserApplication(cmd, idx);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#updateUserApplication");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApplicationsApi;

public class ApplicationsApiExample {

    public static void main(String[] args) {
        ApplicationsApi apiInstance = new ApplicationsApi();
        String cmd = cmd_example; // String | User Account Request Approval(approve: Accept, reject: Reject)
        Long idx = 789; // Long | User Account Request idx
        try {
            apiInstance.updateUserApplication(cmd, idx);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApplicationsApi#updateUserApplication");
            e.printStackTrace();
        }
    }
}
String *cmd = cmd_example; // User Account Request Approval(approve: Accept, reject: Reject)
Long *idx = 789; // User Account Request idx

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

// Update an existing User Account Request
[apiInstance updateUserApplicationWith:cmd
    idx:idx
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApplicationsApi()

var cmd = cmd_example; // {String} User Account Request Approval(approve: Accept, reject: Reject)

var idx = 789; // {Long} User Account Request idx


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateUserApplication(cmd, idx, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateUserApplicationExample
    {
        public void main()
        {
            
            var apiInstance = new ApplicationsApi();
            var cmd = cmd_example;  // String | User Account Request Approval(approve: Accept, reject: Reject)
            var idx = 789;  // Long | User Account Request idx

            try
            {
                // Update an existing User Account Request
                apiInstance.updateUserApplication(cmd, idx);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApplicationsApi.updateUserApplication: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApplicationsApi();
$cmd = cmd_example; // String | User Account Request Approval(approve: Accept, reject: Reject)
$idx = 789; // Long | User Account Request idx

try {
    $api_instance->updateUserApplication($cmd, $idx);
} catch (Exception $e) {
    echo 'Exception when calling ApplicationsApi->updateUserApplication: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationsApi;

my $api_instance = WWW::SwaggerClient::ApplicationsApi->new();
my $cmd = cmd_example; # String | User Account Request Approval(approve: Accept, reject: Reject)
my $idx = 789; # Long | User Account Request idx

eval { 
    $api_instance->updateUserApplication(cmd => $cmd, idx => $idx);
};
if ($@) {
    warn "Exception when calling ApplicationsApi->updateUserApplication: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApplicationsApi()
cmd = cmd_example # String | User Account Request Approval(approve: Accept, reject: Reject)
idx = 789 # Long | User Account Request idx

try: 
    # Update an existing User Account Request
    api_instance.update_user_application(cmd, idx)
except ApiException as e:
    print("Exception when calling ApplicationsApi->updateUserApplication: %s\n" % e)

Parameters

Path parameters
Name Description
idx*
Long (int64)
User Account Request idx
Required
Form parameters
Name Description
cmd*
String
User Account Request Approval(approve: Accept, reject: Reject)
Enum: approve, reject
Required

Responses

Status: 401 - Unauthorized

Status: 500 - Internal Server Error


Aps

getAPs

List WLANs

Retrieves a list of the WLANs.


/aps

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/aps?page=&pageSize=&sort=&qsearch=&objGroupId=&devid=&apnodemac=&wsubjId=&status=&secproto=&secauth=&protocol=&channel=&channelnumber=&signal=&addTime=&tag=&macId=&ssid=&dupDetect=&allColumns="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApsApi;

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

public class ApsApiExample {

    public static void main(String[] args) {
        
        ApsApi apiInstance = new ApsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        String qsearch = qsearch_example; // String | Search string
        String objGroupId = objGroupId_example; // String | WLAN AP Name
        String devid = devid_example; // String | WLAN Device ID
        String apnodemac = apnodemac_example; // String | MAC
        String wsubjId = wsubjId_example; // String | WLAN Group
        String status = status_example; // String | WLAN status
        String secproto = secproto_example; // String | Security Settings - Protocol (1:OPEN, 2:WEP, 3:WPA, 4:WPA2, 5:WPAs
        String secauth = secauth_example; // String | Security Settings - Authentication Methods (1: PSK, 2: 802.1X)
        String protocol = protocol_example; // String | Protocol (1: A, 2: B ,4: G, 6: B/G, 9: A/N, 12: G/N, 14: B/G/N, 16: AC, 24: AC/N)
        String channel = channel_example; // String | Frequency
        String channelnumber = channelnumber_example; // String | Channel
        String signal = signal_example; // String | Signal strength
        String addTime = addTime_example; // String | Registered
        String tag = tag_example; // String | Tag
        String macId = macId_example; // String | MAC
        String ssid = ssid_example; // String | SSID
        Boolean dupDetect = true; // Boolean | Duplicated WLANs
        Boolean allColumns = true; // Boolean | Viewing all columns
        try {
            apiInstance.getAPs(page, pageSize, sort, qsearch, objGroupId, devid, apnodemac, wsubjId, status, secproto, secauth, protocol, channel, channelnumber, signal, addTime, tag, macId, ssid, dupDetect, allColumns);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApsApi#getAPs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ApsApi;

public class ApsApiExample {

    public static void main(String[] args) {
        ApsApi apiInstance = new ApsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        String qsearch = qsearch_example; // String | Search string
        String objGroupId = objGroupId_example; // String | WLAN AP Name
        String devid = devid_example; // String | WLAN Device ID
        String apnodemac = apnodemac_example; // String | MAC
        String wsubjId = wsubjId_example; // String | WLAN Group
        String status = status_example; // String | WLAN status
        String secproto = secproto_example; // String | Security Settings - Protocol (1:OPEN, 2:WEP, 3:WPA, 4:WPA2, 5:WPAs
        String secauth = secauth_example; // String | Security Settings - Authentication Methods (1: PSK, 2: 802.1X)
        String protocol = protocol_example; // String | Protocol (1: A, 2: B ,4: G, 6: B/G, 9: A/N, 12: G/N, 14: B/G/N, 16: AC, 24: AC/N)
        String channel = channel_example; // String | Frequency
        String channelnumber = channelnumber_example; // String | Channel
        String signal = signal_example; // String | Signal strength
        String addTime = addTime_example; // String | Registered
        String tag = tag_example; // String | Tag
        String macId = macId_example; // String | MAC
        String ssid = ssid_example; // String | SSID
        Boolean dupDetect = true; // Boolean | Duplicated WLANs
        Boolean allColumns = true; // Boolean | Viewing all columns
        try {
            apiInstance.getAPs(page, pageSize, sort, qsearch, objGroupId, devid, apnodemac, wsubjId, status, secproto, secauth, protocol, channel, channelnumber, signal, addTime, tag, macId, ssid, dupDetect, allColumns);
        } catch (ApiException e) {
            System.err.println("Exception when calling ApsApi#getAPs");
            e.printStackTrace();
        }
    }
}
Integer *page = 56; // Results page to be retrieved (default to 1)
Integer *pageSize = 56; // Number of records per page (default to 30)
String *sort = sort_example; // Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
String *qsearch = qsearch_example; // Search string (optional)
String *objGroupId = objGroupId_example; // WLAN AP Name (optional)
String *devid = devid_example; // WLAN Device ID (optional)
String *apnodemac = apnodemac_example; // MAC (optional)
String *wsubjId = wsubjId_example; // WLAN Group (optional)
String *status = status_example; // WLAN status (optional)
String *secproto = secproto_example; // Security Settings - Protocol (1:OPEN, 2:WEP, 3:WPA, 4:WPA2, 5:WPAs (optional)
String *secauth = secauth_example; // Security Settings - Authentication Methods (1: PSK, 2: 802.1X) (optional)
String *protocol = protocol_example; // Protocol (1: A, 2: B ,4: G, 6: B/G, 9: A/N, 12: G/N, 14: B/G/N, 16: AC, 24: AC/N) (optional)
String *channel = channel_example; // Frequency (optional)
String *channelnumber = channelnumber_example; // Channel (optional)
String *signal = signal_example; // Signal strength (optional)
String *addTime = addTime_example; // Registered (optional)
String *tag = tag_example; // Tag (optional)
String *macId = macId_example; // MAC (optional)
String *ssid = ssid_example; // SSID (optional)
Boolean *dupDetect = true; // Duplicated WLANs (optional) (default to false)
Boolean *allColumns = true; // Viewing all columns (optional)

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

// List WLANs
[apiInstance getAPsWith:page
    pageSize:pageSize
    sort:sort
    qsearch:qsearch
    objGroupId:objGroupId
    devid:devid
    apnodemac:apnodemac
    wsubjId:wsubjId
    status:status
    secproto:secproto
    secauth:secauth
    protocol:protocol
    channel:channel
    channelnumber:channelnumber
    signal:signal
    addTime:addTime
    tag:tag
    macId:macId
    ssid:ssid
    dupDetect:dupDetect
    allColumns:allColumns
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.ApsApi()

var page = 56; // {Integer} Results page to be retrieved

var pageSize = 56; // {Integer} Number of records per page

var opts = { 
  'sort': sort_example, // {String} Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
  'qsearch': qsearch_example, // {String} Search string
  'objGroupId': objGroupId_example, // {String} WLAN AP Name
  'devid': devid_example, // {String} WLAN Device ID
  'apnodemac': apnodemac_example, // {String} MAC
  'wsubjId': wsubjId_example, // {String} WLAN Group
  'status': status_example, // {String} WLAN status
  'secproto': secproto_example, // {String} Security Settings - Protocol (1:OPEN, 2:WEP, 3:WPA, 4:WPA2, 5:WPAs
  'secauth': secauth_example, // {String} Security Settings - Authentication Methods (1: PSK, 2: 802.1X)
  'protocol': protocol_example, // {String} Protocol (1: A, 2: B ,4: G, 6: B/G, 9: A/N, 12: G/N, 14: B/G/N, 16: AC, 24: AC/N)
  'channel': channel_example, // {String} Frequency
  'channelnumber': channelnumber_example, // {String} Channel
  'signal': signal_example, // {String} Signal strength
  'addTime': addTime_example, // {String} Registered
  'tag': tag_example, // {String} Tag
  'macId': macId_example, // {String} MAC
  'ssid': ssid_example, // {String} SSID
  'dupDetect': true, // {Boolean} Duplicated WLANs
  'allColumns': true // {Boolean} Viewing all columns
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getAPs(page, pageSize, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAPsExample
    {
        public void main()
        {
            
            var apiInstance = new ApsApi();
            var page = 56;  // Integer | Results page to be retrieved (default to 1)
            var pageSize = 56;  // Integer | Number of records per page (default to 30)
            var sort = sort_example;  // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional) 
            var qsearch = qsearch_example;  // String | Search string (optional) 
            var objGroupId = objGroupId_example;  // String | WLAN AP Name (optional) 
            var devid = devid_example;  // String | WLAN Device ID (optional) 
            var apnodemac = apnodemac_example;  // String | MAC (optional) 
            var wsubjId = wsubjId_example;  // String | WLAN Group (optional) 
            var status = status_example;  // String | WLAN status (optional) 
            var secproto = secproto_example;  // String | Security Settings - Protocol (1:OPEN, 2:WEP, 3:WPA, 4:WPA2, 5:WPAs (optional) 
            var secauth = secauth_example;  // String | Security Settings - Authentication Methods (1: PSK, 2: 802.1X) (optional) 
            var protocol = protocol_example;  // String | Protocol (1: A, 2: B ,4: G, 6: B/G, 9: A/N, 12: G/N, 14: B/G/N, 16: AC, 24: AC/N) (optional) 
            var channel = channel_example;  // String | Frequency (optional) 
            var channelnumber = channelnumber_example;  // String | Channel (optional) 
            var signal = signal_example;  // String | Signal strength (optional) 
            var addTime = addTime_example;  // String | Registered (optional) 
            var tag = tag_example;  // String | Tag (optional) 
            var macId = macId_example;  // String | MAC (optional) 
            var ssid = ssid_example;  // String | SSID (optional) 
            var dupDetect = true;  // Boolean | Duplicated WLANs (optional)  (default to false)
            var allColumns = true;  // Boolean | Viewing all columns (optional) 

            try
            {
                // List WLANs
                apiInstance.getAPs(page, pageSize, sort, qsearch, objGroupId, devid, apnodemac, wsubjId, status, secproto, secauth, protocol, channel, channelnumber, signal, addTime, tag, macId, ssid, dupDetect, allColumns);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ApsApi.getAPs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ApsApi();
$page = 56; // Integer | Results page to be retrieved
$pageSize = 56; // Integer | Number of records per page
$sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
$qsearch = qsearch_example; // String | Search string
$objGroupId = objGroupId_example; // String | WLAN AP Name
$devid = devid_example; // String | WLAN Device ID
$apnodemac = apnodemac_example; // String | MAC
$wsubjId = wsubjId_example; // String | WLAN Group
$status = status_example; // String | WLAN status
$secproto = secproto_example; // String | Security Settings - Protocol (1:OPEN, 2:WEP, 3:WPA, 4:WPA2, 5:WPAs
$secauth = secauth_example; // String | Security Settings - Authentication Methods (1: PSK, 2: 802.1X)
$protocol = protocol_example; // String | Protocol (1: A, 2: B ,4: G, 6: B/G, 9: A/N, 12: G/N, 14: B/G/N, 16: AC, 24: AC/N)
$channel = channel_example; // String | Frequency
$channelnumber = channelnumber_example; // String | Channel
$signal = signal_example; // String | Signal strength
$addTime = addTime_example; // String | Registered
$tag = tag_example; // String | Tag
$macId = macId_example; // String | MAC
$ssid = ssid_example; // String | SSID
$dupDetect = true; // Boolean | Duplicated WLANs
$allColumns = true; // Boolean | Viewing all columns

try {
    $api_instance->getAPs($page, $pageSize, $sort, $qsearch, $objGroupId, $devid, $apnodemac, $wsubjId, $status, $secproto, $secauth, $protocol, $channel, $channelnumber, $signal, $addTime, $tag, $macId, $ssid, $dupDetect, $allColumns);
} catch (Exception $e) {
    echo 'Exception when calling ApsApi->getAPs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApsApi;

my $api_instance = WWW::SwaggerClient::ApsApi->new();
my $page = 56; # Integer | Results page to be retrieved
my $pageSize = 56; # Integer | Number of records per page
my $sort = sort_example; # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
my $qsearch = qsearch_example; # String | Search string
my $objGroupId = objGroupId_example; # String | WLAN AP Name
my $devid = devid_example; # String | WLAN Device ID
my $apnodemac = apnodemac_example; # String | MAC
my $wsubjId = wsubjId_example; # String | WLAN Group
my $status = status_example; # String | WLAN status
my $secproto = secproto_example; # String | Security Settings - Protocol (1:OPEN, 2:WEP, 3:WPA, 4:WPA2, 5:WPAs
my $secauth = secauth_example; # String | Security Settings - Authentication Methods (1: PSK, 2: 802.1X)
my $protocol = protocol_example; # String | Protocol (1: A, 2: B ,4: G, 6: B/G, 9: A/N, 12: G/N, 14: B/G/N, 16: AC, 24: AC/N)
my $channel = channel_example; # String | Frequency
my $channelnumber = channelnumber_example; # String | Channel
my $signal = signal_example; # String | Signal strength
my $addTime = addTime_example; # String | Registered
my $tag = tag_example; # String | Tag
my $macId = macId_example; # String | MAC
my $ssid = ssid_example; # String | SSID
my $dupDetect = true; # Boolean | Duplicated WLANs
my $allColumns = true; # Boolean | Viewing all columns

eval { 
    $api_instance->getAPs(page => $page, pageSize => $pageSize, sort => $sort, qsearch => $qsearch, objGroupId => $objGroupId, devid => $devid, apnodemac => $apnodemac, wsubjId => $wsubjId, status => $status, secproto => $secproto, secauth => $secauth, protocol => $protocol, channel => $channel, channelnumber => $channelnumber, signal => $signal, addTime => $addTime, tag => $tag, macId => $macId, ssid => $ssid, dupDetect => $dupDetect, allColumns => $allColumns);
};
if ($@) {
    warn "Exception when calling ApsApi->getAPs: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ApsApi()
page = 56 # Integer | Results page to be retrieved (default to 1)
pageSize = 56 # Integer | Number of records per page (default to 30)
sort = sort_example # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
qsearch = qsearch_example # String | Search string (optional)
objGroupId = objGroupId_example # String | WLAN AP Name (optional)
devid = devid_example # String | WLAN Device ID (optional)
apnodemac = apnodemac_example # String | MAC (optional)
wsubjId = wsubjId_example # String | WLAN Group (optional)
status = status_example # String | WLAN status (optional)
secproto = secproto_example # String | Security Settings - Protocol (1:OPEN, 2:WEP, 3:WPA, 4:WPA2, 5:WPAs (optional)
secauth = secauth_example # String | Security Settings - Authentication Methods (1: PSK, 2: 802.1X) (optional)
protocol = protocol_example # String | Protocol (1: A, 2: B ,4: G, 6: B/G, 9: A/N, 12: G/N, 14: B/G/N, 16: AC, 24: AC/N) (optional)
channel = channel_example # String | Frequency (optional)
channelnumber = channelnumber_example # String | Channel (optional)
signal = signal_example # String | Signal strength (optional)
addTime = addTime_example # String | Registered (optional)
tag = tag_example # String | Tag (optional)
macId = macId_example # String | MAC (optional)
ssid = ssid_example # String | SSID (optional)
dupDetect = true # Boolean | Duplicated WLANs (optional) (default to false)
allColumns = true # Boolean | Viewing all columns (optional)

try: 
    # List WLANs
    api_instance.get_a_ps(page, pageSize, sort=sort, qsearch=qsearch, objGroupId=objGroupId, devid=devid, apnodemac=apnodemac, wsubjId=wsubjId, status=status, secproto=secproto, secauth=secauth, protocol=protocol, channel=channel, channelnumber=channelnumber, signal=signal, addTime=addTime, tag=tag, macId=macId, ssid=ssid, dupDetect=dupDetect, allColumns=allColumns)
except ApiException as e:
    print("Exception when calling ApsApi->getAPs: %s\n" % e)

Parameters

Query parameters
Name Description
page*
Integer (int32)
Results page to be retrieved
Required
pageSize*
Integer (int32)
Number of records per page
Required
sort
String
Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
qsearch
String
Search string
objGroupId
String
WLAN AP Name
devid
String
WLAN Device ID
apnodemac
String
MAC
wsubjId
String
WLAN Group
status
String
WLAN status
secproto
String
Security Settings - Protocol (1:OPEN, 2:WEP, 3:WPA, 4:WPA2, 5:WPAs
secauth
String
Security Settings - Authentication Methods (1: PSK, 2: 802.1X)
protocol
String
Protocol (1: A, 2: B ,4: G, 6: B/G, 9: A/N, 12: G/N, 14: B/G/N, 16: AC, 24: AC/N)
channel
String
Frequency
channelnumber
String
Channel
signal
String
Signal strength
addTime
String
Registered
tag
String
Tag
macId
String
MAC
ssid
String
SSID
dupDetect
Boolean
Duplicated WLANs
allColumns
Boolean
Viewing all columns

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


Cves

getCvePlatformInfo

Platform Search with CVE

Platform Search with CVE.


/cves/{cveId}/platformInfo

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/cves/{cveId}/platformInfo?page=&pageSize=&sort="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CvesApi;

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

public class CvesApiExample {

    public static void main(String[] args) {
        
        CvesApi apiInstance = new CvesApi();
        String cveId = cveId_example; // String | CVE ID
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        try {
            apiInstance.getCvePlatformInfo(cveId, page, pageSize, sort);
        } catch (ApiException e) {
            System.err.println("Exception when calling CvesApi#getCvePlatformInfo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CvesApi;

public class CvesApiExample {

    public static void main(String[] args) {
        CvesApi apiInstance = new CvesApi();
        String cveId = cveId_example; // String | CVE ID
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        try {
            apiInstance.getCvePlatformInfo(cveId, page, pageSize, sort);
        } catch (ApiException e) {
            System.err.println("Exception when calling CvesApi#getCvePlatformInfo");
            e.printStackTrace();
        }
    }
}
String *cveId = cveId_example; // CVE ID
Integer *page = 56; // Results page to be retrieved (default to 1)
Integer *pageSize = 56; // Number of records per page (default to 30)
String *sort = sort_example; // Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)

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

// Platform Search with CVE
[apiInstance getCvePlatformInfoWith:cveId
    page:page
    pageSize:pageSize
    sort:sort
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.CvesApi()

var cveId = cveId_example; // {String} CVE ID

var page = 56; // {Integer} Results page to be retrieved

var pageSize = 56; // {Integer} Number of records per page

var opts = { 
  'sort': sort_example // {String} Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getCvePlatformInfo(cveId, page, pageSize, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCvePlatformInfoExample
    {
        public void main()
        {
            
            var apiInstance = new CvesApi();
            var cveId = cveId_example;  // String | CVE ID
            var page = 56;  // Integer | Results page to be retrieved (default to 1)
            var pageSize = 56;  // Integer | Number of records per page (default to 30)
            var sort = sort_example;  // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional) 

            try
            {
                // Platform Search with CVE
                apiInstance.getCvePlatformInfo(cveId, page, pageSize, sort);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CvesApi.getCvePlatformInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CvesApi();
$cveId = cveId_example; // String | CVE ID
$page = 56; // Integer | Results page to be retrieved
$pageSize = 56; // Integer | Number of records per page
$sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})

try {
    $api_instance->getCvePlatformInfo($cveId, $page, $pageSize, $sort);
} catch (Exception $e) {
    echo 'Exception when calling CvesApi->getCvePlatformInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CvesApi;

my $api_instance = WWW::SwaggerClient::CvesApi->new();
my $cveId = cveId_example; # String | CVE ID
my $page = 56; # Integer | Results page to be retrieved
my $pageSize = 56; # Integer | Number of records per page
my $sort = sort_example; # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})

eval { 
    $api_instance->getCvePlatformInfo(cveId => $cveId, page => $page, pageSize => $pageSize, sort => $sort);
};
if ($@) {
    warn "Exception when calling CvesApi->getCvePlatformInfo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CvesApi()
cveId = cveId_example # String | CVE ID
page = 56 # Integer | Results page to be retrieved (default to 1)
pageSize = 56 # Integer | Number of records per page (default to 30)
sort = sort_example # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)

try: 
    # Platform Search with CVE
    api_instance.get_cve_platform_info(cveId, page, pageSize, sort=sort)
except ApiException as e:
    print("Exception when calling CvesApi->getCvePlatformInfo: %s\n" % e)

Parameters

Path parameters
Name Description
cveId*
String
CVE ID
Required
Query parameters
Name Description
page*
Integer (int32)
Results page to be retrieved
Required
pageSize*
Integer (int32)
Number of records per page
Required
sort
String
Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})

Responses

Status: 401 - Unauthorized

Status: 404 - Node ID Not Found


getCves

Retrieve a specific Node's CVE(s)

Retrieves the CVE(s) assigned to the Node specified.


/cves

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/cves?page=&pageSize=&qsearch=&mode=&sort="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CvesApi;

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

public class CvesApiExample {

    public static void main(String[] args) {
        
        CvesApi apiInstance = new CvesApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String qsearch = qsearch_example; // String | Search string
        String mode = mode_example; // String | List mode
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        try {
            apiInstance.getCves(page, pageSize, qsearch, mode, sort);
        } catch (ApiException e) {
            System.err.println("Exception when calling CvesApi#getCves");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CvesApi;

public class CvesApiExample {

    public static void main(String[] args) {
        CvesApi apiInstance = new CvesApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String qsearch = qsearch_example; // String | Search string
        String mode = mode_example; // String | List mode
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        try {
            apiInstance.getCves(page, pageSize, qsearch, mode, sort);
        } catch (ApiException e) {
            System.err.println("Exception when calling CvesApi#getCves");
            e.printStackTrace();
        }
    }
}
Integer *page = 56; // Results page to be retrieved (default to 1)
Integer *pageSize = 56; // Number of records per page (default to 30)
String *qsearch = qsearch_example; // Search string (optional)
String *mode = mode_example; // List mode (optional)
String *sort = sort_example; // Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)

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

// Retrieve a specific Node's CVE(s)
[apiInstance getCvesWith:page
    pageSize:pageSize
    qsearch:qsearch
    mode:mode
    sort:sort
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.CvesApi()

var page = 56; // {Integer} Results page to be retrieved

var pageSize = 56; // {Integer} Number of records per page

var opts = { 
  'qsearch': qsearch_example, // {String} Search string
  'mode': mode_example, // {String} List mode
  'sort': sort_example // {String} Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getCves(page, pageSize, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCvesExample
    {
        public void main()
        {
            
            var apiInstance = new CvesApi();
            var page = 56;  // Integer | Results page to be retrieved (default to 1)
            var pageSize = 56;  // Integer | Number of records per page (default to 30)
            var qsearch = qsearch_example;  // String | Search string (optional) 
            var mode = mode_example;  // String | List mode (optional) 
            var sort = sort_example;  // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional) 

            try
            {
                // Retrieve a specific Node's CVE(s)
                apiInstance.getCves(page, pageSize, qsearch, mode, sort);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CvesApi.getCves: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\CvesApi();
$page = 56; // Integer | Results page to be retrieved
$pageSize = 56; // Integer | Number of records per page
$qsearch = qsearch_example; // String | Search string
$mode = mode_example; // String | List mode
$sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})

try {
    $api_instance->getCves($page, $pageSize, $qsearch, $mode, $sort);
} catch (Exception $e) {
    echo 'Exception when calling CvesApi->getCves: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CvesApi;

my $api_instance = WWW::SwaggerClient::CvesApi->new();
my $page = 56; # Integer | Results page to be retrieved
my $pageSize = 56; # Integer | Number of records per page
my $qsearch = qsearch_example; # String | Search string
my $mode = mode_example; # String | List mode
my $sort = sort_example; # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})

eval { 
    $api_instance->getCves(page => $page, pageSize => $pageSize, qsearch => $qsearch, mode => $mode, sort => $sort);
};
if ($@) {
    warn "Exception when calling CvesApi->getCves: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.CvesApi()
page = 56 # Integer | Results page to be retrieved (default to 1)
pageSize = 56 # Integer | Number of records per page (default to 30)
qsearch = qsearch_example # String | Search string (optional)
mode = mode_example # String | List mode (optional)
sort = sort_example # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)

try: 
    # Retrieve a specific Node's CVE(s)
    api_instance.get_cves(page, pageSize, qsearch=qsearch, mode=mode, sort=sort)
except ApiException as e:
    print("Exception when calling CvesApi->getCves: %s\n" % e)

Parameters

Query parameters
Name Description
page*
Integer (int32)
Results page to be retrieved
Required
pageSize*
Integer (int32)
Number of records per page
Required
qsearch
String
Search string
mode
String
List mode
sort
String
Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})

Responses

Status: 401 - Unauthorized

Status: 404 - Node ID Not Found


Devices

createNodeTagsOfDevice

Assign a tag

Assign a Node tag to the device specified.


/devices/{devId}/node/tags

Usage and SDK Samples

curl -X POST "https://localhost/mc2/rest/devices/{devId}/node/tags"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        String devId = devId_example; // String | Device ID
        array[TagVo] body = ; // array[TagVo] | Tag JSON Array (Expiry Format: yyyy-MM-dd HH:mm)
        try {
            apiInstance.createNodeTagsOfDevice(devId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#createNodeTagsOfDevice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        String devId = devId_example; // String | Device ID
        array[TagVo] body = ; // array[TagVo] | Tag JSON Array (Expiry Format: yyyy-MM-dd HH:mm)
        try {
            apiInstance.createNodeTagsOfDevice(devId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#createNodeTagsOfDevice");
            e.printStackTrace();
        }
    }
}
String *devId = devId_example; // Device ID
array[TagVo] *body = ; // Tag JSON Array (Expiry Format: yyyy-MM-dd HH:mm)

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

// Assign a tag
[apiInstance createNodeTagsOfDeviceWith:devId
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.DevicesApi()

var devId = devId_example; // {String} Device ID

var body = ; // {array[TagVo]} Tag JSON Array (Expiry Format: yyyy-MM-dd HH:mm)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createNodeTagsOfDevice(devId, body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createNodeTagsOfDeviceExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();
            var devId = devId_example;  // String | Device ID
            var body = new array[TagVo](); // array[TagVo] | Tag JSON Array (Expiry Format: yyyy-MM-dd HH:mm)

            try
            {
                // Assign a tag
                apiInstance.createNodeTagsOfDevice(devId, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.createNodeTagsOfDevice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();
$devId = devId_example; // String | Device ID
$body = ; // array[TagVo] | Tag JSON Array (Expiry Format: yyyy-MM-dd HH:mm)

try {
    $api_instance->createNodeTagsOfDevice($devId, $body);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->createNodeTagsOfDevice: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $devId = devId_example; # String | Device ID
my $body = [WWW::SwaggerClient::Object::array[TagVo]->new()]; # array[TagVo] | Tag JSON Array (Expiry Format: yyyy-MM-dd HH:mm)

eval { 
    $api_instance->createNodeTagsOfDevice(devId => $devId, body => $body);
};
if ($@) {
    warn "Exception when calling DevicesApi->createNodeTagsOfDevice: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()
devId = devId_example # String | Device ID
body =  # array[TagVo] | Tag JSON Array (Expiry Format: yyyy-MM-dd HH:mm)

try: 
    # Assign a tag
    api_instance.create_node_tags_of_device(devId, body)
except ApiException as e:
    print("Exception when calling DevicesApi->createNodeTagsOfDevice: %s\n" % e)

Parameters

Path parameters
Name Description
devId*
String
Device ID
Required
Body parameters
Name Description
body *

Responses

Status: 401 - Unauthorized

Status: 500 - Internal Server Error


deleteNodeTagsOfDevice

Remove the tag(s)

Removes the Node tag(s) from the device specified.


/devices/{devId}/node/tags

Usage and SDK Samples

curl -X DELETE "https://localhost/mc2/rest/devices/{devId}/node/tags"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        String devId = devId_example; // String | Device ID
        array[String] body = ; // array[String] | Tag List
        try {
            apiInstance.deleteNodeTagsOfDevice(devId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deleteNodeTagsOfDevice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        String devId = devId_example; // String | Device ID
        array[String] body = ; // array[String] | Tag List
        try {
            apiInstance.deleteNodeTagsOfDevice(devId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#deleteNodeTagsOfDevice");
            e.printStackTrace();
        }
    }
}
String *devId = devId_example; // Device ID
array[String] *body = ; // Tag List

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

// Remove the tag(s)
[apiInstance deleteNodeTagsOfDeviceWith:devId
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.DevicesApi()

var devId = devId_example; // {String} Device ID

var body = ; // {array[String]} Tag List


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteNodeTagsOfDevice(devId, body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteNodeTagsOfDeviceExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();
            var devId = devId_example;  // String | Device ID
            var body = new array[String](); // array[String] | Tag List

            try
            {
                // Remove the tag(s)
                apiInstance.deleteNodeTagsOfDevice(devId, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.deleteNodeTagsOfDevice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();
$devId = devId_example; // String | Device ID
$body = ; // array[String] | Tag List

try {
    $api_instance->deleteNodeTagsOfDevice($devId, $body);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->deleteNodeTagsOfDevice: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $devId = devId_example; # String | Device ID
my $body = [WWW::SwaggerClient::Object::array[String]->new()]; # array[String] | Tag List

eval { 
    $api_instance->deleteNodeTagsOfDevice(devId => $devId, body => $body);
};
if ($@) {
    warn "Exception when calling DevicesApi->deleteNodeTagsOfDevice: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()
devId = devId_example # String | Device ID
body =  # array[String] | Tag List

try: 
    # Remove the tag(s)
    api_instance.delete_node_tags_of_device(devId, body)
except ApiException as e:
    print("Exception when calling DevicesApi->deleteNodeTagsOfDevice: %s\n" % e)

Parameters

Path parameters
Name Description
devId*
String
Device ID
Required
Body parameters
Name Description
body *

Responses

Status: 401 - Unauthorized

Status: 500 - Internal Server Error


getNodeTagsOfDevice

Retrieve a specific device's Node tag(s)

Retrieves the Node tag(s) assigned to the device specified.


/devices/{devId}/node/tags

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/devices/{devId}/node/tags"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DevicesApi;

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

public class DevicesApiExample {

    public static void main(String[] args) {
        
        DevicesApi apiInstance = new DevicesApi();
        String devId = devId_example; // String | Device ID
        try {
            apiInstance.getNodeTagsOfDevice(devId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#getNodeTagsOfDevice");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DevicesApi;

public class DevicesApiExample {

    public static void main(String[] args) {
        DevicesApi apiInstance = new DevicesApi();
        String devId = devId_example; // String | Device ID
        try {
            apiInstance.getNodeTagsOfDevice(devId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DevicesApi#getNodeTagsOfDevice");
            e.printStackTrace();
        }
    }
}
String *devId = devId_example; // Device ID

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

// Retrieve a specific device's Node tag(s)
[apiInstance getNodeTagsOfDeviceWith:devId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.DevicesApi()

var devId = devId_example; // {String} Device ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getNodeTagsOfDevice(devId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getNodeTagsOfDeviceExample
    {
        public void main()
        {
            
            var apiInstance = new DevicesApi();
            var devId = devId_example;  // String | Device ID

            try
            {
                // Retrieve a specific device's Node tag(s)
                apiInstance.getNodeTagsOfDevice(devId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DevicesApi.getNodeTagsOfDevice: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DevicesApi();
$devId = devId_example; // String | Device ID

try {
    $api_instance->getNodeTagsOfDevice($devId);
} catch (Exception $e) {
    echo 'Exception when calling DevicesApi->getNodeTagsOfDevice: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DevicesApi;

my $api_instance = WWW::SwaggerClient::DevicesApi->new();
my $devId = devId_example; # String | Device ID

eval { 
    $api_instance->getNodeTagsOfDevice(devId => $devId);
};
if ($@) {
    warn "Exception when calling DevicesApi->getNodeTagsOfDevice: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DevicesApi()
devId = devId_example # String | Device ID

try: 
    # Retrieve a specific device's Node tag(s)
    api_instance.get_node_tags_of_device(devId)
except ApiException as e:
    print("Exception when calling DevicesApi->getNodeTagsOfDevice: %s\n" % e)

Parameters

Path parameters
Name Description
devId*
String
Device ID
Required

Responses

Status: 401 - Unauthorized

Status: 404 - Device ID Not Found


Groups

getFovoriteApGroups

List Widget WLAN Groups

Retrieves a list of the WLAN Groups assigned to the WLAN Group Widget.


/groups/ap/favorite

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/groups/ap/favorite"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupsApi;

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

public class GroupsApiExample {

    public static void main(String[] args) {
        
        GroupsApi apiInstance = new GroupsApi();
        try {
            apiInstance.getFovoriteApGroups();
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#getFovoriteApGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupsApi;

public class GroupsApiExample {

    public static void main(String[] args) {
        GroupsApi apiInstance = new GroupsApi();
        try {
            apiInstance.getFovoriteApGroups();
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#getFovoriteApGroups");
            e.printStackTrace();
        }
    }
}

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

// List Widget WLAN Groups
[apiInstance getFovoriteApGroupsWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.GroupsApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getFovoriteApGroups(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getFovoriteApGroupsExample
    {
        public void main()
        {
            
            var apiInstance = new GroupsApi();

            try
            {
                // List Widget WLAN Groups
                apiInstance.getFovoriteApGroups();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupsApi.getFovoriteApGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\GroupsApi();

try {
    $api_instance->getFovoriteApGroups();
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->getFovoriteApGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupsApi;

my $api_instance = WWW::SwaggerClient::GroupsApi->new();

eval { 
    $api_instance->getFovoriteApGroups();
};
if ($@) {
    warn "Exception when calling GroupsApi->getFovoriteApGroups: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.GroupsApi()

try: 
    # List Widget WLAN Groups
    api_instance.get_fovorite_ap_groups()
except ApiException as e:
    print("Exception when calling GroupsApi->getFovoriteApGroups: %s\n" % e)

Parameters

Responses

Status: 401 - Unauthorized

Status: 404 - WLAN Group Not Found


getFovoriteNodeGroups

List Widget Node Groups

Retrieves a list of the Node Groups assigned to the Node Group Widget.


/groups/node/favorite

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/groups/node/favorite"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupsApi;

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

public class GroupsApiExample {

    public static void main(String[] args) {
        
        GroupsApi apiInstance = new GroupsApi();
        try {
            apiInstance.getFovoriteNodeGroups();
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#getFovoriteNodeGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupsApi;

public class GroupsApiExample {

    public static void main(String[] args) {
        GroupsApi apiInstance = new GroupsApi();
        try {
            apiInstance.getFovoriteNodeGroups();
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#getFovoriteNodeGroups");
            e.printStackTrace();
        }
    }
}

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

// List Widget Node Groups
[apiInstance getFovoriteNodeGroupsWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.GroupsApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getFovoriteNodeGroups(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getFovoriteNodeGroupsExample
    {
        public void main()
        {
            
            var apiInstance = new GroupsApi();

            try
            {
                // List Widget Node Groups
                apiInstance.getFovoriteNodeGroups();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupsApi.getFovoriteNodeGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\GroupsApi();

try {
    $api_instance->getFovoriteNodeGroups();
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->getFovoriteNodeGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupsApi;

my $api_instance = WWW::SwaggerClient::GroupsApi->new();

eval { 
    $api_instance->getFovoriteNodeGroups();
};
if ($@) {
    warn "Exception when calling GroupsApi->getFovoriteNodeGroups: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.GroupsApi()

try: 
    # List Widget Node Groups
    api_instance.get_fovorite_node_groups()
except ApiException as e:
    print("Exception when calling GroupsApi->getFovoriteNodeGroups: %s\n" % e)

Parameters

Responses

Status: 401 - Unauthorized

Status: 404 - Node Group Not Found


Ip

updateIpPolicies

Configure IP Policy

Executable Commands<br/><br/>ipdeny : Deny IP<br/>ipallow : Allow IP - Disable Conflict Prevention<br/>ipprotect : Allow IP - Enable Conflict Prevention (Allow Specified MAC(s))


/ip/policies

Usage and SDK Samples

curl -X PUT "https://localhost/mc2/rest/ip/policies"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.IpApi;

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

public class IpApiExample {

    public static void main(String[] args) {
        
        IpApi apiInstance = new IpApi();
        array[IP Policy Value Object] body = ; // array[IP Policy Value Object] | Policy Data
        try {
            Message Value Object result = apiInstance.updateIpPolicies(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IpApi#updateIpPolicies");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.IpApi;

public class IpApiExample {

    public static void main(String[] args) {
        IpApi apiInstance = new IpApi();
        array[IP Policy Value Object] body = ; // array[IP Policy Value Object] | Policy Data
        try {
            Message Value Object result = apiInstance.updateIpPolicies(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling IpApi#updateIpPolicies");
            e.printStackTrace();
        }
    }
}
array[IP Policy Value Object] *body = ; // Policy Data

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

// Configure IP Policy
[apiInstance updateIpPoliciesWith:body
              completionHandler: ^(Message Value Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.IpApi()

var body = ; // {array[IP Policy Value Object]} Policy Data


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

namespace Example
{
    public class updateIpPoliciesExample
    {
        public void main()
        {
            
            var apiInstance = new IpApi();
            var body = new array[IP Policy Value Object](); // array[IP Policy Value Object] | Policy Data

            try
            {
                // Configure IP Policy
                Message Value Object result = apiInstance.updateIpPolicies(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling IpApi.updateIpPolicies: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\IpApi();
$body = ; // array[IP Policy Value Object] | Policy Data

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

my $api_instance = WWW::SwaggerClient::IpApi->new();
my $body = [WWW::SwaggerClient::Object::array[IP Policy Value Object]->new()]; # array[IP Policy Value Object] | Policy Data

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

# create an instance of the API class
api_instance = swagger_client.IpApi()
body =  # array[IP Policy Value Object] | Policy Data

try: 
    # Configure IP Policy
    api_response = api_instance.update_ip_policies(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling IpApi->updateIpPolicies: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 400 - Bad Request

Status: 500 - Internal Server Error


Logs

createLogfilter

Create a new log filter

Creates a new log filter.


/logs/filters

Usage and SDK Samples

curl -X POST "https://localhost/mc2/rest/logs/filters"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LogsApi;

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

public class LogsApiExample {

    public static void main(String[] args) {
        
        LogsApi apiInstance = new LogsApi();
        LogFilterVo body = ; // LogFilterVo | Log filter
        try {
            apiInstance.createLogfilter(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogsApi#createLogfilter");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LogsApi;

public class LogsApiExample {

    public static void main(String[] args) {
        LogsApi apiInstance = new LogsApi();
        LogFilterVo body = ; // LogFilterVo | Log filter
        try {
            apiInstance.createLogfilter(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogsApi#createLogfilter");
            e.printStackTrace();
        }
    }
}
LogFilterVo *body = ; // Log filter

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

// Create a new log filter
[apiInstance createLogfilterWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.LogsApi()

var body = ; // {LogFilterVo} Log filter


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createLogfilter(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createLogfilterExample
    {
        public void main()
        {
            
            var apiInstance = new LogsApi();
            var body = new LogFilterVo(); // LogFilterVo | Log filter

            try
            {
                // Create a new log filter
                apiInstance.createLogfilter(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LogsApi.createLogfilter: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LogsApi();
$body = ; // LogFilterVo | Log filter

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

my $api_instance = WWW::SwaggerClient::LogsApi->new();
my $body = WWW::SwaggerClient::Object::LogFilterVo->new(); # LogFilterVo | Log filter

eval { 
    $api_instance->createLogfilter(body => $body);
};
if ($@) {
    warn "Exception when calling LogsApi->createLogfilter: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LogsApi()
body =  # LogFilterVo | Log filter

try: 
    # Create a new log filter
    api_instance.create_logfilter(body)
except ApiException as e:
    print("Exception when calling LogsApi->createLogfilter: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found

Status: 500 - Internal Server Error


deleteLogfilters

Delete a specific log filter.

Deletes the log filter specified.


/logs/filters

Usage and SDK Samples

curl -X DELETE "https://localhost/mc2/rest/logs/filters"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LogsApi;

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

public class LogsApiExample {

    public static void main(String[] args) {
        
        LogsApi apiInstance = new LogsApi();
        String ids = ids_example; // String | Log Filter ID (Use a comma to separate entries.)
        try {
            apiInstance.deleteLogfilters(ids);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogsApi#deleteLogfilters");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LogsApi;

public class LogsApiExample {

    public static void main(String[] args) {
        LogsApi apiInstance = new LogsApi();
        String ids = ids_example; // String | Log Filter ID (Use a comma to separate entries.)
        try {
            apiInstance.deleteLogfilters(ids);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogsApi#deleteLogfilters");
            e.printStackTrace();
        }
    }
}
String *ids = ids_example; // Log Filter ID (Use a comma to separate entries.)

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

// Delete a specific log filter.
[apiInstance deleteLogfiltersWith:ids
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.LogsApi()

var ids = ids_example; // {String} Log Filter ID (Use a comma to separate entries.)


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteLogfilters(ids, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteLogfiltersExample
    {
        public void main()
        {
            
            var apiInstance = new LogsApi();
            var ids = ids_example;  // String | Log Filter ID (Use a comma to separate entries.)

            try
            {
                // Delete a specific log filter.
                apiInstance.deleteLogfilters(ids);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LogsApi.deleteLogfilters: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LogsApi();
$ids = ids_example; // String | Log Filter ID (Use a comma to separate entries.)

try {
    $api_instance->deleteLogfilters($ids);
} catch (Exception $e) {
    echo 'Exception when calling LogsApi->deleteLogfilters: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LogsApi;

my $api_instance = WWW::SwaggerClient::LogsApi->new();
my $ids = ids_example; # String | Log Filter ID (Use a comma to separate entries.)

eval { 
    $api_instance->deleteLogfilters(ids => $ids);
};
if ($@) {
    warn "Exception when calling LogsApi->deleteLogfilters: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LogsApi()
ids = ids_example # String | Log Filter ID (Use a comma to separate entries.)

try: 
    # Delete a specific log filter.
    api_instance.delete_logfilters(ids)
except ApiException as e:
    print("Exception when calling LogsApi->deleteLogfilters: %s\n" % e)

Parameters

Form parameters
Name Description
ids*
String
Log Filter ID (Use a comma to separate entries.)
Required

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found

Status: 500 - Internal Server Error


getLogfilter

Add a new log filter object

Adds a new log filter object.


/logs/filters/{id}

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/logs/filters/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LogsApi;

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

public class LogsApiExample {

    public static void main(String[] args) {
        
        LogsApi apiInstance = new LogsApi();
        String id = id_example; // String | Log Filter ID
        try {
            apiInstance.getLogfilter(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogsApi#getLogfilter");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LogsApi;

public class LogsApiExample {

    public static void main(String[] args) {
        LogsApi apiInstance = new LogsApi();
        String id = id_example; // String | Log Filter ID
        try {
            apiInstance.getLogfilter(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogsApi#getLogfilter");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Log Filter ID

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

// Add a new log filter object
[apiInstance getLogfilterWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.LogsApi()

var id = id_example; // {String} Log Filter ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getLogfilter(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getLogfilterExample
    {
        public void main()
        {
            
            var apiInstance = new LogsApi();
            var id = id_example;  // String | Log Filter ID

            try
            {
                // Add a new log filter object
                apiInstance.getLogfilter(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LogsApi.getLogfilter: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LogsApi();
$id = id_example; // String | Log Filter ID

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

my $api_instance = WWW::SwaggerClient::LogsApi->new();
my $id = id_example; # String | Log Filter ID

eval { 
    $api_instance->getLogfilter(id => $id);
};
if ($@) {
    warn "Exception when calling LogsApi->getLogfilter: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LogsApi()
id = id_example # String | Log Filter ID

try: 
    # Add a new log filter object
    api_instance.get_logfilter(id)
except ApiException as e:
    print("Exception when calling LogsApi->getLogfilter: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Log Filter ID
Required

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


getLogfilters

List Log Filters

Retrieves a list of the Log Filters.


/logs/filters

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/logs/filters?page=&pageSize=&sort=&view=&ids=&name=&description=&isTreeDisplay=&isStatic="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LogsApi;

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

public class LogsApiExample {

    public static void main(String[] args) {
        
        LogsApi apiInstance = new LogsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String sort = sort_example; // String | Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        String view = view_example; // String | View (monitor, general)
        String ids = ids_example; // String | Log Filter ID
Note: Use a comma to separate entries. String name = name_example; // String | Name String description = description_example; // String | Description Boolean isTreeDisplay = true; // Boolean | Tree & Log Monitor Configured String isStatic = isStatic_example; // String | Is Static try { apiInstance.getLogfilters(page, pageSize, sort, view, ids, name, description, isTreeDisplay, isStatic); } catch (ApiException e) { System.err.println("Exception when calling LogsApi#getLogfilters"); e.printStackTrace(); } } }
import io.swagger.client.api.LogsApi;

public class LogsApiExample {

    public static void main(String[] args) {
        LogsApi apiInstance = new LogsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String sort = sort_example; // String | Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        String view = view_example; // String | View (monitor, general)
        String ids = ids_example; // String | Log Filter ID
Note: Use a comma to separate entries. String name = name_example; // String | Name String description = description_example; // String | Description Boolean isTreeDisplay = true; // Boolean | Tree & Log Monitor Configured String isStatic = isStatic_example; // String | Is Static try { apiInstance.getLogfilters(page, pageSize, sort, view, ids, name, description, isTreeDisplay, isStatic); } catch (ApiException e) { System.err.println("Exception when calling LogsApi#getLogfilters"); e.printStackTrace(); } } }
Integer *page = 56; // Results page to be retrieved (default to 1)
Integer *pageSize = 56; // Number of records per page (default to 30)
String *sort = sort_example; // Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
String *view = view_example; // View (monitor, general) (optional)
String *ids = ids_example; // Log Filter ID
Note: Use a comma to separate entries. (optional) String *name = name_example; // Name (optional) String *description = description_example; // Description (optional) Boolean *isTreeDisplay = true; // Tree & Log Monitor Configured (optional) String *isStatic = isStatic_example; // Is Static (optional) LogsApi *apiInstance = [[LogsApi alloc] init]; // List Log Filters [apiInstance getLogfiltersWith:page pageSize:pageSize sort:sort view:view ids:ids name:name description:description isTreeDisplay:isTreeDisplay isStatic:isStatic completionHandler: ^(NSError* error) { if (error) { NSLog(@"Error: %@", error); } }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.LogsApi()

var page = 56; // {Integer} Results page to be retrieved

var pageSize = 56; // {Integer} Number of records per page

var opts = { 
  'sort': sort_example, // {String} Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
  'view': view_example, // {String} View (monitor, general)
  'ids': ids_example, // {String} Log Filter ID
Note: Use a comma to separate entries. 'name': name_example, // {String} Name 'description': description_example, // {String} Description 'isTreeDisplay': true, // {Boolean} Tree & Log Monitor Configured 'isStatic': isStatic_example // {String} Is Static }; var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully.'); } }; api.getLogfilters(page, pageSize, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getLogfiltersExample
    {
        public void main()
        {
            
            var apiInstance = new LogsApi();
            var page = 56;  // Integer | Results page to be retrieved (default to 1)
            var pageSize = 56;  // Integer | Number of records per page (default to 30)
            var sort = sort_example;  // String | Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional) 
            var view = view_example;  // String | View (monitor, general) (optional) 
            var ids = ids_example;  // String | Log Filter ID
Note: Use a comma to separate entries. (optional) var name = name_example; // String | Name (optional) var description = description_example; // String | Description (optional) var isTreeDisplay = true; // Boolean | Tree & Log Monitor Configured (optional) var isStatic = isStatic_example; // String | Is Static (optional) try { // List Log Filters apiInstance.getLogfilters(page, pageSize, sort, view, ids, name, description, isTreeDisplay, isStatic); } catch (Exception e) { Debug.Print("Exception when calling LogsApi.getLogfilters: " + e.Message ); } } } }
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LogsApi();
$page = 56; // Integer | Results page to be retrieved
$pageSize = 56; // Integer | Number of records per page
$sort = sort_example; // String | Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
$view = view_example; // String | View (monitor, general)
$ids = ids_example; // String | Log Filter ID
Note: Use a comma to separate entries. $name = name_example; // String | Name $description = description_example; // String | Description $isTreeDisplay = true; // Boolean | Tree & Log Monitor Configured $isStatic = isStatic_example; // String | Is Static try { $api_instance->getLogfilters($page, $pageSize, $sort, $view, $ids, $name, $description, $isTreeDisplay, $isStatic); } catch (Exception $e) { echo 'Exception when calling LogsApi->getLogfilters: ', $e->getMessage(), PHP_EOL; } ?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LogsApi;

my $api_instance = WWW::SwaggerClient::LogsApi->new();
my $page = 56; # Integer | Results page to be retrieved
my $pageSize = 56; # Integer | Number of records per page
my $sort = sort_example; # String | Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
my $view = view_example; # String | View (monitor, general)
my $ids = ids_example; # String | Log Filter ID
Note: Use a comma to separate entries. my $name = name_example; # String | Name my $description = description_example; # String | Description my $isTreeDisplay = true; # Boolean | Tree & Log Monitor Configured my $isStatic = isStatic_example; # String | Is Static eval { $api_instance->getLogfilters(page => $page, pageSize => $pageSize, sort => $sort, view => $view, ids => $ids, name => $name, description => $description, isTreeDisplay => $isTreeDisplay, isStatic => $isStatic); }; if ($@) { warn "Exception when calling LogsApi->getLogfilters: $@\n"; }
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LogsApi()
page = 56 # Integer | Results page to be retrieved (default to 1)
pageSize = 56 # Integer | Number of records per page (default to 30)
sort = sort_example # String | Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
view = view_example # String | View (monitor, general) (optional)
ids = ids_example # String | Log Filter ID
Note: Use a comma to separate entries. (optional) name = name_example # String | Name (optional) description = description_example # String | Description (optional) isTreeDisplay = true # Boolean | Tree & Log Monitor Configured (optional) isStatic = isStatic_example # String | Is Static (optional) try: # List Log Filters api_instance.get_logfilters(page, pageSize, sort=sort, view=view, ids=ids, name=name, description=description, isTreeDisplay=isTreeDisplay, isStatic=isStatic) except ApiException as e: print("Exception when calling LogsApi->getLogfilters: %s\n" % e)

Parameters

Query parameters
Name Description
page*
Integer (int32)
Results page to be retrieved
Required
pageSize*
Integer (int32)
Number of records per page
Required
sort
String
Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
view
String
View (monitor, general)
ids
String
Log Filter ID<br/>Note: Use a comma to separate entries.
name
String
Name
description
String
Description
isTreeDisplay
Boolean
Tree & Log Monitor Configured
isStatic
String
Is Static

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


getLogs

List Logs

Retrieves a list of the logs.


/logs

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/logs?page=&pageSize=&sort=&logschema=&auditlogTypes=&periodType=&startdate=&enddate=&logfilterid=&ip=&mac=&userid=&username=&description=&loglevel=&logid=&sensorname=&extrainfo=&deptname=&qsearch=&ssid=&nasmac=&nasip=&nasporttype=&nasport=&radiuspolicy="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LogsApi;

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

public class LogsApiExample {

    public static void main(String[] args) {
        
        LogsApi apiInstance = new LogsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String logschema = logschema_example; // String | Log Schema
        String sort = sort_example; // String | Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        array[String] auditlogTypes = ; // array[String] | Auditlog Type (Used when Type is selected as auditlog)
        String periodType = periodType_example; // String | Period
        String startdate = startdate_example; // String | Start Date + Time (yyyy-MM-dd HH:mm:ss)
        String enddate = enddate_example; // String | End Date + Time (yyyy-MM-dd HH:mm:ss)
        String logfilterid = logfilterid_example; // String | Log Filter ID
        String ip = ip_example; // String | IP
        String mac = mac_example; // String | MAC
        String userid = userid_example; // String | Username
        String username = username_example; // String | Full Name
        String description = description_example; // String | Description
        String loglevel = loglevel_example; // String | Log Level (0: Error, 1: Warning, 2: Information, 3: Anomaly)
Note: Use a comma to separate entries. String logid = logid_example; // String | Log ID
Note: Use a comma to separate entries. String sensorname = sensorname_example; // String | Node Name of Policy Server String extrainfo = extrainfo_example; // String | Remarks String deptname = deptname_example; // String | Department String qsearch = qsearch_example; // String | Qsearch String ssid = ssid_example; // String | SSID (only radius log) String nasmac = nasmac_example; // String | NAS MAC (only radius log) String nasip = nasip_example; // String | NAS IP (only radius log) String nasporttype = nasporttype_example; // String | NAS Port Type
Note: Use a comma to separate entries. String nasport = nasport_example; // String | NAS Port String radiuspolicy = radiuspolicy_example; // String | RADIUS POLICY try { apiInstance.getLogs(page, pageSize, logschema, sort, auditlogTypes, periodType, startdate, enddate, logfilterid, ip, mac, userid, username, description, loglevel, logid, sensorname, extrainfo, deptname, qsearch, ssid, nasmac, nasip, nasporttype, nasport, radiuspolicy); } catch (ApiException e) { System.err.println("Exception when calling LogsApi#getLogs"); e.printStackTrace(); } } }
import io.swagger.client.api.LogsApi;

public class LogsApiExample {

    public static void main(String[] args) {
        LogsApi apiInstance = new LogsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String logschema = logschema_example; // String | Log Schema
        String sort = sort_example; // String | Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        array[String] auditlogTypes = ; // array[String] | Auditlog Type (Used when Type is selected as auditlog)
        String periodType = periodType_example; // String | Period
        String startdate = startdate_example; // String | Start Date + Time (yyyy-MM-dd HH:mm:ss)
        String enddate = enddate_example; // String | End Date + Time (yyyy-MM-dd HH:mm:ss)
        String logfilterid = logfilterid_example; // String | Log Filter ID
        String ip = ip_example; // String | IP
        String mac = mac_example; // String | MAC
        String userid = userid_example; // String | Username
        String username = username_example; // String | Full Name
        String description = description_example; // String | Description
        String loglevel = loglevel_example; // String | Log Level (0: Error, 1: Warning, 2: Information, 3: Anomaly)
Note: Use a comma to separate entries. String logid = logid_example; // String | Log ID
Note: Use a comma to separate entries. String sensorname = sensorname_example; // String | Node Name of Policy Server String extrainfo = extrainfo_example; // String | Remarks String deptname = deptname_example; // String | Department String qsearch = qsearch_example; // String | Qsearch String ssid = ssid_example; // String | SSID (only radius log) String nasmac = nasmac_example; // String | NAS MAC (only radius log) String nasip = nasip_example; // String | NAS IP (only radius log) String nasporttype = nasporttype_example; // String | NAS Port Type
Note: Use a comma to separate entries. String nasport = nasport_example; // String | NAS Port String radiuspolicy = radiuspolicy_example; // String | RADIUS POLICY try { apiInstance.getLogs(page, pageSize, logschema, sort, auditlogTypes, periodType, startdate, enddate, logfilterid, ip, mac, userid, username, description, loglevel, logid, sensorname, extrainfo, deptname, qsearch, ssid, nasmac, nasip, nasporttype, nasport, radiuspolicy); } catch (ApiException e) { System.err.println("Exception when calling LogsApi#getLogs"); e.printStackTrace(); } } }
Integer *page = 56; // Results page to be retrieved (default to 1)
Integer *pageSize = 56; // Number of records per page (default to 30)
String *logschema = logschema_example; // Log Schema (default to auditlog)
String *sort = sort_example; // Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
array[String] *auditlogTypes = ; // Auditlog Type (Used when Type is selected as auditlog) (optional)
String *periodType = periodType_example; // Period (optional) (default to custom)
String *startdate = startdate_example; // Start Date + Time (yyyy-MM-dd HH:mm:ss) (optional)
String *enddate = enddate_example; // End Date + Time (yyyy-MM-dd HH:mm:ss) (optional)
String *logfilterid = logfilterid_example; // Log Filter ID (optional)
String *ip = ip_example; // IP (optional)
String *mac = mac_example; // MAC (optional)
String *userid = userid_example; // Username (optional)
String *username = username_example; // Full Name (optional)
String *description = description_example; // Description (optional)
String *loglevel = loglevel_example; // Log Level (0: Error, 1: Warning, 2: Information, 3: Anomaly)
Note: Use a comma to separate entries. (optional) String *logid = logid_example; // Log ID
Note: Use a comma to separate entries. (optional) String *sensorname = sensorname_example; // Node Name of Policy Server (optional) String *extrainfo = extrainfo_example; // Remarks (optional) String *deptname = deptname_example; // Department (optional) String *qsearch = qsearch_example; // Qsearch (optional) String *ssid = ssid_example; // SSID (only radius log) (optional) String *nasmac = nasmac_example; // NAS MAC (only radius log) (optional) String *nasip = nasip_example; // NAS IP (only radius log) (optional) String *nasporttype = nasporttype_example; // NAS Port Type
Note: Use a comma to separate entries. (optional) String *nasport = nasport_example; // NAS Port (optional) String *radiuspolicy = radiuspolicy_example; // RADIUS POLICY (optional) LogsApi *apiInstance = [[LogsApi alloc] init]; // List Logs [apiInstance getLogsWith:page pageSize:pageSize logschema:logschema sort:sort auditlogTypes:auditlogTypes periodType:periodType startdate:startdate enddate:enddate logfilterid:logfilterid ip:ip mac:mac userid:userid username:username description:description loglevel:loglevel logid:logid sensorname:sensorname extrainfo:extrainfo deptname:deptname qsearch:qsearch ssid:ssid nasmac:nasmac nasip:nasip nasporttype:nasporttype nasport:nasport radiuspolicy:radiuspolicy completionHandler: ^(NSError* error) { if (error) { NSLog(@"Error: %@", error); } }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.LogsApi()

var page = 56; // {Integer} Results page to be retrieved

var pageSize = 56; // {Integer} Number of records per page

var logschema = logschema_example; // {String} Log Schema

var opts = { 
  'sort': sort_example, // {String} Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
  'auditlogTypes': , // {array[String]} Auditlog Type (Used when Type is selected as auditlog)
  'periodType': periodType_example, // {String} Period
  'startdate': startdate_example, // {String} Start Date + Time (yyyy-MM-dd HH:mm:ss)
  'enddate': enddate_example, // {String} End Date + Time (yyyy-MM-dd HH:mm:ss)
  'logfilterid': logfilterid_example, // {String} Log Filter ID
  'ip': ip_example, // {String} IP
  'mac': mac_example, // {String} MAC
  'userid': userid_example, // {String} Username
  'username': username_example, // {String} Full Name
  'description': description_example, // {String} Description
  'loglevel': loglevel_example, // {String} Log Level (0: Error, 1: Warning, 2: Information, 3: Anomaly)
Note: Use a comma to separate entries. 'logid': logid_example, // {String} Log ID
Note: Use a comma to separate entries. 'sensorname': sensorname_example, // {String} Node Name of Policy Server 'extrainfo': extrainfo_example, // {String} Remarks 'deptname': deptname_example, // {String} Department 'qsearch': qsearch_example, // {String} Qsearch 'ssid': ssid_example, // {String} SSID (only radius log) 'nasmac': nasmac_example, // {String} NAS MAC (only radius log) 'nasip': nasip_example, // {String} NAS IP (only radius log) 'nasporttype': nasporttype_example, // {String} NAS Port Type
Note: Use a comma to separate entries. 'nasport': nasport_example, // {String} NAS Port 'radiuspolicy': radiuspolicy_example // {String} RADIUS POLICY }; var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully.'); } }; api.getLogs(page, pageSize, logschema, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getLogsExample
    {
        public void main()
        {
            
            var apiInstance = new LogsApi();
            var page = 56;  // Integer | Results page to be retrieved (default to 1)
            var pageSize = 56;  // Integer | Number of records per page (default to 30)
            var logschema = logschema_example;  // String | Log Schema (default to auditlog)
            var sort = sort_example;  // String | Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional) 
            var auditlogTypes = new array[String](); // array[String] | Auditlog Type (Used when Type is selected as auditlog) (optional) 
            var periodType = periodType_example;  // String | Period (optional)  (default to custom)
            var startdate = startdate_example;  // String | Start Date + Time (yyyy-MM-dd HH:mm:ss) (optional) 
            var enddate = enddate_example;  // String | End Date + Time (yyyy-MM-dd HH:mm:ss) (optional) 
            var logfilterid = logfilterid_example;  // String | Log Filter ID (optional) 
            var ip = ip_example;  // String | IP (optional) 
            var mac = mac_example;  // String | MAC (optional) 
            var userid = userid_example;  // String | Username (optional) 
            var username = username_example;  // String | Full Name (optional) 
            var description = description_example;  // String | Description (optional) 
            var loglevel = loglevel_example;  // String | Log Level (0: Error, 1: Warning, 2: Information, 3: Anomaly)
Note: Use a comma to separate entries. (optional) var logid = logid_example; // String | Log ID
Note: Use a comma to separate entries. (optional) var sensorname = sensorname_example; // String | Node Name of Policy Server (optional) var extrainfo = extrainfo_example; // String | Remarks (optional) var deptname = deptname_example; // String | Department (optional) var qsearch = qsearch_example; // String | Qsearch (optional) var ssid = ssid_example; // String | SSID (only radius log) (optional) var nasmac = nasmac_example; // String | NAS MAC (only radius log) (optional) var nasip = nasip_example; // String | NAS IP (only radius log) (optional) var nasporttype = nasporttype_example; // String | NAS Port Type
Note: Use a comma to separate entries. (optional) var nasport = nasport_example; // String | NAS Port (optional) var radiuspolicy = radiuspolicy_example; // String | RADIUS POLICY (optional) try { // List Logs apiInstance.getLogs(page, pageSize, logschema, sort, auditlogTypes, periodType, startdate, enddate, logfilterid, ip, mac, userid, username, description, loglevel, logid, sensorname, extrainfo, deptname, qsearch, ssid, nasmac, nasip, nasporttype, nasport, radiuspolicy); } catch (Exception e) { Debug.Print("Exception when calling LogsApi.getLogs: " + e.Message ); } } } }
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LogsApi();
$page = 56; // Integer | Results page to be retrieved
$pageSize = 56; // Integer | Number of records per page
$logschema = logschema_example; // String | Log Schema
$sort = sort_example; // String | Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
$auditlogTypes = ; // array[String] | Auditlog Type (Used when Type is selected as auditlog)
$periodType = periodType_example; // String | Period
$startdate = startdate_example; // String | Start Date + Time (yyyy-MM-dd HH:mm:ss)
$enddate = enddate_example; // String | End Date + Time (yyyy-MM-dd HH:mm:ss)
$logfilterid = logfilterid_example; // String | Log Filter ID
$ip = ip_example; // String | IP
$mac = mac_example; // String | MAC
$userid = userid_example; // String | Username
$username = username_example; // String | Full Name
$description = description_example; // String | Description
$loglevel = loglevel_example; // String | Log Level (0: Error, 1: Warning, 2: Information, 3: Anomaly)
Note: Use a comma to separate entries. $logid = logid_example; // String | Log ID
Note: Use a comma to separate entries. $sensorname = sensorname_example; // String | Node Name of Policy Server $extrainfo = extrainfo_example; // String | Remarks $deptname = deptname_example; // String | Department $qsearch = qsearch_example; // String | Qsearch $ssid = ssid_example; // String | SSID (only radius log) $nasmac = nasmac_example; // String | NAS MAC (only radius log) $nasip = nasip_example; // String | NAS IP (only radius log) $nasporttype = nasporttype_example; // String | NAS Port Type
Note: Use a comma to separate entries. $nasport = nasport_example; // String | NAS Port $radiuspolicy = radiuspolicy_example; // String | RADIUS POLICY try { $api_instance->getLogs($page, $pageSize, $logschema, $sort, $auditlogTypes, $periodType, $startdate, $enddate, $logfilterid, $ip, $mac, $userid, $username, $description, $loglevel, $logid, $sensorname, $extrainfo, $deptname, $qsearch, $ssid, $nasmac, $nasip, $nasporttype, $nasport, $radiuspolicy); } catch (Exception $e) { echo 'Exception when calling LogsApi->getLogs: ', $e->getMessage(), PHP_EOL; } ?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LogsApi;

my $api_instance = WWW::SwaggerClient::LogsApi->new();
my $page = 56; # Integer | Results page to be retrieved
my $pageSize = 56; # Integer | Number of records per page
my $logschema = logschema_example; # String | Log Schema
my $sort = sort_example; # String | Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
my $auditlogTypes = []; # array[String] | Auditlog Type (Used when Type is selected as auditlog)
my $periodType = periodType_example; # String | Period
my $startdate = startdate_example; # String | Start Date + Time (yyyy-MM-dd HH:mm:ss)
my $enddate = enddate_example; # String | End Date + Time (yyyy-MM-dd HH:mm:ss)
my $logfilterid = logfilterid_example; # String | Log Filter ID
my $ip = ip_example; # String | IP
my $mac = mac_example; # String | MAC
my $userid = userid_example; # String | Username
my $username = username_example; # String | Full Name
my $description = description_example; # String | Description
my $loglevel = loglevel_example; # String | Log Level (0: Error, 1: Warning, 2: Information, 3: Anomaly)
Note: Use a comma to separate entries. my $logid = logid_example; # String | Log ID
Note: Use a comma to separate entries. my $sensorname = sensorname_example; # String | Node Name of Policy Server my $extrainfo = extrainfo_example; # String | Remarks my $deptname = deptname_example; # String | Department my $qsearch = qsearch_example; # String | Qsearch my $ssid = ssid_example; # String | SSID (only radius log) my $nasmac = nasmac_example; # String | NAS MAC (only radius log) my $nasip = nasip_example; # String | NAS IP (only radius log) my $nasporttype = nasporttype_example; # String | NAS Port Type
Note: Use a comma to separate entries. my $nasport = nasport_example; # String | NAS Port my $radiuspolicy = radiuspolicy_example; # String | RADIUS POLICY eval { $api_instance->getLogs(page => $page, pageSize => $pageSize, logschema => $logschema, sort => $sort, auditlogTypes => $auditlogTypes, periodType => $periodType, startdate => $startdate, enddate => $enddate, logfilterid => $logfilterid, ip => $ip, mac => $mac, userid => $userid, username => $username, description => $description, loglevel => $loglevel, logid => $logid, sensorname => $sensorname, extrainfo => $extrainfo, deptname => $deptname, qsearch => $qsearch, ssid => $ssid, nasmac => $nasmac, nasip => $nasip, nasporttype => $nasporttype, nasport => $nasport, radiuspolicy => $radiuspolicy); }; if ($@) { warn "Exception when calling LogsApi->getLogs: $@\n"; }
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LogsApi()
page = 56 # Integer | Results page to be retrieved (default to 1)
pageSize = 56 # Integer | Number of records per page (default to 30)
logschema = logschema_example # String | Log Schema (default to auditlog)
sort = sort_example # String | Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
auditlogTypes =  # array[String] | Auditlog Type (Used when Type is selected as auditlog) (optional)
periodType = periodType_example # String | Period (optional) (default to custom)
startdate = startdate_example # String | Start Date + Time (yyyy-MM-dd HH:mm:ss) (optional)
enddate = enddate_example # String | End Date + Time (yyyy-MM-dd HH:mm:ss) (optional)
logfilterid = logfilterid_example # String | Log Filter ID (optional)
ip = ip_example # String | IP (optional)
mac = mac_example # String | MAC (optional)
userid = userid_example # String | Username (optional)
username = username_example # String | Full Name (optional)
description = description_example # String | Description (optional)
loglevel = loglevel_example # String | Log Level (0: Error, 1: Warning, 2: Information, 3: Anomaly)
Note: Use a comma to separate entries. (optional) logid = logid_example # String | Log ID
Note: Use a comma to separate entries. (optional) sensorname = sensorname_example # String | Node Name of Policy Server (optional) extrainfo = extrainfo_example # String | Remarks (optional) deptname = deptname_example # String | Department (optional) qsearch = qsearch_example # String | Qsearch (optional) ssid = ssid_example # String | SSID (only radius log) (optional) nasmac = nasmac_example # String | NAS MAC (only radius log) (optional) nasip = nasip_example # String | NAS IP (only radius log) (optional) nasporttype = nasporttype_example # String | NAS Port Type
Note: Use a comma to separate entries. (optional) nasport = nasport_example # String | NAS Port (optional) radiuspolicy = radiuspolicy_example # String | RADIUS POLICY (optional) try: # List Logs api_instance.get_logs(page, pageSize, logschema, sort=sort, auditlogTypes=auditlogTypes, periodType=periodType, startdate=startdate, enddate=enddate, logfilterid=logfilterid, ip=ip, mac=mac, userid=userid, username=username, description=description, loglevel=loglevel, logid=logid, sensorname=sensorname, extrainfo=extrainfo, deptname=deptname, qsearch=qsearch, ssid=ssid, nasmac=nasmac, nasip=nasip, nasporttype=nasporttype, nasport=nasport, radiuspolicy=radiuspolicy) except ApiException as e: print("Exception when calling LogsApi->getLogs: %s\n" % e)

Parameters

Query parameters
Name Description
page*
Integer (int32)
Results page to be retrieved
Required
pageSize*
Integer (int32)
Number of records per page
Required
sort
String
Sort criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
logschema*
String
Log Schema
Required
auditlogTypes
array[String]
Auditlog Type (Used when Type is selected as auditlog)
periodType
String
Period
startdate
String
Start Date + Time (yyyy-MM-dd HH:mm:ss)
enddate
String
End Date + Time (yyyy-MM-dd HH:mm:ss)
logfilterid
String
Log Filter ID
ip
String
IP
mac
String
MAC
userid
String
Username
username
String
Full Name
description
String
Description
loglevel
String
Log Level (0: Error, 1: Warning, 2: Information, 3: Anomaly)<br/>Note: Use a comma to separate entries.
logid
String
Log ID<br/>Note: Use a comma to separate entries.
sensorname
String
Node Name of Policy Server
extrainfo
String
Remarks
deptname
String
Department
qsearch
String
Qsearch
ssid
String
SSID (only radius log)
nasmac
String
NAS MAC (only radius log)
nasip
String
NAS IP (only radius log)
nasporttype
String
NAS Port Type<br/>Note: Use a comma to separate entries.
nasport
String
NAS Port
radiuspolicy
String
RADIUS POLICY

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


updateLogfilter

Update an existing log filter

Updates an existing log filter.


/logs/filters

Usage and SDK Samples

curl -X PUT "https://localhost/mc2/rest/logs/filters"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LogsApi;

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

public class LogsApiExample {

    public static void main(String[] args) {
        
        LogsApi apiInstance = new LogsApi();
        LogFilterVo body = ; // LogFilterVo | Log Filter
        try {
            apiInstance.updateLogfilter(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogsApi#updateLogfilter");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LogsApi;

public class LogsApiExample {

    public static void main(String[] args) {
        LogsApi apiInstance = new LogsApi();
        LogFilterVo body = ; // LogFilterVo | Log Filter
        try {
            apiInstance.updateLogfilter(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling LogsApi#updateLogfilter");
            e.printStackTrace();
        }
    }
}
LogFilterVo *body = ; // Log Filter

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

// Update an existing log filter
[apiInstance updateLogfilterWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.LogsApi()

var body = ; // {LogFilterVo} Log Filter


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateLogfilter(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateLogfilterExample
    {
        public void main()
        {
            
            var apiInstance = new LogsApi();
            var body = new LogFilterVo(); // LogFilterVo | Log Filter

            try
            {
                // Update an existing log filter
                apiInstance.updateLogfilter(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LogsApi.updateLogfilter: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LogsApi();
$body = ; // LogFilterVo | Log Filter

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

my $api_instance = WWW::SwaggerClient::LogsApi->new();
my $body = WWW::SwaggerClient::Object::LogFilterVo->new(); # LogFilterVo | Log Filter

eval { 
    $api_instance->updateLogfilter(body => $body);
};
if ($@) {
    warn "Exception when calling LogsApi->updateLogfilter: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LogsApi()
body =  # LogFilterVo | Log Filter

try: 
    # Update an existing log filter
    api_instance.update_logfilter(body)
except ApiException as e:
    print("Exception when calling LogsApi->updateLogfilter: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found

Status: 500 - Internal Server Error


Mac

updateMACPolicy

Configure MAC Policy

Executable Commands<br/><br/>macdeny : Deny MAC<br/>macallow : Allow MAC - Disable Change Prevention<br/>appointblockipchange : Allow MAC - Enable Change Prevention (Allow Specified IP(s) - Specified IP(s) Network)<br/>blockipchange : Allow MAC - Enable Change Prevention (Allow Specified IP(s) - All Networks)


/mac/policies

Usage and SDK Samples

curl -X PUT "https://localhost/mc2/rest/mac/policies"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MacApi;

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

public class MacApiExample {

    public static void main(String[] args) {
        
        MacApi apiInstance = new MacApi();
        array[MAC Policy Value Object] body = ; // array[MAC Policy Value Object] | Policy Data
        try {
            Message Value Object result = apiInstance.updateMACPolicy(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MacApi#updateMACPolicy");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MacApi;

public class MacApiExample {

    public static void main(String[] args) {
        MacApi apiInstance = new MacApi();
        array[MAC Policy Value Object] body = ; // array[MAC Policy Value Object] | Policy Data
        try {
            Message Value Object result = apiInstance.updateMACPolicy(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MacApi#updateMACPolicy");
            e.printStackTrace();
        }
    }
}
array[MAC Policy Value Object] *body = ; // Policy Data

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

// Configure MAC Policy
[apiInstance updateMACPolicyWith:body
              completionHandler: ^(Message Value Object output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.MacApi()

var body = ; // {array[MAC Policy Value Object]} Policy Data


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

namespace Example
{
    public class updateMACPolicyExample
    {
        public void main()
        {
            
            var apiInstance = new MacApi();
            var body = new array[MAC Policy Value Object](); // array[MAC Policy Value Object] | Policy Data

            try
            {
                // Configure MAC Policy
                Message Value Object result = apiInstance.updateMACPolicy(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MacApi.updateMACPolicy: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\MacApi();
$body = ; // array[MAC Policy Value Object] | Policy Data

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

my $api_instance = WWW::SwaggerClient::MacApi->new();
my $body = [WWW::SwaggerClient::Object::array[MAC Policy Value Object]->new()]; # array[MAC Policy Value Object] | Policy Data

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

# create an instance of the API class
api_instance = swagger_client.MacApi()
body =  # array[MAC Policy Value Object] | Policy Data

try: 
    # Configure MAC Policy
    api_response = api_instance.update_mac_policy(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MacApi->updateMACPolicy: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 200 - OK

Status: 400 - Bad Request

Status: 500 - Internal Server Error


Nodegroups

createNodeGroup

Add a new Node Group

Adds a new Node Group.


/nodegroups

Usage and SDK Samples

curl -X POST "https://localhost/mc2/rest/nodegroups?policyAutoApply="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NodegroupsApi;

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

public class NodegroupsApiExample {

    public static void main(String[] args) {
        
        NodegroupsApi apiInstance = new NodegroupsApi();
        SubjVo body = ; // SubjVo | SubjVo JSON Data
        String policyAutoApply = policyAutoApply_example; // String | Policy auto apply
        try {
            apiInstance.createNodeGroup(body, policyAutoApply);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#createNodeGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NodegroupsApi;

public class NodegroupsApiExample {

    public static void main(String[] args) {
        NodegroupsApi apiInstance = new NodegroupsApi();
        SubjVo body = ; // SubjVo | SubjVo JSON Data
        String policyAutoApply = policyAutoApply_example; // String | Policy auto apply
        try {
            apiInstance.createNodeGroup(body, policyAutoApply);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#createNodeGroup");
            e.printStackTrace();
        }
    }
}
SubjVo *body = ; // SubjVo JSON Data
String *policyAutoApply = policyAutoApply_example; // Policy auto apply (optional) (default to 1)

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

// Add a new Node Group
[apiInstance createNodeGroupWith:body
    policyAutoApply:policyAutoApply
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.NodegroupsApi()

var body = ; // {SubjVo} SubjVo JSON Data

var opts = { 
  'policyAutoApply': policyAutoApply_example // {String} Policy auto apply
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createNodeGroup(body, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createNodeGroupExample
    {
        public void main()
        {
            
            var apiInstance = new NodegroupsApi();
            var body = new SubjVo(); // SubjVo | SubjVo JSON Data
            var policyAutoApply = policyAutoApply_example;  // String | Policy auto apply (optional)  (default to 1)

            try
            {
                // Add a new Node Group
                apiInstance.createNodeGroup(body, policyAutoApply);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NodegroupsApi.createNodeGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NodegroupsApi();
$body = ; // SubjVo | SubjVo JSON Data
$policyAutoApply = policyAutoApply_example; // String | Policy auto apply

try {
    $api_instance->createNodeGroup($body, $policyAutoApply);
} catch (Exception $e) {
    echo 'Exception when calling NodegroupsApi->createNodeGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NodegroupsApi;

my $api_instance = WWW::SwaggerClient::NodegroupsApi->new();
my $body = WWW::SwaggerClient::Object::SubjVo->new(); # SubjVo | SubjVo JSON Data
my $policyAutoApply = policyAutoApply_example; # String | Policy auto apply

eval { 
    $api_instance->createNodeGroup(body => $body, policyAutoApply => $policyAutoApply);
};
if ($@) {
    warn "Exception when calling NodegroupsApi->createNodeGroup: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NodegroupsApi()
body =  # SubjVo | SubjVo JSON Data
policyAutoApply = policyAutoApply_example # String | Policy auto apply (optional) (default to 1)

try: 
    # Add a new Node Group
    api_instance.create_node_group(body, policyAutoApply=policyAutoApply)
except ApiException as e:
    print("Exception when calling NodegroupsApi->createNodeGroup: %s\n" % e)

Parameters

Body parameters
Name Description
body *
Query parameters
Name Description
policyAutoApply
String
Policy auto apply

Responses

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 404 - Not Found

Status: 500 - Internal Server Error


createNodeGroupFilters

Assign a Condition

Assign a Condition to the Node Group specified.


/nodegroups/{id}/filters

Usage and SDK Samples

curl -X POST "https://localhost/mc2/rest/nodegroups/{id}/filters"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NodegroupsApi;

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

public class NodegroupsApiExample {

    public static void main(String[] args) {
        
        NodegroupsApi apiInstance = new NodegroupsApi();
        String id = id_example; // String | Node Group ID
        array[FilterVo] body = ; // array[FilterVo] | FilterVo List
        try {
            apiInstance.createNodeGroupFilters(id, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#createNodeGroupFilters");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NodegroupsApi;

public class NodegroupsApiExample {

    public static void main(String[] args) {
        NodegroupsApi apiInstance = new NodegroupsApi();
        String id = id_example; // String | Node Group ID
        array[FilterVo] body = ; // array[FilterVo] | FilterVo List
        try {
            apiInstance.createNodeGroupFilters(id, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#createNodeGroupFilters");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // Node Group ID
array[FilterVo] *body = ; // FilterVo List

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

// Assign a Condition
[apiInstance createNodeGroupFiltersWith:id
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.NodegroupsApi()

var id = id_example; // {String} Node Group ID

var body = ; // {array[FilterVo]} FilterVo List


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createNodeGroupFilters(id, body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createNodeGroupFiltersExample
    {
        public void main()
        {
            
            var apiInstance = new NodegroupsApi();
            var id = id_example;  // String | Node Group ID
            var body = new array[FilterVo](); // array[FilterVo] | FilterVo List

            try
            {
                // Assign a Condition
                apiInstance.createNodeGroupFilters(id, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NodegroupsApi.createNodeGroupFilters: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NodegroupsApi();
$id = id_example; // String | Node Group ID
$body = ; // array[FilterVo] | FilterVo List

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

my $api_instance = WWW::SwaggerClient::NodegroupsApi->new();
my $id = id_example; # String | Node Group ID
my $body = [WWW::SwaggerClient::Object::array[FilterVo]->new()]; # array[FilterVo] | FilterVo List

eval { 
    $api_instance->createNodeGroupFilters(id => $id, body => $body);
};
if ($@) {
    warn "Exception when calling NodegroupsApi->createNodeGroupFilters: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NodegroupsApi()
id = id_example # String | Node Group ID
body =  # array[FilterVo] | FilterVo List

try: 
    # Assign a Condition
    api_instance.create_node_group_filters(id, body)
except ApiException as e:
    print("Exception when calling NodegroupsApi->createNodeGroupFilters: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Node Group ID
Required
Body parameters
Name Description
body *

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


deleteNodeGroupFilters

Remove the Condition(s)

Removes the Condition(s) from the Node Group specified.


/nodegroups/{id}/filters

Usage and SDK Samples

curl -X DELETE "https://localhost/mc2/rest/nodegroups/{id}/filters"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NodegroupsApi;

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

public class NodegroupsApiExample {

    public static void main(String[] args) {
        
        NodegroupsApi apiInstance = new NodegroupsApi();
        String id = id_example; // String | SUBJ_ID
        array[FilterVo] body = ; // array[FilterVo] | FilterVo List
        try {
            apiInstance.deleteNodeGroupFilters(id, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#deleteNodeGroupFilters");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NodegroupsApi;

public class NodegroupsApiExample {

    public static void main(String[] args) {
        NodegroupsApi apiInstance = new NodegroupsApi();
        String id = id_example; // String | SUBJ_ID
        array[FilterVo] body = ; // array[FilterVo] | FilterVo List
        try {
            apiInstance.deleteNodeGroupFilters(id, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#deleteNodeGroupFilters");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // SUBJ_ID
array[FilterVo] *body = ; // FilterVo List

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

// Remove the Condition(s)
[apiInstance deleteNodeGroupFiltersWith:id
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.NodegroupsApi()

var id = id_example; // {String} SUBJ_ID

var body = ; // {array[FilterVo]} FilterVo List


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteNodeGroupFilters(id, body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteNodeGroupFiltersExample
    {
        public void main()
        {
            
            var apiInstance = new NodegroupsApi();
            var id = id_example;  // String | SUBJ_ID
            var body = new array[FilterVo](); // array[FilterVo] | FilterVo List

            try
            {
                // Remove the Condition(s)
                apiInstance.deleteNodeGroupFilters(id, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NodegroupsApi.deleteNodeGroupFilters: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NodegroupsApi();
$id = id_example; // String | SUBJ_ID
$body = ; // array[FilterVo] | FilterVo List

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

my $api_instance = WWW::SwaggerClient::NodegroupsApi->new();
my $id = id_example; # String | SUBJ_ID
my $body = [WWW::SwaggerClient::Object::array[FilterVo]->new()]; # array[FilterVo] | FilterVo List

eval { 
    $api_instance->deleteNodeGroupFilters(id => $id, body => $body);
};
if ($@) {
    warn "Exception when calling NodegroupsApi->deleteNodeGroupFilters: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NodegroupsApi()
id = id_example # String | SUBJ_ID
body =  # array[FilterVo] | FilterVo List

try: 
    # Remove the Condition(s)
    api_instance.delete_node_group_filters(id, body)
except ApiException as e:
    print("Exception when calling NodegroupsApi->deleteNodeGroupFilters: %s\n" % e)

Parameters

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

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


getFovoriteNodeGroups

List Widget Node Groups

Retrieves a list of the Node Groups assigned to the Node Group Widget.


/nodegroups/favorite

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/nodegroups/favorite"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NodegroupsApi;

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

public class NodegroupsApiExample {

    public static void main(String[] args) {
        
        NodegroupsApi apiInstance = new NodegroupsApi();
        try {
            apiInstance.getFovoriteNodeGroups();
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#getFovoriteNodeGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NodegroupsApi;

public class NodegroupsApiExample {

    public static void main(String[] args) {
        NodegroupsApi apiInstance = new NodegroupsApi();
        try {
            apiInstance.getFovoriteNodeGroups();
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#getFovoriteNodeGroups");
            e.printStackTrace();
        }
    }
}

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

// List Widget Node Groups
[apiInstance getFovoriteNodeGroupsWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.NodegroupsApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getFovoriteNodeGroups(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getFovoriteNodeGroupsExample
    {
        public void main()
        {
            
            var apiInstance = new NodegroupsApi();

            try
            {
                // List Widget Node Groups
                apiInstance.getFovoriteNodeGroups();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NodegroupsApi.getFovoriteNodeGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NodegroupsApi();

try {
    $api_instance->getFovoriteNodeGroups();
} catch (Exception $e) {
    echo 'Exception when calling NodegroupsApi->getFovoriteNodeGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NodegroupsApi;

my $api_instance = WWW::SwaggerClient::NodegroupsApi->new();

eval { 
    $api_instance->getFovoriteNodeGroups();
};
if ($@) {
    warn "Exception when calling NodegroupsApi->getFovoriteNodeGroups: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NodegroupsApi()

try: 
    # List Widget Node Groups
    api_instance.get_fovorite_node_groups()
except ApiException as e:
    print("Exception when calling NodegroupsApi->getFovoriteNodeGroups: %s\n" % e)

Parameters

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


getNodeGroup

Retrieve a specific Node Group's information

Retrieves the information of the Node Group specified.


/nodegroups/{id}

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/nodegroups/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NodegroupsApi;

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

public class NodegroupsApiExample {

    public static void main(String[] args) {
        
        NodegroupsApi apiInstance = new NodegroupsApi();
        String id = id_example; // String | SUBJ_ID
        try {
            SubjVo result = apiInstance.getNodeGroup(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#getNodeGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NodegroupsApi;

public class NodegroupsApiExample {

    public static void main(String[] args) {
        NodegroupsApi apiInstance = new NodegroupsApi();
        String id = id_example; // String | SUBJ_ID
        try {
            SubjVo result = apiInstance.getNodeGroup(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#getNodeGroup");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // SUBJ_ID

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

// Retrieve a specific Node Group's information
[apiInstance getNodeGroupWith:id
              completionHandler: ^(SubjVo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.NodegroupsApi()

var id = id_example; // {String} SUBJ_ID


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

namespace Example
{
    public class getNodeGroupExample
    {
        public void main()
        {
            
            var apiInstance = new NodegroupsApi();
            var id = id_example;  // String | SUBJ_ID

            try
            {
                // Retrieve a specific Node Group's information
                SubjVo result = apiInstance.getNodeGroup(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NodegroupsApi.getNodeGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NodegroupsApi();
$id = id_example; // String | SUBJ_ID

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

my $api_instance = WWW::SwaggerClient::NodegroupsApi->new();
my $id = id_example; # String | SUBJ_ID

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

# create an instance of the API class
api_instance = swagger_client.NodegroupsApi()
id = id_example # String | SUBJ_ID

try: 
    # Retrieve a specific Node Group's information
    api_response = api_instance.get_node_group(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NodegroupsApi->getNodeGroup: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
SUBJ_ID
Required

Responses

Status: 200 - successful operation

Status: 401 - Unauthorized

Status: 404 - Not Found


getNodeGroupDelete

Delete a specific Node Group

Deletes the Node Group specified.


/nodegroups/{id}

Usage and SDK Samples

curl -X DELETE "https://localhost/mc2/rest/nodegroups/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NodegroupsApi;

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

public class NodegroupsApiExample {

    public static void main(String[] args) {
        
        NodegroupsApi apiInstance = new NodegroupsApi();
        String id = id_example; // String | SUBJ_ID
        try {
            apiInstance.getNodeGroupDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#getNodeGroupDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NodegroupsApi;

public class NodegroupsApiExample {

    public static void main(String[] args) {
        NodegroupsApi apiInstance = new NodegroupsApi();
        String id = id_example; // String | SUBJ_ID
        try {
            apiInstance.getNodeGroupDelete(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#getNodeGroupDelete");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // SUBJ_ID

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

// Delete a specific Node Group
[apiInstance getNodeGroupDeleteWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.NodegroupsApi()

var id = id_example; // {String} SUBJ_ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getNodeGroupDelete(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getNodeGroupDeleteExample
    {
        public void main()
        {
            
            var apiInstance = new NodegroupsApi();
            var id = id_example;  // String | SUBJ_ID

            try
            {
                // Delete a specific Node Group
                apiInstance.getNodeGroupDelete(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NodegroupsApi.getNodeGroupDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NodegroupsApi();
$id = id_example; // String | SUBJ_ID

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

my $api_instance = WWW::SwaggerClient::NodegroupsApi->new();
my $id = id_example; # String | SUBJ_ID

eval { 
    $api_instance->getNodeGroupDelete(id => $id);
};
if ($@) {
    warn "Exception when calling NodegroupsApi->getNodeGroupDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NodegroupsApi()
id = id_example # String | SUBJ_ID

try: 
    # Delete a specific Node Group
    api_instance.get_node_group_delete(id)
except ApiException as e:
    print("Exception when calling NodegroupsApi->getNodeGroupDelete: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
SUBJ_ID
Required

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found

Status: 412 - Precondition Failed

Status: 500 - Internal Server Error


getNodeGroupFilters

Retrieve a specific Node Group's Condition(s)

Retrieves the Node Group(s) assigned to the Node Group specified.


/nodegroups/{id}/filters

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/nodegroups/{id}/filters"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NodegroupsApi;

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

public class NodegroupsApiExample {

    public static void main(String[] args) {
        
        NodegroupsApi apiInstance = new NodegroupsApi();
        String id = id_example; // String | SUBJ_ID
        try {
            apiInstance.getNodeGroupFilters(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#getNodeGroupFilters");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NodegroupsApi;

public class NodegroupsApiExample {

    public static void main(String[] args) {
        NodegroupsApi apiInstance = new NodegroupsApi();
        String id = id_example; // String | SUBJ_ID
        try {
            apiInstance.getNodeGroupFilters(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#getNodeGroupFilters");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // SUBJ_ID

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

// Retrieve a specific Node Group's Condition(s)
[apiInstance getNodeGroupFiltersWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.NodegroupsApi()

var id = id_example; // {String} SUBJ_ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getNodeGroupFilters(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getNodeGroupFiltersExample
    {
        public void main()
        {
            
            var apiInstance = new NodegroupsApi();
            var id = id_example;  // String | SUBJ_ID

            try
            {
                // Retrieve a specific Node Group's Condition(s)
                apiInstance.getNodeGroupFilters(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NodegroupsApi.getNodeGroupFilters: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NodegroupsApi();
$id = id_example; // String | SUBJ_ID

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

my $api_instance = WWW::SwaggerClient::NodegroupsApi->new();
my $id = id_example; # String | SUBJ_ID

eval { 
    $api_instance->getNodeGroupFilters(id => $id);
};
if ($@) {
    warn "Exception when calling NodegroupsApi->getNodeGroupFilters: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NodegroupsApi()
id = id_example # String | SUBJ_ID

try: 
    # Retrieve a specific Node Group's Condition(s)
    api_instance.get_node_group_filters(id)
except ApiException as e:
    print("Exception when calling NodegroupsApi->getNodeGroupFilters: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
SUBJ_ID
Required

Responses

Status: 401 - Unauthorized

Status: 404 - Not Found


getNodeGroups

List Node Groups

Retrieves a list of the Node Groups.


/nodegroups

Usage and SDK Samples

curl -X GET "https://localhost/mc2/rest/nodegroups?page=&pageSize=&sort=&qsearch=&id=&type=&name=&desc=&objGroupId=&v="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NodegroupsApi;

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

public class NodegroupsApiExample {

    public static void main(String[] args) {
        
        NodegroupsApi apiInstance = new NodegroupsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        String qsearch = qsearch_example; // String | Search string
        String id = id_example; // String | SUBJ_ID
        String type = type_example; // String | Type (1: Policy Group, 2: Status Group)
        String name = name_example; // String | ID
        String desc = desc_example; // String | Description
        String objGroupId = objGroupId_example; // String | Category
        String v = v_example; // String | Version
        try {
            SubjVo result = apiInstance.getNodeGroups(page, pageSize, sort, qsearch, id, type, name, desc, objGroupId, v);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#getNodeGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NodegroupsApi;

public class NodegroupsApiExample {

    public static void main(String[] args) {
        NodegroupsApi apiInstance = new NodegroupsApi();
        Integer page = 56; // Integer | Results page to be retrieved
        Integer pageSize = 56; // Integer | Number of records per page
        String sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
        String qsearch = qsearch_example; // String | Search string
        String id = id_example; // String | SUBJ_ID
        String type = type_example; // String | Type (1: Policy Group, 2: Status Group)
        String name = name_example; // String | ID
        String desc = desc_example; // String | Description
        String objGroupId = objGroupId_example; // String | Category
        String v = v_example; // String | Version
        try {
            SubjVo result = apiInstance.getNodeGroups(page, pageSize, sort, qsearch, id, type, name, desc, objGroupId, v);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#getNodeGroups");
            e.printStackTrace();
        }
    }
}
Integer *page = 56; // Results page to be retrieved (default to 1)
Integer *pageSize = 56; // Number of records per page (default to 30)
String *sort = sort_example; // Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
String *qsearch = qsearch_example; // Search string (optional)
String *id = id_example; // SUBJ_ID (optional)
String *type = type_example; // Type (1: Policy Group, 2: Status Group) (optional)
String *name = name_example; // ID (optional)
String *desc = desc_example; // Description (optional)
String *objGroupId = objGroupId_example; // Category (optional)
String *v = v_example; // Version (optional)

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

// List Node Groups
[apiInstance getNodeGroupsWith:page
    pageSize:pageSize
    sort:sort
    qsearch:qsearch
    id:id
    type:type
    name:name
    desc:desc
    objGroupId:objGroupId
    v:v
              completionHandler: ^(SubjVo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.NodegroupsApi()

var page = 56; // {Integer} Results page to be retrieved

var pageSize = 56; // {Integer} Number of records per page

var opts = { 
  'sort': sort_example, // {String} Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
  'qsearch': qsearch_example, // {String} Search string
  'id': id_example, // {String} SUBJ_ID
  'type': type_example, // {String} Type (1: Policy Group, 2: Status Group)
  'name': name_example, // {String} ID
  'desc': desc_example, // {String} Description
  'objGroupId': objGroupId_example, // {String} Category
  'v': v_example // {String} Version
};

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

namespace Example
{
    public class getNodeGroupsExample
    {
        public void main()
        {
            
            var apiInstance = new NodegroupsApi();
            var page = 56;  // Integer | Results page to be retrieved (default to 1)
            var pageSize = 56;  // Integer | Number of records per page (default to 30)
            var sort = sort_example;  // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional) 
            var qsearch = qsearch_example;  // String | Search string (optional) 
            var id = id_example;  // String | SUBJ_ID (optional) 
            var type = type_example;  // String | Type (1: Policy Group, 2: Status Group) (optional) 
            var name = name_example;  // String | ID (optional) 
            var desc = desc_example;  // String | Description (optional) 
            var objGroupId = objGroupId_example;  // String | Category (optional) 
            var v = v_example;  // String | Version (optional) 

            try
            {
                // List Node Groups
                SubjVo result = apiInstance.getNodeGroups(page, pageSize, sort, qsearch, id, type, name, desc, objGroupId, v);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NodegroupsApi.getNodeGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NodegroupsApi();
$page = 56; // Integer | Results page to be retrieved
$pageSize = 56; // Integer | Number of records per page
$sort = sort_example; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
$qsearch = qsearch_example; // String | Search string
$id = id_example; // String | SUBJ_ID
$type = type_example; // String | Type (1: Policy Group, 2: Status Group)
$name = name_example; // String | ID
$desc = desc_example; // String | Description
$objGroupId = objGroupId_example; // String | Category
$v = v_example; // String | Version

try {
    $result = $api_instance->getNodeGroups($page, $pageSize, $sort, $qsearch, $id, $type, $name, $desc, $objGroupId, $v);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NodegroupsApi->getNodeGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NodegroupsApi;

my $api_instance = WWW::SwaggerClient::NodegroupsApi->new();
my $page = 56; # Integer | Results page to be retrieved
my $pageSize = 56; # Integer | Number of records per page
my $sort = sort_example; # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
my $qsearch = qsearch_example; # String | Search string
my $id = id_example; # String | SUBJ_ID
my $type = type_example; # String | Type (1: Policy Group, 2: Status Group)
my $name = name_example; # String | ID
my $desc = desc_example; # String | Description
my $objGroupId = objGroupId_example; # String | Category
my $v = v_example; # String | Version

eval { 
    my $result = $api_instance->getNodeGroups(page => $page, pageSize => $pageSize, sort => $sort, qsearch => $qsearch, id => $id, type => $type, name => $name, desc => $desc, objGroupId => $objGroupId, v => $v);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NodegroupsApi->getNodeGroups: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NodegroupsApi()
page = 56 # Integer | Results page to be retrieved (default to 1)
pageSize = 56 # Integer | Number of records per page (default to 30)
sort = sort_example # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
qsearch = qsearch_example # String | Search string (optional)
id = id_example # String | SUBJ_ID (optional)
type = type_example # String | Type (1: Policy Group, 2: Status Group) (optional)
name = name_example # String | ID (optional)
desc = desc_example # String | Description (optional)
objGroupId = objGroupId_example # String | Category (optional)
v = v_example # String | Version (optional)

try: 
    # List Node Groups
    api_response = api_instance.get_node_groups(page, pageSize, sort=sort, qsearch=qsearch, id=id, type=type, name=name, desc=desc, objGroupId=objGroupId, v=v)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NodegroupsApi->getNodeGroups: %s\n" % e)

Parameters

Query parameters
Name Description
page*
Integer (int32)
Results page to be retrieved
Required
pageSize*
Integer (int32)
Number of records per page
Required
sort
String
Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
qsearch
String
Search string
id
String
SUBJ_ID
type
String
Type (1: Policy Group, 2: Status Group)
name
String
ID
desc
String
Description
objGroupId
String
Category
v
String
Version

Responses

Status: 200 - successful operation

Status: 401 - Unauthorized

Status: 404 - Not Found


updateNodeGroup

Update an existing Node Group

Updates an existing Node Group.


/nodegroups/{id}

Usage and SDK Samples

curl -X PUT "https://localhost/mc2/rest/nodegroups/{id}?policyAutoApply="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NodegroupsApi;

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

public class NodegroupsApiExample {

    public static void main(String[] args) {
        
        NodegroupsApi apiInstance = new NodegroupsApi();
        SubjVo body = ; // SubjVo | SubjVo JSON Data
        String policyAutoApply = policyAutoApply_example; // String | Policy auto apply
        try {
            apiInstance.updateNodeGroup(body, policyAutoApply);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#updateNodeGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NodegroupsApi;

public class NodegroupsApiExample {

    public static void main(String[] args) {
        NodegroupsApi apiInstance = new NodegroupsApi();
        SubjVo body = ; // SubjVo | SubjVo JSON Data
        String policyAutoApply = policyAutoApply_example; // String | Policy auto apply
        try {
            apiInstance.updateNodeGroup(body, policyAutoApply);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodegroupsApi#updateNodeGroup");
            e.printStackTrace();
        }
    }
}
SubjVo *body = ; // SubjVo JSON Data
String *policyAutoApply = policyAutoApply_example; // Policy auto apply (optional) (default to 1)

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

// Update an existing Node Group
[apiInstance updateNodeGroupWith:body
    policyAutoApply:policyAutoApply
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.NodegroupsApi()

var body = ; // {SubjVo} SubjVo JSON Data

var opts = { 
  'policyAutoApply': policyAutoApply_example // {String} Policy auto apply
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateNodeGroup(body, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateNodeGroupExample
    {
        public void main()
        {
            
            var apiInstance = new NodegroupsApi();
            var body = new SubjVo(); // SubjVo | SubjVo JSON Data
            var policyAutoApply = policyAutoApply_example;  // String | Policy auto apply (optional)  (default to 1)

            try
            {
                // Update an existing Node Group
                apiInstance.updateNodeGroup(body, policyAutoApply);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NodegroupsApi.updateNodeGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NodegroupsApi();
$body = ; // SubjVo | SubjVo JSON Data
$policyAutoApply = policyAutoApply_example; // String | Policy auto apply

try {
    $api_instance->updateNodeGroup($body, $policyAutoApply);
} catch (Exception $e) {
    echo 'Exception when calling NodegroupsApi->updateNodeGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NodegroupsApi;

my $api_instance = WWW::SwaggerClient::NodegroupsApi->new();
my $body = WWW::SwaggerClient::Object::SubjVo->new(); # SubjVo | SubjVo JSON Data
my $policyAutoApply = policyAutoApply_example; # String | Policy auto apply

eval { 
    $api_instance->updateNodeGroup(body => $body, policyAutoApply => $policyAutoApply);
};
if ($@) {
    warn "Exception when calling NodegroupsApi->updateNodeGroup: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NodegroupsApi()
body =  # SubjVo | SubjVo JSON Data
policyAutoApply = policyAutoApply_example # String | Policy auto apply (optional) (default to 1)

try: 
    # Update an existing Node Group
    api_instance.update_node_group(body, policyAutoApply=policyAutoApply)
except ApiException as e:
    print("Exception when calling NodegroupsApi->updateNodeGroup: %s\n" % e)

Parameters

Body parameters
Name Description
body *
Query parameters
Name Description
policyAutoApply
String
Policy auto apply

Responses

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 404 - Not Found

Status: 500 - Internal Server Error


Nodes

auth

Require a specific IP (MAC)'s User Authentication

Requires the User Authentication of the IP (MAC) specified.


/nodes/auth

Usage and SDK Samples

curl -X POST "https://localhost/mc2/rest/nodes/auth"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NodesApi;

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

public class NodesApiExample {

    public static void main(String[] args) {
        
        NodesApi apiInstance = new NodesApi();
        String userId = userId_example; // String | Username (USER_ID)
        String passCheck = passCheck_example; // String | Password check (1: Check, Leave blank not to check)
        String scope = scope_example; // String | Scope
singleUpNode: A single UP Node, allUpNode: All UP Nodes, singleNode: A single Node, allNode: All Nodes String passwd = passwd_example; // String | Password String ip = ip_example; // String | IP String mac = mac_example; // String | MAC try { apiInstance.auth(userId, passCheck, scope, passwd, ip, mac); } catch (ApiException e) { System.err.println("Exception when calling NodesApi#auth"); e.printStackTrace(); } } }
import io.swagger.client.api.NodesApi;

public class NodesApiExample {

    public static void main(String[] args) {
        NodesApi apiInstance = new NodesApi();
        String userId = userId_example; // String | Username (USER_ID)
        String passCheck = passCheck_example; // String | Password check (1: Check, Leave blank not to check)
        String scope = scope_example; // String | Scope
singleUpNode: A single UP Node, allUpNode: All UP Nodes, singleNode: A single Node, allNode: All Nodes String passwd = passwd_example; // String | Password String ip = ip_example; // String | IP String mac = mac_example; // String | MAC try { apiInstance.auth(userId, passCheck, scope, passwd, ip, mac); } catch (ApiException e) { System.err.println("Exception when calling NodesApi#auth"); e.printStackTrace(); } } }
String *userId = userId_example; // Username (USER_ID)
String *passCheck = passCheck_example; // Password check (1: Check, Leave blank not to check) (default to 1)
String *scope = scope_example; // Scope
singleUpNode: A single UP Node, allUpNode: All UP Nodes, singleNode: A single Node, allNode: All Nodes (default to allUpNode) String *passwd = passwd_example; // Password (optional) String *ip = ip_example; // IP (optional) String *mac = mac_example; // MAC (optional) NodesApi *apiInstance = [[NodesApi alloc] init]; // Require a specific IP (MAC)'s User Authentication [apiInstance authWith:userId passCheck:passCheck scope:scope passwd:passwd ip:ip mac:mac completionHandler: ^(NSError* error) { if (error) { NSLog(@"Error: %@", error); } }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.NodesApi()

var userId = userId_example; // {String} Username (USER_ID)

var passCheck = passCheck_example; // {String} Password check (1: Check, Leave blank not to check)

var scope = scope_example; // {String} Scope
singleUpNode: A single UP Node, allUpNode: All UP Nodes, singleNode: A single Node, allNode: All Nodes var opts = { 'passwd': passwd_example, // {String} Password 'ip': ip_example, // {String} IP 'mac': mac_example // {String} MAC }; var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully.'); } }; api.auth(userId, passCheck, scope, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class authExample
    {
        public void main()
        {
            
            var apiInstance = new NodesApi();
            var userId = userId_example;  // String | Username (USER_ID)
            var passCheck = passCheck_example;  // String | Password check (1: Check, Leave blank not to check) (default to 1)
            var scope = scope_example;  // String | Scope
singleUpNode: A single UP Node, allUpNode: All UP Nodes, singleNode: A single Node, allNode: All Nodes (default to allUpNode) var passwd = passwd_example; // String | Password (optional) var ip = ip_example; // String | IP (optional) var mac = mac_example; // String | MAC (optional) try { // Require a specific IP (MAC)'s User Authentication apiInstance.auth(userId, passCheck, scope, passwd, ip, mac); } catch (Exception e) { Debug.Print("Exception when calling NodesApi.auth: " + e.Message ); } } } }
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NodesApi();
$userId = userId_example; // String | Username (USER_ID)
$passCheck = passCheck_example; // String | Password check (1: Check, Leave blank not to check)
$scope = scope_example; // String | Scope
singleUpNode: A single UP Node, allUpNode: All UP Nodes, singleNode: A single Node, allNode: All Nodes $passwd = passwd_example; // String | Password $ip = ip_example; // String | IP $mac = mac_example; // String | MAC try { $api_instance->auth($userId, $passCheck, $scope, $passwd, $ip, $mac); } catch (Exception $e) { echo 'Exception when calling NodesApi->auth: ', $e->getMessage(), PHP_EOL; } ?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NodesApi;

my $api_instance = WWW::SwaggerClient::NodesApi->new();
my $userId = userId_example; # String | Username (USER_ID)
my $passCheck = passCheck_example; # String | Password check (1: Check, Leave blank not to check)
my $scope = scope_example; # String | Scope
singleUpNode: A single UP Node, allUpNode: All UP Nodes, singleNode: A single Node, allNode: All Nodes my $passwd = passwd_example; # String | Password my $ip = ip_example; # String | IP my $mac = mac_example; # String | MAC eval { $api_instance->auth(userId => $userId, passCheck => $passCheck, scope => $scope, passwd => $passwd, ip => $ip, mac => $mac); }; if ($@) { warn "Exception when calling NodesApi->auth: $@\n"; }
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NodesApi()
userId = userId_example # String | Username (USER_ID)
passCheck = passCheck_example # String | Password check (1: Check, Leave blank not to check) (default to 1)
scope = scope_example # String | Scope
singleUpNode: A single UP Node, allUpNode: All UP Nodes, singleNode: A single Node, allNode: All Nodes (default to allUpNode) passwd = passwd_example # String | Password (optional) ip = ip_example # String | IP (optional) mac = mac_example # String | MAC (optional) try: # Require a specific IP (MAC)'s User Authentication api_instance.auth(userId, passCheck, scope, passwd=passwd, ip=ip, mac=mac) except ApiException as e: print("Exception when calling NodesApi->auth: %s\n" % e)

Parameters

Form parameters
Name Description
userId*
String
Username (USER_ID)
Required
passwd
String
Password
ip
String
IP
mac
String
MAC
passCheck*
String
Password check (1: Check, Leave blank not to check)
Required
scope*
String
Scope<br/>singleUpNode: A single UP Node, allUpNode: All UP Nodes, singleNode: A single Node, allNode: All Nodes
Required

Responses

Status: 206 - Partial Content

Status: 401 - Unauthorized

Status: 404 - Not Found

Status: 406 - Not Acceptable

Status: 500 - Internal Server Error


commandToNode

Run a specific Node's Task

Runs the Task of the Node specified.


/nodes/{nodeId}/{cmd}

Usage and SDK Samples

curl -X PUT "https://localhost/mc2/rest/nodes/{nodeId}/{cmd}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NodesApi;

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

public class NodesApiExample {

    public static void main(String[] args) {
        
        NodesApi apiInstance = new NodesApi();
        String nodeId = nodeId_example; // String | Node ID
        String cmd = cmd_example; // String | Task (ipDeny: Deny IP, ipAllow: Allow IP, ipProtect: Enable IP Change Prevention, ipFixAuthUser: Enable Hostname Policy, ipUnFixAuthUser: Require User Authentication, ipUnFixHostName: Clear Hostname Policy Settings, macDeny: Deny MAC, macAllow: Allow MAC)
        String comment = comment_example; // String | Description
        try {
            apiInstance.commandToNode(nodeId, cmd, comment);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodesApi#commandToNode");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NodesApi;

public class NodesApiExample {

    public static void main(String[] args) {
        NodesApi apiInstance = new NodesApi();
        String nodeId = nodeId_example; // String | Node ID
        String cmd = cmd_example; // String | Task (ipDeny: Deny IP, ipAllow: Allow IP, ipProtect: Enable IP Change Prevention, ipFixAuthUser: Enable Hostname Policy, ipUnFixAuthUser: Require User Authentication, ipUnFixHostName: Clear Hostname Policy Settings, macDeny: Deny MAC, macAllow: Allow MAC)
        String comment = comment_example; // String | Description
        try {
            apiInstance.commandToNode(nodeId, cmd, comment);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodesApi#commandToNode");
            e.printStackTrace();
        }
    }
}
String *nodeId = nodeId_example; // Node ID
String *cmd = cmd_example; // Task (ipDeny: Deny IP, ipAllow: Allow IP, ipProtect: Enable IP Change Prevention, ipFixAuthUser: Enable Hostname Policy, ipUnFixAuthUser: Require User Authentication, ipUnFixHostName: Clear Hostname Policy Settings, macDeny: Deny MAC, macAllow: Allow MAC)
String *comment = comment_example; // Description (optional)

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

// Run a specific Node's Task
[apiInstance commandToNodeWith:nodeId
    cmd:cmd
    comment:comment
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.NodesApi()

var nodeId = nodeId_example; // {String} Node ID

var cmd = cmd_example; // {String} Task (ipDeny: Deny IP, ipAllow: Allow IP, ipProtect: Enable IP Change Prevention, ipFixAuthUser: Enable Hostname Policy, ipUnFixAuthUser: Require User Authentication, ipUnFixHostName: Clear Hostname Policy Settings, macDeny: Deny MAC, macAllow: Allow MAC)

var opts = { 
  'comment': comment_example // {String} Description
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.commandToNode(nodeId, cmd, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class commandToNodeExample
    {
        public void main()
        {
            
            var apiInstance = new NodesApi();
            var nodeId = nodeId_example;  // String | Node ID
            var cmd = cmd_example;  // String | Task (ipDeny: Deny IP, ipAllow: Allow IP, ipProtect: Enable IP Change Prevention, ipFixAuthUser: Enable Hostname Policy, ipUnFixAuthUser: Require User Authentication, ipUnFixHostName: Clear Hostname Policy Settings, macDeny: Deny MAC, macAllow: Allow MAC)
            var comment = comment_example;  // String | Description (optional) 

            try
            {
                // Run a specific Node's Task
                apiInstance.commandToNode(nodeId, cmd, comment);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NodesApi.commandToNode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NodesApi();
$nodeId = nodeId_example; // String | Node ID
$cmd = cmd_example; // String | Task (ipDeny: Deny IP, ipAllow: Allow IP, ipProtect: Enable IP Change Prevention, ipFixAuthUser: Enable Hostname Policy, ipUnFixAuthUser: Require User Authentication, ipUnFixHostName: Clear Hostname Policy Settings, macDeny: Deny MAC, macAllow: Allow MAC)
$comment = comment_example; // String | Description

try {
    $api_instance->commandToNode($nodeId, $cmd, $comment);
} catch (Exception $e) {
    echo 'Exception when calling NodesApi->commandToNode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NodesApi;

my $api_instance = WWW::SwaggerClient::NodesApi->new();
my $nodeId = nodeId_example; # String | Node ID
my $cmd = cmd_example; # String | Task (ipDeny: Deny IP, ipAllow: Allow IP, ipProtect: Enable IP Change Prevention, ipFixAuthUser: Enable Hostname Policy, ipUnFixAuthUser: Require User Authentication, ipUnFixHostName: Clear Hostname Policy Settings, macDeny: Deny MAC, macAllow: Allow MAC)
my $comment = comment_example; # String | Description

eval { 
    $api_instance->commandToNode(nodeId => $nodeId, cmd => $cmd, comment => $comment);
};
if ($@) {
    warn "Exception when calling NodesApi->commandToNode: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NodesApi()
nodeId = nodeId_example # String | Node ID
cmd = cmd_example # String | Task (ipDeny: Deny IP, ipAllow: Allow IP, ipProtect: Enable IP Change Prevention, ipFixAuthUser: Enable Hostname Policy, ipUnFixAuthUser: Require User Authentication, ipUnFixHostName: Clear Hostname Policy Settings, macDeny: Deny MAC, macAllow: Allow MAC)
comment = comment_example # String | Description (optional)

try: 
    # Run a specific Node's Task
    api_instance.command_to_node(nodeId, cmd, comment=comment)
except ApiException as e:
    print("Exception when calling NodesApi->commandToNode: %s\n" % e)

Parameters

Path parameters
Name Description
nodeId*
String
Node ID
Required
cmd*
String
Task (ipDeny: Deny IP, ipAllow: Allow IP, ipProtect: Enable IP Change Prevention, ipFixAuthUser: Enable Hostname Policy, ipUnFixAuthUser: Require User Authentication, ipUnFixHostName: Clear Hostname Policy Settings, macDeny: Deny MAC, macAllow: Allow MAC)
Required
Form parameters
Name Description
comment
String
Description

Responses

Status: 401 - Unauthorized

Status: 404 - Node Not Found

Status: 500 - Internal Server Error


commandsToNodes

Run a specific Node's Task

Runs the Task of the Node specified.


/nodes/commands

Usage and SDK Samples

curl -X PUT "https://localhost/mc2/rest/nodes/commands"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.NodesApi;

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

public class NodesApiExample {

    public static void main(String[] args) {
        
        NodesApi apiInstance = new NodesApi();
        array[Node Commands Value Object] body = ; // array[Node Commands Value Object] | Commands Data
        try {
            apiInstance.commandsToNodes(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodesApi#commandsToNodes");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.NodesApi;

public class NodesApiExample {

    public static void main(String[] args) {
        NodesApi apiInstance = new NodesApi();
        array[Node Commands Value Object] body = ; // array[Node Commands Value Object] | Commands Data
        try {
            apiInstance.commandsToNodes(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling NodesApi#commandsToNodes");
            e.printStackTrace();
        }
    }
}
array[Node Commands Value Object] *body = ; // Commands Data

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

// Run a specific Node's Task
[apiInstance commandsToNodesWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GenianNacRestApi = require('genian_nac_rest_api');

var api = new GenianNacRestApi.NodesApi()

var body = ; // {array[Node Commands Value Object]} Commands Data


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.commandsToNodes(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class commandsToNodesExample
    {
        public void main()
        {
            
            var apiInstance = new NodesApi();
            var body = new array[Node Commands Value Object](); // array[Node Commands Value Object] | Commands Data

            try
            {
                // Run a specific Node's Task
                apiInstance.commandsToNodes(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling NodesApi.commandsToNodes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\NodesApi();
$body = ; // array[Node Commands Value Object] | Commands Data

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

my $api_instance = WWW::SwaggerClient::NodesApi->new();
my $body = [WWW::SwaggerClient::Object::array[Node Commands Value Object]->new()]; # array[Node Commands Value Object] | Commands Data

eval { 
    $api_instance->commandsToNodes(body => $body);
};
if ($@) {
    warn "Exception when calling NodesApi->commandsToNodes: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.NodesApi()
body =  # array[Node Commands Value Object] | Commands Data

try: 
    # Run a specific Node's Task
    api_instance.commands_to_nodes(body)
except ApiException as e:
    print("Exception when calling NodesApi->commandsToNodes: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 401 - Unauthorized

Status: 404 - Node Not Found

Status: 500 - Internal Server Error


createNodeTagsOfNode

Assign a tag

Assigns a tag to the Node specified.


/nodes/{nodeId}/tags

Usage and SDK Samples

curl -X POST "https://localhost/mc2/rest/nodes/{nodeId}/tags?applyAgent="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io