REST API  4.0.0
REST API for SafeNet Network HSMs
PUT /api/lunasa/hsms/{hsmid}/partitions/{partitionid}/storageSpace

PUT /api/lunasa/hsms/{hsmid}/partitions/{partitionid}/storageSpace

Resizes the storage space of a partition.

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

allStorageSpace

Indicates whether to resize the partition with all available storage space assigned to it.

Use: Required

JSON Schema:

   Object
   type: boolean
         false = do not use all available storage space
         true = assign all remaining, available storage space to the partition

size

The number of bytes of storage space to assign to the partition if allStorageSpace is false

Use: Required

JSON Schema:

   Object
   type: integer

Responses

204

Success

400

Unexpected error

404

HSM or partition does not exist.

Example Request

   PUT 
   https://1.2.3.4:8443/api/lunasa/hsms/150607/partitions/350659181804/storageSpace
   {"allStorageSpace": false, "size": 30000}

Example Result

{
    "total": 30000, "used": 0, "free": 30000
}