White Papers

Configuration details
32 Dell Storage Manager REST API Cookbook | 3089-WP-SAN
3.4.4 Pre-allocate a volume
The volume pre-allocation is successful only if the volume has been and is currently mapped to a server
object within the same SC Series array.
# preallocate a volume object
payload = {}
REST = '/StorageCenter/ScVolume/%s/PreallocateStorage' %
volList['RestTest_Vol']['instanceId']
completeURL = '%s%s' % (baseURL, REST if REST[0] != '/' else REST[1:])
json_data = connection.post(completeURL
,data=json.dumps(payload
,ensure_ascii=False).encode('utf-8')
,headers=header
,verify=verify_cert)
stdout = json.loads(json_data.text)
print stdout
STDOUT
{u'instanceId': u'101.8706', u'scSerialNumber': 101, u'replicationSource':
False, u'liveVolume': False, u'vpdId': 8266, u'objectType': u'ScVolume',
u'volumeFolderPath': u'RestTest/', u'hostCacheEnabled': False, u'inRecycleBin':
False, u'instanceName': u'RestTest_Vol', u'statusMessage': u'', u'status':
u'Up', u'storageType': {u'instanceId': u'101.1', u'instanceName': u'Assigned -
Redundant - 2 MB', u'objectType': u'ScStorageType'}, u'cmmDestination': False,
u'replicationDestination': False, u'volumeFolder': {u'instanceId': u'101.226',
u'instanceName': u'RestTest', u'objectType': u'ScVolumeFolder'}, u'deviceId':
u'6000d31000006500000000000000204a', u'active': True,
u'portableVolumeDestination': False, u'deleteAllowed': True, u'name':
u'RestTest_Vol', u'scName': u'SC 9', u'secureDataUsed': False, u'serialNumber':
u'00000065-0000204a', u'replayAllowed': True, u'flashOptimized': False,
u'configuredSize': u'21474836480 Bytes', u'mapped': True, u'cmmSource': False}
3.4.5 Modify a volume
The following code can be used exclusively to modify the name or the parent folder of the volume object or
both concurrently. The payload['Name'] and payload['VolumeFolder'] attributes both contain string-based
values where the former represents the desired name of the volume object while the latter represents the
instanceId value of the parent folder.