REST API  5.0.0
REST API for SafeNet Network HSMs
PATCH /api/lunasa/hsms/{hsmid}/ped/peds/{pedid}

PATCH /api/lunasa/hsms/{hsmid}/ped/peds/{pedid}

Selects a registered PED server

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

server

The location of the PED server to select

Use: Not Required

JSON Schema:

   Object
   type: string

Responses

204

Success

Location

JSON Schema:

  id: Object
    type: string

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

400

Unexpected error

Example Request

    PUT
    https://1.2.3.4:8443/api/lunasa/hsms/154704/ped/peds/1
    {
        "server": "/api/lunasa/hsms/154704/ped/servers/TestPedServer"
    }

Example Result

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

{
}