We are trying to manage replication throttling on our NetApp systems in smaller locations. Instead of just setting the value every time, I would like to check the currently configured value for the replication throttle option first.
Using the rest_cli module, I can set the option without any problems. However, when I try to retrieve this option, I do get the option name, but the value is missing.
I also tried accessing it directly via the API call to:
https://<host-name>/api/private/cli/options/
But there as well, I only get the option names, not the actual values.
Here is the task I’m using:
- name: Get outgoing replication throttle status (SSH) via RestAPI
netapp.ontap.na_ontap_rest_cli:
hostname: "{{ inventory_hostname }}"
username: "{{ ansible_user }}"
password: "{{ ansible_password }}"
command: options
verb: GET
params:
option_name: replication.throttle.enable
Can someone help me figure out how to also retrieve the option value?