#na_ontap_quotas module - threshold unsupported in REST

1 messages · Page 1 of 1 (latest)

jovial kettle
#

We're currently going through the process of updating some of our processes that relied on older ZAPI Ansible modules to the newer REST modules. When updating our quota resizing processes, we got the following message:

[WARNING]: Falling back to ZAPI because of unsupported option(s) or option
value(s) in REST: ['policy', 'threshold']

The documentation does confirm that both of these are only supported in ZAPI: https://docs.ansible.com/ansible/latest/collections/netapp/ontap/na_ontap_quotas_module.html

The policy option isn't a huge deal, but the threshold option is kind of a big deal as it's set across all of our volumes. Is there a reason that this is not supported with the REST API and is there maybe a thought to add support?

Maybe this would be better to post in the #1063542514780475493 channel...

tight merlin
#

If the option missing from REST then #1063542514780475493 would be the right place to ask it. If it been adding in a recent version of REST (and we just missed it) then here would be the right place and we can create a story to add it

jovial kettle
#

thanks, @tight merlin – I'll get something posted in that channel

dapper grove
#

You could work around it with the rest_cli module.
- name: set quota threshold netapp.ontap.na_ontap_rest_cli: command: volume/quota/policy/rule verb: PATCH params: vserver: "{{ vserver }}" volume: "{{ volume }}" policy_name: default type: tree target: "/vol/{{ volume }}/{{ qtree }}" body: threshold: 1200MB