White Papers

Configuration details
14 Dell Storage Manager REST API Cookbook | 3089-WP-SAN
2.3.4 <instanceId> All volume objects
# declare and define the payload variable
payload = {}
# define the REST API call
REST = '/StorageCenter/StorageCenter/%s/VolumeList' %
(scList['SC 9']['instanceId'])
# build the complete REST API URL
completeURL = '%s%s' % (baseURL, REST if REST[0] != '/' else REST[1:])
# execute REST API call via the HTTP GET method
json_data = connection.get(completeURL
,headers=header
,verify=verify_cert)
stdout = json.loads(json_data.text)
volList = {}
print "Name\t\t\t\t\tinstanceId\t\tPath"
for i in range(len(stdout)):
print "%s\t\t%s\t\t%s" % (stdout[i]['name']
,stdout[i]['instanceId']
,stdout[i]['volumeFolderPath'])
volList[stdout[i]['name']] = {}
volList[stdout[i]['name']]['instanceId'] = stdout[i]['instanceId']
volList[stdout[i]['name']]['path'] = stdout[i]['volumeFolderPath']
STDOUT
Name instanceId Path
clapton-boot-vol 101.5500 Unix/Linux/SLES/clapton/
dean Volume 2 101.6568 Unix/Linux/Red_Hat/7.0/dean/
Beck-boot-vol 101.5501 Unix/Linux/SLES/beck/
dean Volume 3 101.6569 Unix/Linux/Red_Hat/7.0/dean/
Server_Pool-vol 101.5502 Oracle VM 3.1.3/
[snip]
2.3.5 <instanceId> All server folder objects
# declare and define the payload variable
payload = {}