<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to add a tag/annotation to existing volume using Python API in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/How-to-add-a-tag-annotation-to-existing-volume-using-Python-API/m-p/459826#M731</link>
    <description>&lt;P&gt;I think Version 13 and up support tags.&lt;/P&gt;&lt;P&gt;from netapp_ontap import HostConnection&lt;BR /&gt;from netapp_ontap.resources import Volume&lt;/P&gt;&lt;P&gt;with HostConnection("&amp;lt;mgmt-ip&amp;gt;", username="admin", password="password", verify=False):&lt;BR /&gt;resource = Volume(uuid="d0c3359c-5448-4a9b-a077-e3295a7e9057")&lt;BR /&gt;resource.tiering.object_tags = ["key1=val1", "key2=val2"]&lt;BR /&gt;resource.patch()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Apr 2025 15:28:21 GMT</pubDate>
    <dc:creator>customernumber10</dc:creator>
    <dc:date>2025-04-01T15:28:21Z</dc:date>
    <item>
      <title>How to add a tag/annotation to existing volume using Python API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/How-to-add-a-tag-annotation-to-existing-volume-using-Python-API/m-p/458327#M713</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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&amp;nbsp; anything other than "comment" field.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; with HostConnection(host,username=username,password=password, verify=False):&lt;BR /&gt;... volume = Volume(uuid=volume_uuid)&lt;BR /&gt;... volume.tags = ["high-priority", "backup"]&lt;BR /&gt;... volume.patch()&lt;BR /&gt;... volume.get()&lt;BR /&gt;... print(volume.to_dict())&lt;BR /&gt;&lt;BR /&gt;$ /usr/bin/pip3 show netapp-ontap&lt;BR /&gt;Name: netapp-ontap&lt;BR /&gt;Version: 9.12.1.0&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kalyan&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 20:36:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/How-to-add-a-tag-annotation-to-existing-volume-using-Python-API/m-p/458327#M713</guid>
      <dc:creator>kbhonagiri</dc:creator>
      <dc:date>2025-02-05T20:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a tag/annotation to existing volume using Python API</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/How-to-add-a-tag-annotation-to-existing-volume-using-Python-API/m-p/459826#M731</link>
      <description>&lt;P&gt;I think Version 13 and up support tags.&lt;/P&gt;&lt;P&gt;from netapp_ontap import HostConnection&lt;BR /&gt;from netapp_ontap.resources import Volume&lt;/P&gt;&lt;P&gt;with HostConnection("&amp;lt;mgmt-ip&amp;gt;", username="admin", password="password", verify=False):&lt;BR /&gt;resource = Volume(uuid="d0c3359c-5448-4a9b-a077-e3295a7e9057")&lt;BR /&gt;resource.tiering.object_tags = ["key1=val1", "key2=val2"]&lt;BR /&gt;resource.patch()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 15:28:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/How-to-add-a-tag-annotation-to-existing-volume-using-Python-API/m-p/459826#M731</guid>
      <dc:creator>customernumber10</dc:creator>
      <dc:date>2025-04-01T15:28:21Z</dc:date>
    </item>
  </channel>
</rss>

