SNMP Manager Web Services
Universal Controller supports the following RESTful-based web services for SNMP Manager operations, which are listed alphabetically on this page.
- Create an SNMP Manager
- Delete an SNMP Manager
- List SNMP Managers
- Modify an SNMP Manager
- Read an SNMP Manager
Formatting specifications for each web service, including details about property requirements, are provided.
Create an SNMP Manager
Description | |
|---|---|
URI | http://host_name/uc/resources/snmpmanager |
HTTP Method | POST |
Description | Creates an SNMP Manager. |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | See Create an SNMP Manager: Example Request, below. |
Example Response |
|
SNMP Manager Properties | See SNMP Manager Properties, below. |
Create an SNMP Manager: Example Request
- JSON
- XML
JSON Request
{
"description": "description",
"managerAddress": "Junk.com",
"managerPort": 123,
"name": "Test4",
"opswiseGroups": null,
"retainSysIds": true,
"sysId": "62701879a6264107bb757a952bcc65cc",
"trapCommunity": "public"
}
XML Request
<snmpManager retainSysIds="true">
<description>description</description>
<managerAddress>Junk.com</managerAddress>
<managerPort>123</managerPort>
<name>Test4</name>
<opswiseGroups />
<sysId>62701879a6264107bb757a952bcc65cc</sysId>
<trapCommunity>Test4</trapCommunity>
</snmpManager>
SNMP Manager Properties
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| Description | Description of this record. | N | |
| n/a | Universal Controller release that the record was exported from. | read only | N |
| n/a | Record table information. | read only | N |
| Manager Address | Name or IP address of the SNMP Manager. | Y | |
| Manager Port | Port used by the SNMP Manager. | Y | |
| Manager Name | Name used within the Controller to identify this SNMP Manager. | Y | |
| Member of Business Services | Business Services that this record belongs to. XML JSON | N | |
| n/a | Specification for whether or not the Create an SNMP Manager web service will persist the
info In XML web services, | Valid values: true/false (default is true). | N |
| n/a | System ID field in the database for this SNMP Manager record. | Persisted only if | N |
| Trap Community String | Used by the trap receiver to determine which traps to process. | Default is public. | N |
Delete an SNMP Manager
Description | |
|---|---|
URI | http://host_name/uc/resources/snmpmanager |
HTTP Method | DELETE |
Description | Deletes an SNMP Manager. |
URI Parameters | See Delete an SNMP Manager: URI Parameters, below. |
Example URI | http://localhost:8080/uc/resources/snmpmanager?managername=Test4 |
Example Response |
|
Delete an SNMP Manager: URI Parameters
Parameter | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| ID used within the Controller to identify this SNMP Manager. | String; URI parameter. | Y |
|
| Name used within the Controller to identify this SNMP Manager. | String; URI parameter. | Y |
|
List SNMP Managers
Description | |
|---|---|
URI | http://host_name/uc/resources/snmpmanager/list |
HTTP Method | GET |
Description | Retrieves information on all SNMP Managers. |
Example URI | |
Authentication | HTTP Basic |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
Example Response | See List SNMP Managers Example Response, below. |
SNMP Manager Properties |
List SNMP Managers: Example Response
- JSON
- XML
JSON Response
[ {
"description": "description",
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_snmp_connection",
"managerAddress": "qa.stone.branch",
"managerPort": 162,
"name": "qa.stone.branch1",
"opswiseGroups": null,
"sysId": "3d7a03053ad64de1b21b6849e6deafd9",
"trapCommunity": "public",
"version": 7
},
{
"description": "description",
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_snmp_connection",
"managerAddress": "qa.stone.branch",
"managerPort": 162,
"name": "qa.stone.branch",
"opswiseGroups": null,
"sysId": "94640cb62679407692cb41091e5c73fe",
"trapCommunity": "public",
"version": 2
}
]
XML Response
<snmpManagers>
<snmpManager exportReleaseLevel="7.2.0.0" exportTable="ops_snmp_connection" version="7">
<description>description</description>
<managerAddress>qa.stone.branch</managerAddress>
<managerPort>162</managerPort>
<name>qa.stone.branch1</name>
<opswiseGroups />
<sysId>3d7a03053ad64de1b21b6849e6deafd9</sysId>
<trapCommunity>Test4</trapCommunity>
</snmpManager>
<snmpManager exportReleaseLevel="7.2.0.0" exportTable="ops_snmp_connection" version="2">
<description>description</description>
<managerAddress>qa.stone.branch</managerAddress>
<managerPort>162</managerPort>
<name>qa.stone.branch2</name>
<opswiseGroups />
<sysId>94640cb62679407692cb41091e5c73fe</sysId>
<trapCommunity>Test4</trapCommunity>
</snmpManager>
<snmpManagers>
Modify an SNMP Manager
Description | |
|---|---|
URI | http://host_name/uc/resources/snmpmanager |
HTTP Method | PUT |
Description | Modifies the SNMP Manager specified by the |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | See Modify an SNMP Manager Example Request, below. |
SNMP Manager Properties | |
Example Response |
|
Modify an SNMP Manager: Example Request
- JSON
- XML
JSON Request
{
"description": "description",
"managerAddress": "Junk.com",
"managerPort": 123,
"name": "Test4",
"opswiseGroups": [ "Accounting" ],
"sysId": "62701879a6264107bb757a952bcc65cc",
"trapCommunity": "public"
}
XML Request
<snmpManager>
<description>description</description>
<managerAddress>Junk.com</managerAddress>
<managerPort>123</managerPort>
<name>Test4</name>
<opswiseGroups>
<opswiseGroup>Accounting</opswiseGroup>
</opswiseGroups>
<sysId>62701879a6264107bb757a952bcc65cc</sysId>
<trapCommunity>Test4</trapCommunity>
</snmpManager>
Read an SNMP Manager
Description | |
|---|---|
URI | http://host_name/uc/resources/snmpmanager |
HTTP Method | GET |
Description | Retrieves information on a specific SNMP Manager. |
URI Parameters | See Read an SNMP Manager URI Parameters, below. |
Example URI | http://localhost:8080/uc/resources/snmpmanager?managername=Test4 |
Consumes Content-Type | n/a |
Produces Content-Type | application/xml, application/json |
Example Response | See Read an SNMP Manager Example Response, below. |
SNMP Manager Properties |
Read an SNMP Manager: URI Parameters
Parameter | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| ID used within the Controller to identify this SNMP Manager. | String; URI parameter. | Y |
|
| Name used within the Controller to identify this SNMP Manager. | String; URI parameter. | Y |
|
Read an SNMP Manager: Example Response
- JSON
- XML
JSON Response
{
"description": "description",
"exportReleaseLevel": "7.2.0.0",
"exportTable": "ops_snmp_connection",
"managerAddress": "Junk.com",
"managerPort": 123,
"name": "Test4",
"opswiseGroups": null,
"sysId": "62701879a6264107bb757a952bcc65cc",
"trapCommunity": "public",
"version": 1
}
XML Response
<snmpManager exportReleaseLevel="7.2.0.0" exportTable="ops_snmp_connection" retainSysIds="true" version="1">
<description>description</description>
<managerAddress>Junk.com</managerAddress>
<managerPort>123</managerPort>
<name>Test4</name>
<opswiseGroups />
<sysId>62701879a6264107bb757a952bcc65cc</sysId>
<trapCommunity>Test4</trapCommunity>
</snmpManager>