#Setting thresholds via Ansible

1 messages · Page 1 of 1 (latest)

spring lake
#

Is it possible to set the Volume Nearly Full and Volume Full threshold Percent parameters through Ansible?

tepid shadow
spring lake
#

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.

tepid shadow
#

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

nova rock
#

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 }}", }