I am trying to automate DARE (data-at-rest encryption) via python script with REST API calls using volume move.
Two possible options:
1) PATCH /api/storage/volumes/{uuid}
with object "movement" which does not support encrypt_destination parameter
{ "error": { "message": "Unexpected argument "movement.encrypt_destination".", "code": "262179", "target": "movement.encrypt_destination" } }
so I though I would get over it with private call for vol move, but...
2) PATCH /api/private/cli/volume/move
which also doesn't support encrypt-destination parameter
{ "error": { "message": "Unexpected argument "encrypt-destination".", "code": "262179", "target": "encrypt-destination" } }
As per the ONTAPI to REST API mapping, parameter encrypt-destination does not have equivalent for REST - which also confirmed my test calls. https://docs.netapp.com/us-en/ontap-restmap-9151/volume.html#volume-move-start
But can we get that enabled somehow? I think it would be enough for the private API call - it should be equivalent to the CLI command. But it is actually not, because this specific parameter was most probably not enabled for this call.