REST API  4.0.0
REST API for SafeNet Network HSMs
GET /tasks/{taskid}/response

GET /tasks/{taskid}/response

Gets the tasked resource response and removes a task record with state "Finished"; errors otherwise.

Parameters

taskid

The identifier of the task of interest

Use: Required

JSON Schema:

   Object
   type: string

Responses

201

Success plus any output from the tasked resource.

JSON Schema: Response output is specific to the resource tasked.

204

Success, no output from the tasked resource.

404

The tasked resource is "Running"; not in a "Finished" state.

400

Unexpected error

Example Request

   GET 
   https://1.2.3.4:8443/tasks/23/response

Example Results

Task State is "Finished"

201
{ "partitionID": "MyPartition" }

204
{
}

Task State is "Running"

404
{
}