#Hi Team what policy does snapmirror REST
1 messages · Page 1 of 1 (latest)
I found this table under DOCS for /snapmirror/policies
mirror-vault async
async-mirror w/all_source_snapshots async w/copy_all_source_snapshots
sync-mirror sync sync
strict-sync-mirror sync strict_sync
automated-failover sync automated_failover```
But it's a bit incomplete. What about the other combination for async-mirror? And ZAPI supports also vault. What is the mapping?
I tried all policies in below list and for everything errors is this policy is not allowed with snapmirror relationship.
cluster2::> snapmirror policy show -type async-mirror -fields policy,type
vserver policy type
cluster2 DPDefault async-mirror
cluster2 MirrorAllSnapshots async-mirror
cluster2 MirrorAllSnapshotsDiscardNetwork async-mirror
cluster2 MirrorLatest async-mirror
4 entries were displayed.
I think ZAPI should work, but plan is to use REST APIs for the customer. which all failing
Let me get you the error
This is the error for all async-mirror type policies
All the policy types mentioned above are working in our environment as expected in REST.
Thats interesting. ONTAP version I'm testing is 9.10. What is your environment version?
Could you please share one sample execution log with -vvv?
Thanks Dhivya! But can you give me output of version command in ONTAP? and ansible playbook execution log with -vvv
so I can compare the details
my bad missed the logs
Dhivya, I see this for snapmirror policy modify. But for me snapmirror create is failing.
@rough ice , could you please help on this?
Hi @rough ice / @unkempt bridge I'm still waiting for an update on this. Could you please help on this?
sync-mirror and async-mirror are supported with REST using our Ansible module. We are updating the module to also support mirror-vault.