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

GET /tasks/{taskid}

Gets the information associated with a specific task.

Parameters

taskid

The identifier of the task of interest

Use: Required

JSON Schema:

   Object
   type: string

Responses

200

Task is not complete

303

Task is complete

410

Task does not exist

400

Unexpected error

Example Request

   GET 
   https://1.2.3.4:8443/tasks/0

Example Result

On return code 200

{
    "finishTime": "",
    "instance": "/tasks/22",
    "responseUrl": "/tasks/22/response",
    "sourceUrl": "/api/lunasa/hsms/151256/login",
    "startTime": "2015-07-11T07:23:49Z",
    "state": "Running",
    "details": ""
}



On return code 303

{
    "finishTime": "2015-07-11T07:23:54Z",
    "instance": "/tasks/22",
    "responseUrl": "/tasks/22/response",
    "sourceUrl": "/api/lunasa/hsms/151256/login",
    "startTime": "2015-07-11T07:23:49Z",
    "state": "Finished",
    "details": ""
}