Resource: hostgroup
This resource deals with Host Group
http://{device}/api/npm.classification/2.0/hostgroups/items/{id}
{ "desc": string, "enabled": boolean, "hosts": host_list, "id": number, "in_speed": number, "in_speed_unit": speed_unit, "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.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.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/2.0/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/2.0/hostgroups/items/{id}Response Body
Returns a hostgroup data object.
Resource: hostgroups
This resource deals with Host Groups
http://{device}/api/npm.classification/2.0/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/2.0/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/2.0/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/2.0/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/2.0/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/2.0/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/2.0/hostgroups/mergeRequest Body
Provide a hostgroups data object.
Response BodyReturns a hostgroups data object.
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: dpi_list
[ integer ]
Property Name | Type | Description | Notes |
---|---|---|---|
dpi_list | <array of <integer>> | ||
dpi_list[items] | <integer> |
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; |