NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform.
You will still be able to view content, but posting and replying will be temporarily disabled.
To learn more, please review the information in this blog post.

ONTAP Rest API Discussions

Ontap Python SDK API for VolumeMetrics

kbhonagiri
1,887 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
1,772 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