ONTAP Rest API Discussions

How to add a tag/annotation to existing volume using Python API

kbhonagiri
82 Views

Hello Community,

 

Do we have a way to patch volume with a tag or annotation. Ideally i'm looking for something like this to work. I"m looking to see  anything other than "comment" field.

>>> with HostConnection(host,username=username,password=password, verify=False):
... volume = Volume(uuid=volume_uuid)
... volume.tags = ["high-priority", "backup"]
... volume.patch()
... volume.get()
... print(volume.to_dict())

$ /usr/bin/pip3 show netapp-ontap
Name: netapp-ontap
Version: 9.12.1.0

 

Kalyan

0 REPLIES 0
Public