White Papers

Configuration details
13 Dell Storage Manager REST API Cookbook | 3089-WP-SAN
STDOUT
Name scSerialNumber instanceId IP
SC 4 862 862 172.16.2.104
SC 18 716 716 172.16.2.118
SC 9 101 101 172.16.2.109
2.3.3 <instanceId> All volume folder objects
# declare and define the payload variable
payload = {}
# define the REST API call
REST = '/StorageCenter/StorageCenter/%s/VolumeFolderList' %
(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)
volFolderList = {}
print "Name\t\t\t\t\tinstanceId\t\tParent"
for i in range(len(stdout)):
if stdout[i]['name'] == "Volumes":
continue
print "%s\t\t\t\t%s\t\t%s" % (stdout[i]['name']
,stdout[i]['instanceId']
,stdout[i]['parent']['instanceName'])
volFolderList[stdout[i]['name']] = {}
volFolderList[stdout[i]['name']]['instanceId'] = stdout[i]['instanceId']
volFolderList[stdout[i]['name']]['parent'] =
stdout[i]['parent']['instanceName']
STDOUT
Name instanceId Parent
IBMSVC 101.1 Volumes
11gR2 101.21 Oracle
Oracle 101.20 Volumes
Stretch-Cluster 101.23 RAC
RAC 101.22 11gR2
[snip]