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

GET /api/lunasa/snmp/traps/{trapid}

This resource retrieves details of a specific SNMP trap agent.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator
  • monitor

Parameters

trapid

Specifies the trap Id to access.

Use: Required

JSON Schema:

    Object
    type:string
    minLength: 1
    maxLength: 64
    pattern: ^((?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9]))|((?:[a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4})|([a-zA-Z0-9]([a-zA-Z0-9.-]{0,62}[a-zA-Z0-9])?)$

Responses

200

SNMP trap details

JSON Schema: SNMP Trap

401

FRAMEWORK_NO_SESSION_COOKIE

No session cookie was found.

404

SNMP_TRAP_DOES_NOT_EXIST

The specified SNMP trap does not exist.

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

{
  "authenticationProtocol": "SHA",
  "engineId": "1234567890",
  "port": 162,
  "privacyProtocol": "AES",
  "securityLevel": "authPriv",
  "securityName": "restuser",
  "trapType": "trap"
}