<?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: ontap api 98 quota error python in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/ontap-api-98-quota-error-python/m-p/163333#M37349</link>
    <description>&lt;P&gt;I found the error&lt;/P&gt;&lt;P&gt;Apparently after updating the ontap_netapp pip library i did need to restart pycharm.&lt;/P&gt;&lt;P&gt;Now works like a charm&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 12:18:20 GMT</pubDate>
    <dc:creator>nicola_mendella</dc:creator>
    <dc:date>2021-01-26T12:18:20Z</dc:date>
    <item>
      <title>ontap api 98 quota error python</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/ontap-api-98-quota-error-python/m-p/163329#M37348</link>
      <description>&lt;P&gt;from the documentation:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;with HostConnection("&amp;lt;mgmt-ip&amp;gt;", username="admin", password="password", verify=False):&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    resource = QuotaReport(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        index=4612248968380809216,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        **{"volume.uuid": "cf480c37-2a6b-11e9-8513-005056a7657c"}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    )&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    resource.get()&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    print(resource)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from a real system:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with HostConnection("10.54.126.30", username="admin", password="password", verify=False):&lt;BR /&gt;... resource = QuotaReport(&lt;BR /&gt;... index=2305843013508661248,&lt;BR /&gt;... **{"volume.uuid": "11b984a0-5fb7-11eb-848e-000c2933e33c"}&lt;BR /&gt;... )&lt;BR /&gt;... resource.get()&lt;BR /&gt;... print(resource)&lt;BR /&gt;...&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;input&amp;gt;", line 6, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/resources/quota_report.py", line 1339, in get&lt;BR /&gt;return super()._get(**kwargs)&lt;BR /&gt;File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/utils.py", line 55, in wrapper&lt;BR /&gt;return on_api_fail(erro)&lt;BR /&gt;File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/utils.py", line 78, in on_api_fail&lt;BR /&gt;raise NetAppRestError(cause=erro) from None&lt;BR /&gt;netapp_ontap.error.NetAppRestError: Caused by HTTPError('404 Client Error: Not Found for url: &lt;A href="https://10.54.126.30:443/api/storage/quota/reports/2305843013508661248" target="_blank"&gt;https://10.54.126.30:443/api/storage/quota/reports/2305843013508661248&lt;/A&gt;',): "2305843013508661248" is an invalid value for field "volume.uuid" (&amp;lt;UUID&amp;gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made it working in this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;resource = QuotaReport({"volume.uuid":"11b984a0-5fb7-11eb-848e-000c2933e33c"}, index='2305843013508661248')&lt;BR /&gt;resource.get()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now the error is another one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;raceback (most recent call last):&lt;BR /&gt;File "&amp;lt;input&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/resources/quota_report.py", line 1339, in get&lt;BR /&gt;return super()._get(**kwargs)&lt;BR /&gt;File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/utils.py", line 51, in wrapper&lt;BR /&gt;return func(*args, **kwargs)&lt;BR /&gt;File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/resource.py", line 916, in _get&lt;BR /&gt;url = "%s%s" % (self.get_connection().origin, self.instance_location)&lt;BR /&gt;File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/resource.py", line 270, in __getattribute__&lt;BR /&gt;value = super().__getattribute__(name)&lt;BR /&gt;File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/resource.py", line 442, in instance_location&lt;BR /&gt;return "%s/%s" % (self._location, "/".join(key_vals))&lt;BR /&gt;File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/resource.py", line 270, in __getattribute__&lt;BR /&gt;value = super().__getattribute__(name)&lt;BR /&gt;File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/netapp_ontap/resource.py", line 402, in _location&lt;BR /&gt;raise NetAppRestError(message=msg, cause=exc) from None&lt;BR /&gt;netapp_ontap.error.NetAppRestError: Could not compute the location of the QuotaReport collection. Values for [] are required. Caused by TypeError('quote_from_bytes() expected bytes',)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on 9.7 this was working fine:&lt;/P&gt;&lt;PRE&gt;resource = QuotaReport(&lt;SPAN&gt;index&lt;/SPAN&gt;=quota_index, &lt;SPAN&gt;volume&lt;/SPAN&gt;=volume_name)&lt;/PRE&gt;&lt;P&gt;but not longer on 9.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is some bug or is it me doing it wrong ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:37:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/ontap-api-98-quota-error-python/m-p/163329#M37348</guid>
      <dc:creator>nicola_mendella</dc:creator>
      <dc:date>2025-06-04T10:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: ontap api 98 quota error python</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/ontap-api-98-quota-error-python/m-p/163333#M37349</link>
      <description>&lt;P&gt;I found the error&lt;/P&gt;&lt;P&gt;Apparently after updating the ontap_netapp pip library i did need to restart pycharm.&lt;/P&gt;&lt;P&gt;Now works like a charm&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 12:18:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/ontap-api-98-quota-error-python/m-p/163333#M37349</guid>
      <dc:creator>nicola_mendella</dc:creator>
      <dc:date>2021-01-26T12:18:20Z</dc:date>
    </item>
  </channel>
</rss>

