<?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 return_timeout in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/return-timeout/m-p/164772#M186</link>
    <description>&lt;P&gt;Posting on behalf of a customer..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per instruction in the document (&lt;A href="https://library.netapp.com/ecmdocs/ECMLP2862544/html/index.html#/storage/quota_rule_modify" target="_blank"&gt;https://library.netapp.com/ecmdocs/ECMLP2862544/html/index.html#/storage/quota_rule_modify&lt;/A&gt;), a `return_timeout` can be specified for asynchronous options where ONTAP waits that length of time to see if the job completes. This seems not to work for us.&amp;nbsp; We always get an immediate response with a job id instead of waiting. Could you please help check and advice if we are doing as expected?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;Api = &lt;A href="https://lvsqamfiler-c01.qa.ebay.com/api/storage/quota/rules/d8b6b371-7b35-11eb-93cf-00a0989bbd8f?return_timeout=30" target="_blank"&gt;https://xxxname.yyycompany.com/api/storage/quota/rules/d8b6b371-7b35-11eb-93cf-00a0989bbd8f?return_timeout=30&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Kwargs = &lt;EM&gt;{"space": {"hard_limit": '1073741824'}}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Call = http_request('patch', api, kwargs)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We will get response:&lt;/P&gt;&lt;P&gt;{u'job': {u'_links': {u'self': {u'href': u'/api/cluster/jobs/49fcfe2c-7c00-11eb-93cf-00a0989bbd8f'}}, u'uuid': u'49fcfe2c-7c00-11eb-93cf-00a0989bbd8f'}}&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 10:32:23 GMT</pubDate>
    <dc:creator>Daredia</dc:creator>
    <dc:date>2025-06-04T10:32:23Z</dc:date>
    <item>
      <title>return_timeout</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/return-timeout/m-p/164772#M186</link>
      <description>&lt;P&gt;Posting on behalf of a customer..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per instruction in the document (&lt;A href="https://library.netapp.com/ecmdocs/ECMLP2862544/html/index.html#/storage/quota_rule_modify" target="_blank"&gt;https://library.netapp.com/ecmdocs/ECMLP2862544/html/index.html#/storage/quota_rule_modify&lt;/A&gt;), a `return_timeout` can be specified for asynchronous options where ONTAP waits that length of time to see if the job completes. This seems not to work for us.&amp;nbsp; We always get an immediate response with a job id instead of waiting. Could you please help check and advice if we are doing as expected?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;Api = &lt;A href="https://lvsqamfiler-c01.qa.ebay.com/api/storage/quota/rules/d8b6b371-7b35-11eb-93cf-00a0989bbd8f?return_timeout=30" target="_blank"&gt;https://xxxname.yyycompany.com/api/storage/quota/rules/d8b6b371-7b35-11eb-93cf-00a0989bbd8f?return_timeout=30&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Kwargs = &lt;EM&gt;{"space": {"hard_limit": '1073741824'}}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Call = http_request('patch', api, kwargs)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We will get response:&lt;/P&gt;&lt;P&gt;{u'job': {u'_links': {u'self': {u'href': u'/api/cluster/jobs/49fcfe2c-7c00-11eb-93cf-00a0989bbd8f'}}, u'uuid': u'49fcfe2c-7c00-11eb-93cf-00a0989bbd8f'}}&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:32:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/return-timeout/m-p/164772#M186</guid>
      <dc:creator>Daredia</dc:creator>
      <dc:date>2025-06-04T10:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: return_timeout</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/return-timeout/m-p/164780#M187</link>
      <description>&lt;P&gt;I'm not sure what library the http_request() function is coming from, but is it possible that by passing kwargs it is overwriting your query parameters in the URL you are providing? Maybe try this instead:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;api = https://xxxname.yyycompany.com/api/storage/quota/rules/d8b6b371-7b35-11eb-93cf-00a0989bbd8f
Kwargs = {"space": {"hard_limit": '1073741824'}, "return_timeout": 30}
Call = http_request('patch', api, kwargs)&lt;/LI-CODE&gt;&lt;P&gt;Alternatively, if you are using Python are you aware of the &lt;A href="https://pypi.org/project/netapp-ontap/" target="_self"&gt;netapp-ontap&lt;/A&gt; library? It may help you. Here is what the same operation would look like there:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;from netapp_ontap import HostConnection
from netapp_ontap.resources import QuotaRule

rule = QuotaRule(uuid="d8b6b371-7b35-11eb-93cf-00a0989bbd8f")
rule.space = {"hard_limit": 1073741824}
rule.patch()&lt;/LI-CODE&gt;&lt;P&gt;By default, it always waits for jobs to finish (polls them until they do). You can see more information and examples in the docs.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 11:20:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/return-timeout/m-p/164780#M187</guid>
      <dc:creator>RobertBlackhart</dc:creator>
      <dc:date>2021-03-10T11:20:42Z</dc:date>
    </item>
  </channel>
</rss>

