REST API  4.0.0
REST API for SafeNet Network HSMs
POST /api/lunasa/hsms/{hsmid}/peds/{pedid}/actions/{actionid}

POST /api/lunasa/hsms/{hsmid}/peds/{pedid}/actions/{actionid}

Performs the action on the PED.

Parameters

hsmid

The serial number of the HSM of interest

Use: Required

JSON Schema:

   Object
   type: string

pedid

The identifier of the PED of interest

Use: Required

JSON Schema:

   Object
   type: string

actionid

The identifier of the PED action to be performed

Use: Required

JSON Schema:

   Object
   type: string

See PED Actions

ipAddress

Applies for the "connect" action. Specifies the location of the PED server.

Use: Required

JSON Schema:

   Object
   type: string

ipPort

Applies for the "connect" action. Specifies the port for the PED server (80-65535).

Use: Required

JSON Schema:

   Object
   type: integer

Responses

204

Success

Location

JSON Schema:

    id: Object
        type: string

"Location" is the URL to the task spawned to perform the action on the PED.

400

Unexpected error

404

HSM, PED or action does not exist.

Example Requests

   POST 
   https://1.2.3.4:8443/api/lunasa/hsms/154704/peds/0/actions/vectorInitialize
   {  }

   POST 
   https://1.2.3.4:8443/api/lunasa/hsms/154704/peds/0/actions/connect
   { "ipAddress" : "1.2.3.70", "ipPort" : 1503 }

Example Result

{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': '/api/lunasa/hsms/tasks/3', 'Content-Length': '2', 'Access-Control-Allow-Credentials': 'true'}

{
}