![]()  | 
  
    REST API
    4.0.0
    
   REST API for SafeNet Network HSMs 
   | 
 
Resizes the storage space of a partition.
The serial number of the HSM of interest
Use:  Required  
JSON Schema:  
Object type: string
The identifier of the partition of interest
Use:  Required  
JSON Schema:  
Object type: string
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
The number of bytes of storage space to assign to the partition if allStorageSpace is false
Use:  Required  
JSON Schema:  
Object type: integer
Success
Unexpected error
HSM or partition does not exist.
 
   PUT 
   https://1.2.3.4:8443/api/lunasa/hsms/150607/partitions/350659181804/storageSpace
   {"allStorageSpace": false, "size": 30000}
 
{
    "total": 30000, "used": 0, "free": 30000
}