Forum Discussion

jane_mcdowell's avatar
4 years ago

Hello Everyone. I hope I am in the right place, I searched

Hello Everyone. I hope I am in the right place, I searched this channel and the rest_api channel and can't find what I am looking for. I have to retrieve historical volume statistics (1h, 3h, 24h) for arrays with greater than 500 volumes. I have played around with limits but it seems you cannot limit the data in conjunction with the historical option. I was also advised to use the continuation token, but according to the API you need to use the limit parameter along with the token query parameter. How do I accomplish this for historical data if the API won't allow limits on historical data? The API call I need to make using the Purestorage python sdk is below: array.list_volumes(action='monitor', historical='3h'). Any help would be appreciated.

1 Reply

  • FYI - for anyone having this issue. I ultimately chunked the list of volumes into sublists of 500 volumes, and fed each sublist to the API call. I am able to do it that way. Thanks to Sean Schneyer from Purestorage for the suggestion.