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

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

This resource deletes a specific SNMP trap agent.

User Privileges

Users with the following role privileges can perform this command:

  • admin
  • operator

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

204

Success.

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

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

Example Response

{
}