Retrieves a list of the Nodes.<br/><br/>To find several nodes by IP in one call, pass an IPv4 range or CIDR to <code>qsearch</code>. A comma-separated IP list is not supported. The search also matches other columns, so filter the result by <code>NL_IPSTR</code>.<br/><pre>curl -k -G "https://{Policy Server Management IP}/mc2/rest/nodes" --data-urlencode "apiKey={Key}" --data-urlencode "qsearch=192.168.1.2-192.168.1.7" --data-urlencode "pageSize=1000"</pre>To find the nodes that have a node tag, pass the tag name to <code>nodeproperty</code>.<br/><pre>curl -k -G "https://{Policy Server Management IP}/mc2/rest/nodes" --data-urlencode "apiKey={Key}" --data-urlencode "nodeproperty=TAG_A"</pre>Response: <code>{"result": [...], "total": N, "page": 1, "pageSize": 30}</code>. Each row has <code>NL_NODEID</code> (Node ID) and <code>NL_IPSTR</code> (IP). Node tags are not included in the rows; use <code>/nodes/{nodeId}/tags?type=node</code> or <code>nodeproperty</code>. The default page size is 30, so compare <code>total</code> and request the next <code>page</code> when needed.
curl -X GET "https://localhost/mc2/rest/nodes?page=&pageSize=&sort=&view=&subjid=&perspective=&licenseLimitExceededTime=&nid=&authdept=&deptcode=&authuser=&authuserExact=&property=&nodeproperty=&macproperty=&systemid=&roleid=&genidev=&genidevs=&agentType=&agentUpDown=&ipEqual=&ip=&macEqual=&mac=&riskNode=&riskDefinitionId=&beforeLoginTime=&qsearch=&ipUseOption="
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();
Integer page = 1; // Integer | Results page to be retrieved
Integer pageSize = 30; // Integer | Number of records per page
String view = node; // String | Views (summary: Overview, node: Node View, authuser: Authenticated User View, ipmgmt: IPAM View, risk: Anomaly View, pms: OS Update View, sms: Asset Management View, aa: Agent Action View, mediamgmt: External Device View)
String sort = {"field":"NL_IPSTR","dir":"asc"}; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
String subjid = 50; // String | Node Group (SUBJ_ID)
String perspective = node; // String | View Criteria (node, dev)
String licenseLimitExceededTime = 2026-11-10 10:00:00; // String | Device registration time (yyyy-MM-dd HH:mm:ss). Nodes whose device was added after this time are returned with licenseLimitNode "1".
String nid = All; // String | Retrieval Scope (Node ID: Policy Server / Sensor Node ID, All: All, ObjGroup: Group)
String authdept = Sales; // String | Authenticated user's department name (equal search on NODELIST's NL_AUTHUSERDEPTNAME column)
String deptcode = D001; // String | Authenticated user's department code (like search on USER's USER_DEPT column to include sub-departments)
String authuser = user01; // String | Authenticated user ID and user name included
String authuserExact = user01; // String | Authenticated user ID
String property = TAG_A; // String | Tag name (Node, MAC). Tag ID is not supported.
String nodeproperty = TAG_A; // String | Node tag name. Returns the nodes that have this node tag. Tag ID is not supported.
String macproperty = TAG_A; // String | MAC Tag
String systemid = 1; // String | Node Policy (SYSTEM_ID)
String roleid = 1; // String | Enforcement Policy (ROLE_ID)
String genidev = 2; // String | Node Type (CM_CODE)
String genidevs = 1,2; // String | Node Types (CM_CODEs separated by comma)
String agentType = agent_inst; // String | Agent installed (agent_inst: Installed, agent_noinst: Not installed)
String agentUpDown = UP; // String | Agent running (UP, DOWN)
Boolean ipEqual = true; // Boolean | IP Match Full
String ip = 192.168.1.2; // String | IP. Single value only. Partial match unless ipEqual is true. Use qsearch for an IP range or CIDR.
Boolean macEqual = true; // Boolean | MAC Match Full
String mac = 00:11:22:33:44:55; // String | MAC
Boolean riskNode = true; // Boolean | Anomalies detected
String riskDefinitionId = 1; // String | Anomaly Definition
String beforeLoginTime = 2026-11-10 10:00:00; // String | Logged in (yyyy-MM-dd hh:mm:ss)
String qsearch = 192.168.1.0/24; // String | Search string. Also accepts an IPv4 range (192.168.1.2-192.168.1.7) or CIDR (192.168.1.0/24).
String ipUseOption = use; // String | IP state (all: All, use: Assigned, unuse: Available)
try {
NodeListDoc result = apiInstance.getNodes(page, pageSize, view, sort, subjid, perspective, licenseLimitExceededTime, nid, authdept, deptcode, authuser, authuserExact, property, nodeproperty, macproperty, systemid, roleid, genidev, genidevs, agentType, agentUpDown, ipEqual, ip, macEqual, mac, riskNode, riskDefinitionId, beforeLoginTime, qsearch, ipUseOption);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NodesApi#getNodes");
e.printStackTrace();
}
}
}
import io.swagger.client.api.NodesApi;
public class NodesApiExample {
public static void main(String[] args) {
NodesApi apiInstance = new NodesApi();
Integer page = 1; // Integer | Results page to be retrieved
Integer pageSize = 30; // Integer | Number of records per page
String view = node; // String | Views (summary: Overview, node: Node View, authuser: Authenticated User View, ipmgmt: IPAM View, risk: Anomaly View, pms: OS Update View, sms: Asset Management View, aa: Agent Action View, mediamgmt: External Device View)
String sort = {"field":"NL_IPSTR","dir":"asc"}; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
String subjid = 50; // String | Node Group (SUBJ_ID)
String perspective = node; // String | View Criteria (node, dev)
String licenseLimitExceededTime = 2026-11-10 10:00:00; // String | Device registration time (yyyy-MM-dd HH:mm:ss). Nodes whose device was added after this time are returned with licenseLimitNode "1".
String nid = All; // String | Retrieval Scope (Node ID: Policy Server / Sensor Node ID, All: All, ObjGroup: Group)
String authdept = Sales; // String | Authenticated user's department name (equal search on NODELIST's NL_AUTHUSERDEPTNAME column)
String deptcode = D001; // String | Authenticated user's department code (like search on USER's USER_DEPT column to include sub-departments)
String authuser = user01; // String | Authenticated user ID and user name included
String authuserExact = user01; // String | Authenticated user ID
String property = TAG_A; // String | Tag name (Node, MAC). Tag ID is not supported.
String nodeproperty = TAG_A; // String | Node tag name. Returns the nodes that have this node tag. Tag ID is not supported.
String macproperty = TAG_A; // String | MAC Tag
String systemid = 1; // String | Node Policy (SYSTEM_ID)
String roleid = 1; // String | Enforcement Policy (ROLE_ID)
String genidev = 2; // String | Node Type (CM_CODE)
String genidevs = 1,2; // String | Node Types (CM_CODEs separated by comma)
String agentType = agent_inst; // String | Agent installed (agent_inst: Installed, agent_noinst: Not installed)
String agentUpDown = UP; // String | Agent running (UP, DOWN)
Boolean ipEqual = true; // Boolean | IP Match Full
String ip = 192.168.1.2; // String | IP. Single value only. Partial match unless ipEqual is true. Use qsearch for an IP range or CIDR.
Boolean macEqual = true; // Boolean | MAC Match Full
String mac = 00:11:22:33:44:55; // String | MAC
Boolean riskNode = true; // Boolean | Anomalies detected
String riskDefinitionId = 1; // String | Anomaly Definition
String beforeLoginTime = 2026-11-10 10:00:00; // String | Logged in (yyyy-MM-dd hh:mm:ss)
String qsearch = 192.168.1.0/24; // String | Search string. Also accepts an IPv4 range (192.168.1.2-192.168.1.7) or CIDR (192.168.1.0/24).
String ipUseOption = use; // String | IP state (all: All, use: Assigned, unuse: Available)
try {
NodeListDoc result = apiInstance.getNodes(page, pageSize, view, sort, subjid, perspective, licenseLimitExceededTime, nid, authdept, deptcode, authuser, authuserExact, property, nodeproperty, macproperty, systemid, roleid, genidev, genidevs, agentType, agentUpDown, ipEqual, ip, macEqual, mac, riskNode, riskDefinitionId, beforeLoginTime, qsearch, ipUseOption);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NodesApi#getNodes");
e.printStackTrace();
}
}
}
Integer *page = 1; // Results page to be retrieved (default to 1)
Integer *pageSize = 30; // Number of records per page (default to 30)
String *view = node; // Views (summary: Overview, node: Node View, authuser: Authenticated User View, ipmgmt: IPAM View, risk: Anomaly View, pms: OS Update View, sms: Asset Management View, aa: Agent Action View, mediamgmt: External Device View) (default to node)
String *sort = {"field":"NL_IPSTR","dir":"asc"}; // Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
String *subjid = 50; // Node Group (SUBJ_ID) (optional)
String *perspective = node; // View Criteria (node, dev) (optional)
String *licenseLimitExceededTime = 2026-11-10 10:00:00; // Device registration time (yyyy-MM-dd HH:mm:ss). Nodes whose device was added after this time are returned with licenseLimitNode "1". (optional)
String *nid = All; // Retrieval Scope (Node ID: Policy Server / Sensor Node ID, All: All, ObjGroup: Group) (optional) (default to All)
String *authdept = Sales; // Authenticated user's department name (equal search on NODELIST's NL_AUTHUSERDEPTNAME column) (optional)
String *deptcode = D001; // Authenticated user's department code (like search on USER's USER_DEPT column to include sub-departments) (optional)
String *authuser = user01; // Authenticated user ID and user name included (optional)
String *authuserExact = user01; // Authenticated user ID (optional)
String *property = TAG_A; // Tag name (Node, MAC). Tag ID is not supported. (optional)
String *nodeproperty = TAG_A; // Node tag name. Returns the nodes that have this node tag. Tag ID is not supported. (optional)
String *macproperty = TAG_A; // MAC Tag (optional)
String *systemid = 1; // Node Policy (SYSTEM_ID) (optional)
String *roleid = 1; // Enforcement Policy (ROLE_ID) (optional)
String *genidev = 2; // Node Type (CM_CODE) (optional)
String *genidevs = 1,2; // Node Types (CM_CODEs separated by comma) (optional)
String *agentType = agent_inst; // Agent installed (agent_inst: Installed, agent_noinst: Not installed) (optional)
String *agentUpDown = UP; // Agent running (UP, DOWN) (optional)
Boolean *ipEqual = true; // IP Match Full (optional) (default to false)
String *ip = 192.168.1.2; // IP. Single value only. Partial match unless ipEqual is true. Use qsearch for an IP range or CIDR. (optional)
Boolean *macEqual = true; // MAC Match Full (optional) (default to false)
String *mac = 00:11:22:33:44:55; // MAC (optional)
Boolean *riskNode = true; // Anomalies detected (optional)
String *riskDefinitionId = 1; // Anomaly Definition (optional)
String *beforeLoginTime = 2026-11-10 10:00:00; // Logged in (yyyy-MM-dd hh:mm:ss) (optional)
String *qsearch = 192.168.1.0/24; // Search string. Also accepts an IPv4 range (192.168.1.2-192.168.1.7) or CIDR (192.168.1.0/24). (optional)
String *ipUseOption = use; // IP state (all: All, use: Assigned, unuse: Available) (optional)
NodesApi *apiInstance = [[NodesApi alloc] init];
// List Nodes
[apiInstance getNodesWith:page
pageSize:pageSize
view:view
sort:sort
subjid:subjid
perspective:perspective
licenseLimitExceededTime:licenseLimitExceededTime
nid:nid
authdept:authdept
deptcode:deptcode
authuser:authuser
authuserExact:authuserExact
property:property
nodeproperty:nodeproperty
macproperty:macproperty
systemid:systemid
roleid:roleid
genidev:genidev
genidevs:genidevs
agentType:agentType
agentUpDown:agentUpDown
ipEqual:ipEqual
ip:ip
macEqual:macEqual
mac:mac
riskNode:riskNode
riskDefinitionId:riskDefinitionId
beforeLoginTime:beforeLoginTime
qsearch:qsearch
ipUseOption:ipUseOption
completionHandler: ^(NodeListDoc output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var GenianNacRestApi = require('genian_nac_rest_api');
var api = new GenianNacRestApi.NodesApi()
var page = 1; // {Integer} Results page to be retrieved
var pageSize = 30; // {Integer} Number of records per page
var view = node; // {String} Views (summary: Overview, node: Node View, authuser: Authenticated User View, ipmgmt: IPAM View, risk: Anomaly View, pms: OS Update View, sms: Asset Management View, aa: Agent Action View, mediamgmt: External Device View)
var opts = {
'sort': {"field":"NL_IPSTR","dir":"asc"}, // {String} Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
'subjid': 50, // {String} Node Group (SUBJ_ID)
'perspective': node, // {String} View Criteria (node, dev)
'licenseLimitExceededTime': 2026-11-10 10:00:00, // {String} Device registration time (yyyy-MM-dd HH:mm:ss). Nodes whose device was added after this time are returned with licenseLimitNode "1".
'nid': All, // {String} Retrieval Scope (Node ID: Policy Server / Sensor Node ID, All: All, ObjGroup: Group)
'authdept': Sales, // {String} Authenticated user's department name (equal search on NODELIST's NL_AUTHUSERDEPTNAME column)
'deptcode': D001, // {String} Authenticated user's department code (like search on USER's USER_DEPT column to include sub-departments)
'authuser': user01, // {String} Authenticated user ID and user name included
'authuserExact': user01, // {String} Authenticated user ID
'property': TAG_A, // {String} Tag name (Node, MAC). Tag ID is not supported.
'nodeproperty': TAG_A, // {String} Node tag name. Returns the nodes that have this node tag. Tag ID is not supported.
'macproperty': TAG_A, // {String} MAC Tag
'systemid': 1, // {String} Node Policy (SYSTEM_ID)
'roleid': 1, // {String} Enforcement Policy (ROLE_ID)
'genidev': 2, // {String} Node Type (CM_CODE)
'genidevs': 1,2, // {String} Node Types (CM_CODEs separated by comma)
'agentType': agent_inst, // {String} Agent installed (agent_inst: Installed, agent_noinst: Not installed)
'agentUpDown': UP, // {String} Agent running (UP, DOWN)
'ipEqual': true, // {Boolean} IP Match Full
'ip': 192.168.1.2, // {String} IP. Single value only. Partial match unless ipEqual is true. Use qsearch for an IP range or CIDR.
'macEqual': true, // {Boolean} MAC Match Full
'mac': 00:11:22:33:44:55, // {String} MAC
'riskNode': true, // {Boolean} Anomalies detected
'riskDefinitionId': 1, // {String} Anomaly Definition
'beforeLoginTime': 2026-11-10 10:00:00, // {String} Logged in (yyyy-MM-dd hh:mm:ss)
'qsearch': 192.168.1.0/24, // {String} Search string. Also accepts an IPv4 range (192.168.1.2-192.168.1.7) or CIDR (192.168.1.0/24).
'ipUseOption': use // {String} IP state (all: All, use: Assigned, unuse: Available)
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getNodes(page, pageSize, view, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getNodesExample
{
public void main()
{
var apiInstance = new NodesApi();
var page = 1; // Integer | Results page to be retrieved (default to 1)
var pageSize = 30; // Integer | Number of records per page (default to 30)
var view = node; // String | Views (summary: Overview, node: Node View, authuser: Authenticated User View, ipmgmt: IPAM View, risk: Anomaly View, pms: OS Update View, sms: Asset Management View, aa: Agent Action View, mediamgmt: External Device View) (default to node)
var sort = {"field":"NL_IPSTR","dir":"asc"}; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
var subjid = 50; // String | Node Group (SUBJ_ID) (optional)
var perspective = node; // String | View Criteria (node, dev) (optional)
var licenseLimitExceededTime = 2026-11-10 10:00:00; // String | Device registration time (yyyy-MM-dd HH:mm:ss). Nodes whose device was added after this time are returned with licenseLimitNode "1". (optional)
var nid = All; // String | Retrieval Scope (Node ID: Policy Server / Sensor Node ID, All: All, ObjGroup: Group) (optional) (default to All)
var authdept = Sales; // String | Authenticated user's department name (equal search on NODELIST's NL_AUTHUSERDEPTNAME column) (optional)
var deptcode = D001; // String | Authenticated user's department code (like search on USER's USER_DEPT column to include sub-departments) (optional)
var authuser = user01; // String | Authenticated user ID and user name included (optional)
var authuserExact = user01; // String | Authenticated user ID (optional)
var property = TAG_A; // String | Tag name (Node, MAC). Tag ID is not supported. (optional)
var nodeproperty = TAG_A; // String | Node tag name. Returns the nodes that have this node tag. Tag ID is not supported. (optional)
var macproperty = TAG_A; // String | MAC Tag (optional)
var systemid = 1; // String | Node Policy (SYSTEM_ID) (optional)
var roleid = 1; // String | Enforcement Policy (ROLE_ID) (optional)
var genidev = 2; // String | Node Type (CM_CODE) (optional)
var genidevs = 1,2; // String | Node Types (CM_CODEs separated by comma) (optional)
var agentType = agent_inst; // String | Agent installed (agent_inst: Installed, agent_noinst: Not installed) (optional)
var agentUpDown = UP; // String | Agent running (UP, DOWN) (optional)
var ipEqual = true; // Boolean | IP Match Full (optional) (default to false)
var ip = 192.168.1.2; // String | IP. Single value only. Partial match unless ipEqual is true. Use qsearch for an IP range or CIDR. (optional)
var macEqual = true; // Boolean | MAC Match Full (optional) (default to false)
var mac = 00:11:22:33:44:55; // String | MAC (optional)
var riskNode = true; // Boolean | Anomalies detected (optional)
var riskDefinitionId = 1; // String | Anomaly Definition (optional)
var beforeLoginTime = 2026-11-10 10:00:00; // String | Logged in (yyyy-MM-dd hh:mm:ss) (optional)
var qsearch = 192.168.1.0/24; // String | Search string. Also accepts an IPv4 range (192.168.1.2-192.168.1.7) or CIDR (192.168.1.0/24). (optional)
var ipUseOption = use; // String | IP state (all: All, use: Assigned, unuse: Available) (optional)
try
{
// List Nodes
NodeListDoc result = apiInstance.getNodes(page, pageSize, view, sort, subjid, perspective, licenseLimitExceededTime, nid, authdept, deptcode, authuser, authuserExact, property, nodeproperty, macproperty, systemid, roleid, genidev, genidevs, agentType, agentUpDown, ipEqual, ip, macEqual, mac, riskNode, riskDefinitionId, beforeLoginTime, qsearch, ipUseOption);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling NodesApi.getNodes: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\NodesApi();
$page = 1; // Integer | Results page to be retrieved
$pageSize = 30; // Integer | Number of records per page
$view = node; // String | Views (summary: Overview, node: Node View, authuser: Authenticated User View, ipmgmt: IPAM View, risk: Anomaly View, pms: OS Update View, sms: Asset Management View, aa: Agent Action View, mediamgmt: External Device View)
$sort = {"field":"NL_IPSTR","dir":"asc"}; // String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
$subjid = 50; // String | Node Group (SUBJ_ID)
$perspective = node; // String | View Criteria (node, dev)
$licenseLimitExceededTime = 2026-11-10 10:00:00; // String | Device registration time (yyyy-MM-dd HH:mm:ss). Nodes whose device was added after this time are returned with licenseLimitNode "1".
$nid = All; // String | Retrieval Scope (Node ID: Policy Server / Sensor Node ID, All: All, ObjGroup: Group)
$authdept = Sales; // String | Authenticated user's department name (equal search on NODELIST's NL_AUTHUSERDEPTNAME column)
$deptcode = D001; // String | Authenticated user's department code (like search on USER's USER_DEPT column to include sub-departments)
$authuser = user01; // String | Authenticated user ID and user name included
$authuserExact = user01; // String | Authenticated user ID
$property = TAG_A; // String | Tag name (Node, MAC). Tag ID is not supported.
$nodeproperty = TAG_A; // String | Node tag name. Returns the nodes that have this node tag. Tag ID is not supported.
$macproperty = TAG_A; // String | MAC Tag
$systemid = 1; // String | Node Policy (SYSTEM_ID)
$roleid = 1; // String | Enforcement Policy (ROLE_ID)
$genidev = 2; // String | Node Type (CM_CODE)
$genidevs = 1,2; // String | Node Types (CM_CODEs separated by comma)
$agentType = agent_inst; // String | Agent installed (agent_inst: Installed, agent_noinst: Not installed)
$agentUpDown = UP; // String | Agent running (UP, DOWN)
$ipEqual = true; // Boolean | IP Match Full
$ip = 192.168.1.2; // String | IP. Single value only. Partial match unless ipEqual is true. Use qsearch for an IP range or CIDR.
$macEqual = true; // Boolean | MAC Match Full
$mac = 00:11:22:33:44:55; // String | MAC
$riskNode = true; // Boolean | Anomalies detected
$riskDefinitionId = 1; // String | Anomaly Definition
$beforeLoginTime = 2026-11-10 10:00:00; // String | Logged in (yyyy-MM-dd hh:mm:ss)
$qsearch = 192.168.1.0/24; // String | Search string. Also accepts an IPv4 range (192.168.1.2-192.168.1.7) or CIDR (192.168.1.0/24).
$ipUseOption = use; // String | IP state (all: All, use: Assigned, unuse: Available)
try {
$result = $api_instance->getNodes($page, $pageSize, $view, $sort, $subjid, $perspective, $licenseLimitExceededTime, $nid, $authdept, $deptcode, $authuser, $authuserExact, $property, $nodeproperty, $macproperty, $systemid, $roleid, $genidev, $genidevs, $agentType, $agentUpDown, $ipEqual, $ip, $macEqual, $mac, $riskNode, $riskDefinitionId, $beforeLoginTime, $qsearch, $ipUseOption);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NodesApi->getNodes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::NodesApi;
my $api_instance = WWW::SwaggerClient::NodesApi->new();
my $page = 1; # Integer | Results page to be retrieved
my $pageSize = 30; # Integer | Number of records per page
my $view = node; # String | Views (summary: Overview, node: Node View, authuser: Authenticated User View, ipmgmt: IPAM View, risk: Anomaly View, pms: OS Update View, sms: Asset Management View, aa: Agent Action View, mediamgmt: External Device View)
my $sort = {"field":"NL_IPSTR","dir":"asc"}; # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"})
my $subjid = 50; # String | Node Group (SUBJ_ID)
my $perspective = node; # String | View Criteria (node, dev)
my $licenseLimitExceededTime = 2026-11-10 10:00:00; # String | Device registration time (yyyy-MM-dd HH:mm:ss). Nodes whose device was added after this time are returned with licenseLimitNode "1".
my $nid = All; # String | Retrieval Scope (Node ID: Policy Server / Sensor Node ID, All: All, ObjGroup: Group)
my $authdept = Sales; # String | Authenticated user's department name (equal search on NODELIST's NL_AUTHUSERDEPTNAME column)
my $deptcode = D001; # String | Authenticated user's department code (like search on USER's USER_DEPT column to include sub-departments)
my $authuser = user01; # String | Authenticated user ID and user name included
my $authuserExact = user01; # String | Authenticated user ID
my $property = TAG_A; # String | Tag name (Node, MAC). Tag ID is not supported.
my $nodeproperty = TAG_A; # String | Node tag name. Returns the nodes that have this node tag. Tag ID is not supported.
my $macproperty = TAG_A; # String | MAC Tag
my $systemid = 1; # String | Node Policy (SYSTEM_ID)
my $roleid = 1; # String | Enforcement Policy (ROLE_ID)
my $genidev = 2; # String | Node Type (CM_CODE)
my $genidevs = 1,2; # String | Node Types (CM_CODEs separated by comma)
my $agentType = agent_inst; # String | Agent installed (agent_inst: Installed, agent_noinst: Not installed)
my $agentUpDown = UP; # String | Agent running (UP, DOWN)
my $ipEqual = true; # Boolean | IP Match Full
my $ip = 192.168.1.2; # String | IP. Single value only. Partial match unless ipEqual is true. Use qsearch for an IP range or CIDR.
my $macEqual = true; # Boolean | MAC Match Full
my $mac = 00:11:22:33:44:55; # String | MAC
my $riskNode = true; # Boolean | Anomalies detected
my $riskDefinitionId = 1; # String | Anomaly Definition
my $beforeLoginTime = 2026-11-10 10:00:00; # String | Logged in (yyyy-MM-dd hh:mm:ss)
my $qsearch = 192.168.1.0/24; # String | Search string. Also accepts an IPv4 range (192.168.1.2-192.168.1.7) or CIDR (192.168.1.0/24).
my $ipUseOption = use; # String | IP state (all: All, use: Assigned, unuse: Available)
eval {
my $result = $api_instance->getNodes(page => $page, pageSize => $pageSize, view => $view, sort => $sort, subjid => $subjid, perspective => $perspective, licenseLimitExceededTime => $licenseLimitExceededTime, nid => $nid, authdept => $authdept, deptcode => $deptcode, authuser => $authuser, authuserExact => $authuserExact, property => $property, nodeproperty => $nodeproperty, macproperty => $macproperty, systemid => $systemid, roleid => $roleid, genidev => $genidev, genidevs => $genidevs, agentType => $agentType, agentUpDown => $agentUpDown, ipEqual => $ipEqual, ip => $ip, macEqual => $macEqual, mac => $mac, riskNode => $riskNode, riskDefinitionId => $riskDefinitionId, beforeLoginTime => $beforeLoginTime, qsearch => $qsearch, ipUseOption => $ipUseOption);
print Dumper($result);
};
if ($@) {
warn "Exception when calling NodesApi->getNodes: $@\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()
page = 1 # Integer | Results page to be retrieved (default to 1)
pageSize = 30 # Integer | Number of records per page (default to 30)
view = node # String | Views (summary: Overview, node: Node View, authuser: Authenticated User View, ipmgmt: IPAM View, risk: Anomaly View, pms: OS Update View, sms: Asset Management View, aa: Agent Action View, mediamgmt: External Device View) (default to node)
sort = {"field":"NL_IPSTR","dir":"asc"} # String | Sorting criteria in the JSON ({"field": "ColumnName", "dir": "Direction"}) (optional)
subjid = 50 # String | Node Group (SUBJ_ID) (optional)
perspective = node # String | View Criteria (node, dev) (optional)
licenseLimitExceededTime = 2026-11-10 10:00:00 # String | Device registration time (yyyy-MM-dd HH:mm:ss). Nodes whose device was added after this time are returned with licenseLimitNode "1". (optional)
nid = All # String | Retrieval Scope (Node ID: Policy Server / Sensor Node ID, All: All, ObjGroup: Group) (optional) (default to All)
authdept = Sales # String | Authenticated user's department name (equal search on NODELIST's NL_AUTHUSERDEPTNAME column) (optional)
deptcode = D001 # String | Authenticated user's department code (like search on USER's USER_DEPT column to include sub-departments) (optional)
authuser = user01 # String | Authenticated user ID and user name included (optional)
authuserExact = user01 # String | Authenticated user ID (optional)
property = TAG_A # String | Tag name (Node, MAC). Tag ID is not supported. (optional)
nodeproperty = TAG_A # String | Node tag name. Returns the nodes that have this node tag. Tag ID is not supported. (optional)
macproperty = TAG_A # String | MAC Tag (optional)
systemid = 1 # String | Node Policy (SYSTEM_ID) (optional)
roleid = 1 # String | Enforcement Policy (ROLE_ID) (optional)
genidev = 2 # String | Node Type (CM_CODE) (optional)
genidevs = 1,2 # String | Node Types (CM_CODEs separated by comma) (optional)
agentType = agent_inst # String | Agent installed (agent_inst: Installed, agent_noinst: Not installed) (optional)
agentUpDown = UP # String | Agent running (UP, DOWN) (optional)
ipEqual = true # Boolean | IP Match Full (optional) (default to false)
ip = 192.168.1.2 # String | IP. Single value only. Partial match unless ipEqual is true. Use qsearch for an IP range or CIDR. (optional)
macEqual = true # Boolean | MAC Match Full (optional) (default to false)
mac = 00:11:22:33:44:55 # String | MAC (optional)
riskNode = true # Boolean | Anomalies detected (optional)
riskDefinitionId = 1 # String | Anomaly Definition (optional)
beforeLoginTime = 2026-11-10 10:00:00 # String | Logged in (yyyy-MM-dd hh:mm:ss) (optional)
qsearch = 192.168.1.0/24 # String | Search string. Also accepts an IPv4 range (192.168.1.2-192.168.1.7) or CIDR (192.168.1.0/24). (optional)
ipUseOption = use # String | IP state (all: All, use: Assigned, unuse: Available) (optional)
try:
# List Nodes
api_response = api_instance.get_nodes(page, pageSize, view, sort=sort, subjid=subjid, perspective=perspective, licenseLimitExceededTime=licenseLimitExceededTime, nid=nid, authdept=authdept, deptcode=deptcode, authuser=authuser, authuserExact=authuserExact, property=property, nodeproperty=nodeproperty, macproperty=macproperty, systemid=systemid, roleid=roleid, genidev=genidev, genidevs=genidevs, agentType=agentType, agentUpDown=agentUpDown, ipEqual=ipEqual, ip=ip, macEqual=macEqual, mac=mac, riskNode=riskNode, riskDefinitionId=riskDefinitionId, beforeLoginTime=beforeLoginTime, qsearch=qsearch, ipUseOption=ipUseOption)
pprint(api_response)
except ApiException as e:
print("Exception when calling NodesApi->getNodes: %s\n" % e)