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

GET /api/lunasa/snmp/traps/actions

This resource retrieves all available SNMP trap actions.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator
  • monitor

Parameters

None

Responses

200

The list of actions related to the SNMP traps.

JSON Schema: SNMP Traps Actions

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/actions
   {
   }

Example Result

{
    "actions": [
        {
            "id": "disable",
            "url": "/api/lunasa/snmp/traps/actions/disable"
        },
        {
            "id": "enable",
            "url": "/api/lunasa/snmp/traps/actions/enable"
        }
    ]
}

See Also

POST /api/lunasa/snmp/traps/actions/{actionid}