I already have a policy "MirrorLatest" on my NAS. Now if I try to establish a snapmirror relationship, I get the below mentioned error.
fatal: [vmu811232]: FAILED! => {"changed": false, "msg": "REST API currently does not support 'schedule' - With REST use the policy option to define a schedule."}
Below is the task that I am using in my playbook for this configuration.
- name: Backup CLuster snapmirror create
na_ontap_snapmirror:
state: present
hostname: "{{ Backup_cluster_hostname }}"
username: "{{ username }}"
password: "{{ Backup_cluster_password }}"
use_rest: always
source_endpoint:
path: "{{ svm + ':' + finalvolname }}"
destination_endpoint:
path: "{{ Backup_svm + ':' + backup_finalvolname }}"
schedule: daily
policy: MirrorLatest
validate_certs: "{{ validate_certs | default ('false') }}"
https: true
Someone please try and help on this. @odd stirrup if possible request you to kindly suggest on this.