#option snapshot-locking-enabled not available in na_ontap_volume module

1 messages · Page 1 of 1 (latest)

iron granite
#

I need to set the option snapshot-locking-enabled to true with the na_ontap_volume module. But in the documentation this option is missing.
Is there any other way to set this option on a volume.
ONTAP_CLI command:
volume modify -vserver vserver_1 -volume volume_1 -snapshot-locking-enabled true

uncut haven
#

@iron granite hi, we've added this feature to the volume module and it is going to be a part of the next release.

#

You can try using na_ontap_rest_cli module:

 - name: Enable Snapshot Copy Locking
   netapp.ontap.na_ontap_rest_cli:
       hostname: "{{ admin_ip }}"
       username: "{{ username }}"
       password: "{{ password }}"
       command: 'volume'
       verb: 'PATCH'
       params: {'vserver': 'vserver_1', 'volume': 'volume_1'}
       body: {'snapshot-locking-enabled': true}
   register: result