ONTAP Rest API Discussions

Ontap Python SDK API for VolumeMetrics

kbhonagiri
1,046 Views

Hey Everyone , I’m trying to get volume metrics for a volume and it returns an empty list. Could you please help with with what I was doing wrong . Below is the snippet which returns an empty list

 

from netapp_ontap.resources import VolumeMetrics

list(VolumeMetrics.get_collection(vol_uuid))

1 REPLY 1

ddegraaf
931 Views

Hi, your code looks correct, I verified it works for me. Can you please send the result of running `list(Volume.get_collection(vol_uuid))`? Also, what version of netapp_ontap are you running?

Public