#Setting thresholds via Ansible
1 messages · Page 1 of 1 (latest)
So all the auto size variables (Grow threshold %, Max and min size, and shrink Threshold %) can be controled with the volume auto size module. https://docs.ansible.com/ansible/devel/collections/netapp/ontap/na_ontap_volume_autosize_module.html#ansible-collections-netapp-ontap-na-ontap-volume-autosize-module
Thanks Chris. Yeah, I see all of the auto size parameters in that module, but the Volume Nearly Full and Volume Full parameters don't appear to exist in any of the Ansible modules.
I'm not sure the REST API has those parameters. i'm looking at the Zapi to REST guide for volume modify and i see there listed a NA
You can set these values using the na_ontap_rest_cli module:
- name: Modify volume full and nearly full thresholds netapp.ontap.na_ontap_rest_cli: command: "volume" verb: PATCH params: { "volume": "{{ volume_name }}" } body: { "space-full-threshold-percent": "{{ volume_size_full_threshold }}", "space-nearly-full-threshold-percent": "{{ volume_size_nearly_full_threshold }}", }