REST API  4.0.0
REST API for SafeNet Network HSMs
POST /api/lunasa/services/{serviceid}/actions/{actionid}

POST /api/lunasa/services/{serviceid}/actions/{actionid}

Performs the specified action on the service.

Parameters

serviceid

The identifier of the service of interest

Use: Required

JSON Schema:

   Object
   type: string

actionid

The identifier of the action of interest

Use: 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 service.

id

The identifier for the service actioned.

JSON Schema:

    id: Object
        type: string

400

Unexpected error

404

Service or action does not exist.

Example Request

   POST 
   https://1.2.3.4:8443/api/lunasa/services/stc/actions/restart

Example Result

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

{}