REST API  17
REST API for Luna Network HSMs
POST /api/lunasa/snmp/traps/actions/{actionid}

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

Performs the specified SNMP trap action.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator

Parameters

actionid

The identifier of the action to be performed.

Use: Required

JSON Schema:

   Object
   type: string
   minLength: 1
   maxLength: 32
   pattern: ^[a-zA-Z0-9_.-]*$

Responses

204

Success

400

FRAMEWORK_BAD_REQUEST

Returned when the input data does not conform to the required validation schema.

404

SNMP_TRAP_ACTION_INVALID

Specified action is invalid.

404

SNMP_TRAP_NOT_CONFIGURED

Failed to enable traps, no trap configured.

500

SNMP_OPERATION_FAILED

Failed to perform the specified operation.

Example Request

To enable the traps:

   POST
   https://1.2.3.4:8443/api/lunasa/snmp/traps/actions/enable
   {
   }

Example Result

{
}

See Also

GET /api/lunasa/snmp/traps/actions