REST API  4.0.0
REST API for SafeNet Network HSMs
GET /api/lunasa/hsms/{hsmid}/partitions/{partitionid}/sff/objects

GET /api/lunasa/hsms/{hsmid}/partitions/{partitionid}/sff/objects

Gets a list of objects on the small form factor backup device.

Parameters

hsmid

The serial number of the HSM of interest

Use: Required

JSON Schema:

   Object
   type: string

partitionid

The identifier of the partition of interest

Use: Required

JSON Schema:

   Object
   type: string

Responses

200

The objects on the small form factor backup device.

JSON Schema: SFF Objects

Location

JSON Schema:

    id: Object
        type: string

"Location" is the URL to the task spawned to get the list of objects on the SFF backup device.

400

Unexpected error

404

HSM or partition does not exist.

Example Request

   GET 
   https://1.2.3.4:8443/api/lunasa/hsms/117290/partitions/273087011507/sff/objects

Example Result

<code>
\verbatim
{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': '/tasks/8', 'Content-Length': '712', 'Access-Control-Allow-Credentials': 'true'}

{}

In this example, do GET on '/tasks/8/response' to get the results of the task:

{
    {
        "id": "1",
        "label": "Created data object",
        "url": "/api/lunasa/hsms/117290/partitions/273087011507/sff/objects/1"
    },
    {
        "id": "2",
        "label": "Created data object",
        "url": "/api/lunasa/hsms/117290/partitions/273087011507/sff/objects/2"
    },
    {
        "id": "3",
        "label": "Created data object",
        "url": "/api/lunasa/hsms/117290/partitions/273087011507/sff/objects/3"
    }
}