Resource: application
This resource deals with general application
http://{device}/api/npm.classification/3.2/applications/items/{id}
{ "created": string, "definitions": { "items": [ app_definition_3_0 ], <prop>: any }, "desc": string, "enabled": boolean, "id": number, "include_dpi_tags": boolean, "last_modified": string, "last_modified_username": string, "name": string, "priority": integer, "traffic_match_mode": string }
Property Name | Type | Description | Notes |
---|---|---|---|
application | <object> | This resource deals with general application | Required properties: [name]; |
application.created | <string> | Time (seconds from epoch) at which the rule was first created | Optional; |
application.definitions | <object> | Optional; | |
application.definitions.items | <array of <app_definition_3_0>> | Optional; | |
application.definitions.items[items] | <app_definition_3_0> | ||
application.definitions.<prop> | <any> | Optional; | |
application.desc | <string> | Describes the General Application Definition | Optional; |
application.enabled | <boolean> | Status of this General Application Definition - enabled/disabled | Optional; |
application.id | <number> | Unique ID generated by the backend for this General Application Definition | Optional; |
application.include_dpi_tags | <boolean> | Indicates whether to track auto-recognized applications | Optional; |
application.last_modified | <string> | Time (seconds from epoch) at which the rule was last modified | Optional; |
application.last_modified_username | <string> | The last user to modify this rule | Optional; |
application.name | <string> | Unique case sensitive name of General Application Definition | |
application.priority | <integer> | Application priority used in case the traffic can be associated only with a single application, lower the value the higher the priority | Optional; |
application.traffic_match_mode | <string> | mode to configure traffic match | Optional; Values: HIGH, MEDIUM, LOW; |
Links
application: delete
Deletes the general application that matches the ID provided
DELETE http://{device}/api/npm.classification/3.2/applications/items/{id}Response Body
On success, the server does not provide any body in the responses.
application: get
Reads and returns a general application for the ID provided
GET http://{device}/api/npm.classification/3.2/applications/items/{id}Response Body
Returns an application data object.
application: set
Updates the general application that matches the ID provided
PUT http://{device}/api/npm.classification/3.2/applications/items/{id}Request Body
Provide an application data object.
Response BodyReturns an application data object.
Resource: applications
This resource deals with collection of general applications
http://{device}/api/npm.classification/3.2/applications
{ "items": [ application ] }
Property Name | Type | Description | Notes |
---|---|---|---|
applications | <object> | This resource deals with collection of general applications | |
applications.items | <array of <application>> | Optional; | |
applications.items[items] | <application> | This resource deals with general application |
Links
applications: bulk_create
Creates a collection of general applications, assigns an unique ID to each and adds these to the general applications. A collection of general applications with their IDs is returned
POST http://{device}/api/npm.classification/3.2/applications/bulk_createRequest Body
Provide an applications data object.
Response BodyReturns an applications data object.
applications: bulk_delete
Deletes all general applications or the general applications that match the IDs provided
POST http://{device}/api/npm.classification/3.2/applications/bulk_deleteRequest Body
Provide a bulk_deleter data object.
Response BodyReturns a bulk_deleter data object.
applications: create
Creates a new general application and adds it to the collection of general applications
POST http://{device}/api/npm.classification/3.2/applicationsRequest Body
Provide an application data object.
Response BodyReturns an application data object.
applications: get
Reads and returns all general applications
GET http://{device}/api/npm.classification/3.2/applicationsResponse Body
Returns an applications data object.
applications: merge
Merges the existing general applications with the provided general applications using the name as key
POST http://{device}/api/npm.classification/3.2/applications/mergeRequest Body
Provide an applications data object.
Response BodyReturns an applications data object.
Resource: hostgroup
This resource deals with Host Group
http://{device}/api/npm.classification/3.2/hostgroups/items/{id}
{ "created": string, "desc": string, "enabled": boolean, "hosts": host_list, "id": number, "in_speed": number, "in_speed_unit": speed_unit, "last_modified": string, "last_modified_username": string, "member_hostgroups": id_list, "member_hostgroups_names": [ string ], "name": string, "out_speed": number, "out_speed_unit": speed_unit, <prop>: any }
Property Name | Type | Description | Notes |
---|---|---|---|
hostgroup | <object> | This resource deals with Host Group | |
hostgroup.created | <string> | Time (seconds from epoch) at which the Host Group was first created | Optional; |
hostgroup.desc | <string> | Description of Host Group | Optional; |
hostgroup.enabled | <boolean> | Status of the Host Group - enabled/disabled | Optional; |
hostgroup.hosts | <host_list> | List of hosts(e.g. x.x.x.x, x.x.x.x/prefix), host-ranges(e.g. x.x.x.x-y.y.y.y, x.x.x.x/prefix-y.y.y.y/prefix) | |
hostgroup.id | <number> | Unique ID assigned by the backend | Read-only; Optional; |
hostgroup.in_speed | <number> | Inbound Utilization | Optional; |
hostgroup.in_speed_unit | <speed_unit> | Unit of Network Traffic Speed | Values: kbps, Mbps, Gbps; |
hostgroup.last_modified | <string> | Time (seconds from epoch) at which the Host Group was last modified | Optional; |
hostgroup.last_modified_username | <string> | The last user to modify this rule | Optional; |
hostgroup.member_hostgroups | <id_list> | List of IDs | |
hostgroup.member_hostgroups_names | <array of <string>> | List of Host Group names | Optional; |
hostgroup.member_hostgroups_names[items] | <string> | ||
hostgroup.name | <string> | Unique name of Host Group | Optional; |
hostgroup.out_speed | <number> | Outbound Utilization | Optional; |
hostgroup.out_speed_unit | <speed_unit> | Unit of Network Traffic Speed | Values: kbps, Mbps, Gbps; |
hostgroup.<prop> | <any> | Optional; |
Links
hostgroup: delete
Deletes the Host Group matching the ID from the configuration
DELETE http://{device}/api/npm.classification/3.2/hostgroups/items/{id}Response Body
On success, the server does not provide any body in the responses.
hostgroup: get
Returns the Host Group from the configuration that matches the ID
GET http://{device}/api/npm.classification/3.2/hostgroups/items/{id}Response Body
Returns a hostgroup data object.
Resource: hostgroups
This resource deals with Host Groups
http://{device}/api/npm.classification/3.2/hostgroups
{ "items": [ hostgroup ], <prop>: any }
Property Name | Type | Description | Notes |
---|---|---|---|
hostgroups | <object> | This resource deals with Host Groups | |
hostgroups.items | <array of <hostgroup>> | Optional; | |
hostgroups.items[items] | <hostgroup> | This resource deals with Host Group | |
hostgroups.<prop> | <any> | Optional; |
Links
hostgroups: bulk_create
Creates multiple Host Groups, assigns an unique ID to each and adds these to the Host Group configuration. If any individual Host Group creation fails, the complete request is failed. A collection Host Group with all newly created Host Groups is returned
POST http://{device}/api/npm.classification/3.2/hostgroups/bulk_createRequest Body
Provide a hostgroups data object.
Response BodyReturns a hostgroups data object.
hostgroups: bulk_delete
Deletes all Host Groups or Host Groups with IDs provided
POST http://{device}/api/npm.classification/3.2/hostgroups/bulk_deleteRequest Body
Provide a bulk_deleter data object.
Response BodyReturns a bulk_deleter data object.
hostgroups: bulk_hierarchy
Creates parent-child hierarchy between Host Groups in bulk mode
POST http://{device}/api/npm.classification/3.2/hostgroups/bulk_hierarchyRequest Body
Provide a hostgroups data object.
Response BodyReturns a hostgroups data object.
hostgroups: create
Creates a new Host Group, assigns it an ID, adds it to the hostgroup configuration and returns the new Host Group with it's ID set
POST http://{device}/api/npm.classification/3.2/hostgroupsRequest Body
Provide a hostgroup data object.
Response BodyReturns a hostgroup data object.
hostgroups: get
Reads the Host Group configuration and returns it as a Host Groups collection
GET http://{device}/api/npm.classification/3.2/hostgroupsResponse Body
Returns a hostgroups data object.
hostgroups: merge
Merges the existing Host Groups with the provided Host Groups using the name as key
POST http://{device}/api/npm.classification/3.2/hostgroups/mergeRequest Body
Provide a hostgroups data object.
Response BodyReturns a hostgroups data object.
Resource: url
This resource deals with url application
http://{device}/api/npm.classification/3.2/urls/items/{id}
{ "created": string, "desc": string, "enabled": boolean, "id": number, "last_modified": string, "last_modified_username": string, "name": string, "preferred": boolean, "urls": [ string ] }
Property Name | Type | Description | Notes |
---|---|---|---|
url | <object> | This resource deals with url application | Required properties: [name, urls]; |
url.created | <string> | Time (seconds from epoch) at which the rule was first created | Optional; |
url.desc | <string> | Optional; | |
url.enabled | <boolean> | Optional; | |
url.id | <number> | Optional; | |
url.last_modified | <string> | Time (seconds from epoch) at which the rule was last modified | Optional; |
url.last_modified_username | <string> | The last user to modify this rule | Optional; |
url.name | <string> | ||
url.preferred | <boolean> | Optional; | |
url.urls | <array of <string>> | ||
url.urls[items] | <string> |
Links
url: delete
Deletes the url application that matches the ID provided
DELETE http://{device}/api/npm.classification/3.2/urls/items/{id}Response Body
On success, the server does not provide any body in the responses.
url: get
Reads and return the url application that matches the ID provided
GET http://{device}/api/npm.classification/3.2/urls/items/{id}Response Body
Returns an url data object.
Resource: urls
This resource deals with collection of url applications
http://{device}/api/npm.classification/3.2/urls
{ "items": [ url ] }
Property Name | Type | Description | Notes |
---|---|---|---|
urls | <object> | This resource deals with collection of url applications | |
urls.items | <array of <url>> | Optional; | |
urls.items[items] | <url> | This resource deals with url application |
Links
urls: bulk_create
Creates a collection of url applications assigning an ID to each url application. Appends the new collection to the url applications. Returns the new collection of url applications with their corresponding ID
POST http://{device}/api/npm.classification/3.2/urls/bulk_createRequest Body
Provide an urls data object.
Response BodyReturns an urls data object.
urls: bulk_delete
Deletes all url applications or url applications matching the IDs provided
POST http://{device}/api/npm.classification/3.2/urls/bulk_deleteRequest Body
Provide a bulk_deleter data object.
Response BodyReturns a bulk_deleter data object.
urls: create
Creates a new url application and adds it to the url application. Returns the url application with its new ID populated
POST http://{device}/api/npm.classification/3.2/urlsRequest Body
Provide an url data object.
Response BodyReturns an url data object.
urls: get
Reads and returns the complete collection of url applications
GET http://{device}/api/npm.classification/3.2/urlsResponse Body
Returns an urls data object.
Type: app_definition_3_0
Property Name | Type | Description | Notes |
---|---|---|---|
app_definition_3_0 | <object> | ||
app_definition_3_0.dpi_ids | <array of <integer>> | Optional; | |
app_definition_3_0.dpi_ids[items] | <integer> | ||
app_definition_3_0.hostgroup_ids | <id_list> | List of IDs | |
app_definition_3_0.hosts | <host_list> | List of hosts(e.g. x.x.x.x, x.x.x.x/prefix), host-ranges(e.g. x.x.x.x-y.y.y.y, x.x.x.x/prefix-y.y.y.y/prefix) | |
app_definition_3_0.transport_rules | <array of <object>> | List of port ranges | Optional; |
app_definition_3_0.transport_rules [items] |
<object> | IP Protocol and transport ports | Required properties: [ip_protocol]; |
app_definition_3_0.transport_rules [items].ip_protocol |
<string> | IP protocol identifier. Full list can be retrieved with /ip_protocols resource | |
app_definition_3_0.transport_rules [items].ports |
<string> | comma seperated list of port ranges. e.g. x, p-q, y-z | Optional; |
app_definition_3_0.<prop> | <any> | Optional; |
Type: application_type_enum
Different types of applications
string
Property Name | Type | Description | Notes |
---|---|---|---|
application_type_enum | <string> | Different types of applications | Values: SYSTEM, URL, APPLICATION; |
Type: bulk_deleter
Object to trigger bulk deletion of given resource
{ "delete_all": boolean, "delete_ids": id_list, <prop>: any }
Property Name | Type | Description | Notes |
---|---|---|---|
bulk_deleter | <object> | Object to trigger bulk deletion of given resource | |
bulk_deleter.delete_all | <boolean> | Delete all objects of the given resource | Optional; |
bulk_deleter.delete_ids | <id_list> | List of IDs | |
bulk_deleter.<prop> | <any> | Optional; |
Type: host_list
List of hosts(e.g. x.x.x.x, x.x.x.x/prefix), host-ranges(e.g. x.x.x.x-y.y.y.y, x.x.x.x/prefix-y.y.y.y/prefix)
[ string ]
Property Name | Type | Description | Notes |
---|---|---|---|
host_list | <array of <string>> | List of hosts(e.g. x.x.x.x, x.x.x.x/prefix), host-ranges(e.g. x.x.x.x-y.y.y.y, x.x.x.x/prefix-y.y.y.y/prefix) | |
host_list[items] | <string> |
Type: id_list
List of IDs
[ number ]
Property Name | Type | Description | Notes |
---|---|---|---|
id_list | <array of <number>> | List of IDs | |
id_list[items] | <number> |
Type: speed_unit
Unit of Network Traffic Speed
string
Property Name | Type | Description | Notes |
---|---|---|---|
speed_unit | <string> | Unit of Network Traffic Speed | Values: kbps, Mbps, Gbps; |