REST API  17
REST API for Luna Network HSMs
GET /api/lunasa/snmp/traps

GET /api/lunasa/snmp/traps

This resource retrieves all SNMP trap agents and other trap resources.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator
  • monitor

Parameters

None

Responses

200

List of SNMP traps and other resources

JSON Schema: SNMP Traps

401

FRAMEWORK_NO_SESSION_COOKIE

No session cookie was found.

500

SNMP_OPERATION_FAILED

Failed to perform the specified operation.

Example Request

  GET
  https://1.2.3.4:8443/api/lunasa/snmp/traps
  {
  }

Example Response

{
  "actions": "/api/lunasa/snmp/traps/actions",
  "test": "/api/lunasa/snmp/traps/test",
  "traps": [
    {
      "id": "10.20.30.40",
      "url": "/api/lunasa/snmp/traps/10.20.30.40"
    },
    {
      "id": "10.20.30.50",
      "url": "/api/lunasa/snmp/traps/10.20.30.50"
    }
  ]
}