Skip to content

snmp_view

Description

View Names

Read/write properties

subtree<String>

SNMP View Subtree. Maximum length = 256 Valid char set = ^[.0-9]+

include<Boolean>

View Type. Possible values = [true,false]

name<String>

View Name. Valid char set = ^[-_.@0-9a-zA-Z]+

Read only properties

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

Add

URL: http://<CBIP>/cb/nitro/v1/config/snmp_view

HTTP Method:POST

Request Payload:JSON

{"snmp_view":{
      "subtree":<String_value>,
      "include":<Boolean_value>,
      "name":<String_value>}}

Response Payload:JSON

{ "snmp_view":{
      "subtree":<String_value>,
      "include":<Boolean_value>,
      "name":<String_value>}}

Delete

URL: http://<CBIP>/cb/nitro/v1/config/snmp_view/subtree=<String>,name=<String>

HTTP Method:DELETE

Response Payload:EMPTY

Get (all)

URL: http://<CBIP>/cb/nitro/v1/config/snmp_view

HTTP Method:GET

Response Payload:JSON

{ "snmp_view":[{
      "subtree":<String_value>,
      "include":<Boolean_value>,
      "name":<String_value>}, ...]}

Get

URL:http://<CBIP>/cb/nitro/v1/config/snmp_view/subtree=<String>,name=<String>

HTTP Method: GET

Response Payload:JSON

{ "snmp_view":{
      "subtree":<String_value>,
      "include":<Boolean_value>,
      "name":<String_value>}}