Unsolved
1 Rookie
•
108 Posts
0
564
PowerFlex Rest API Get Select parameter
I am developing a python script for setting the QOS, would like to extract the selected parameter from get API request. For Example: Get http://gatewayipaddr/api/intances provides the list of all parameter . But, i would like to fetch only the selected values from this output like volume name , id, IOPS value of all the volume. Something i do in hitachi tuning manager with parameter as input below.
params = (
('agentType', 'RAID'),
('agentInstanceName', array_name[i]),
('fields',
'DATETIME\x1FLDEV_NUMBER\x1FREAD_IO_COUNT\x1FWRITE_IO_COUNT\x1FREAD_MBYTES\x1FWRITE_MBYTES\x1FREAD_RESPONSE_RATE\x1FWRITE_RESPONSE_RATE\x1FTOTAL_RESPONSE_RATE'),
('pfmHostName', array_instancename[i]),
('startTime', startTime),
('endTime', endTime),
('LDEV_NUMBER', Lun_name),
)
response = requests.get('http://%s:24221/TuningAgent/v1/objects/PI_LDS' % array_instanceip[i], params=params,
verify=False)
is there a similar way in powerflex rest api?
Thanks
Saran