![]() |
REST API
14
REST API for Luna Network HSMs
|
Performs the action on the PED.
The serial number of the HSM of interest
Use: Required
JSON Schema:
Object type: integer
The identifier of the PED of interest.
0 - Local PED
1 - Remote PED
Use: Required
JSON Schema:
Object type: integer
The identifier of the PED action to be performed
Use: Required
JSON Schema:
Object type: string
See PED Actions
Applies for the "connect" action. Specifies the location of the PED server.
Use: Required
JSON Schema:
Object type: string
Applies for the "connect" action. Specifies the port for the PED server (80-65535).
Use: Required
JSON Schema:
Object type: integer
Applies to the "connect" action. PED Remote Connection Password. It should contain exactly 8 integers (00000001-99999999).
Use: Optional
JSON Schema:
Object type: integer
Success
JSON Schema:
id: Object type: string
"Location" is the URL to the task spawned to perform the action on the PED.
Unexpected error
HSM, PED or action does not exist.
POST https://1.2.3.4:8443/api/lunasa/hsms/154704/ped/peds/0/actions/vectorInitialize { } POST https://1.2.3.4:8443/api/lunasa/hsms/154704/ped/peds/0/actions/connect { "ipAddress" : "1.2.3.70", "ipPort" : 1503 } POST https://1.2.3.4:8443/api/lunasa/hsms/154704/ped/peds/1/actions/connect { "ipAddress" : "1.2.3.70", "ipPort" : 1503, "password" : 12345678}
{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': '/api/lunasa/hsms/tasks/3', 'Content-Length': '2', 'Access-Control-Allow-Credentials': 'true'} { }