ONTAP Rest API Discussions

How to get 6 months of volume IOPS report using an API call?

joseldevalle
303 Views

Customer is trying to pull the IOPs report for all volumes for last 6 months or longer, over the RESTAPI endpoint they could collect only last 96 hours of data (Per API documentation, there is no parameter discussed to pull the historical data other than 96 hours default one), but they are able to collect last 13 months of IOPs data for individual volumes by manual GUI steps.

Customer states that collecting manually for 5000+ volumes is not something easier process.

So, they require to know if there's a way, they could collect the same 13 months of IOPS data over an API for all the volumes.

1 REPLY 1

joseldevalle
302 Views
This is the API call customer is using,
 
The parameter numberOfHours can be increase to a number greater than 96?

Restapi endpoint
 
{
"_embedded": {
"netapp:volumeInventoryList": [
{
"systemManagerUrl": "",
"recommendationGenerationTime": "Recommended on: Oct 5, 2024",
"id": 3311617,
"node": {
"id": 20126050,
"label": "nart2vc01j",
"unsupportedStatisticTypes": []
},
"totalCapacity": 10.0,
"status": "CRITICAL",
"policies": [],
"volume": {
"id": 3311617,
"label": "AP011078_ctwias01_DEV_RTP",
"unsupportedStatisticTypes": []
},
"tieringPolicy": "None",
"aggregate": {
"id": 20126079,
"label": "aggr210",
"unsupportedStatisticTypes": []
},
"iops": null,
"cluster": {
"id": 115473,
"label": "nart2clstr01",
"unsupportedStatisticTypes": []
},
"numberOfHours": 96,
"mbps": null,
"coldData": null,
"svm": {
"id": 117477,
"label": "nart2vc01svn1",
"unsupportedStatisticTypes": []
},
"recommendationData": "This volume is offline so no recommendation can be provided.",
"cloudRecommendation": "No Action",
"latency": null,
"volumeType": "FlexVol",
"availableCapacity": 9.992290496826172
}}
Public