@glacial moth reported this error in ansible channel - https://discordapp.com/channels/855068651522490400/1097931674743996436/1097931674743996436
"msg": "Error creating volume clone new_clone: calling: storage/volumes: got {'message': 'Specifying a value for \"qos.policy.name\" is not valid for a volume FlexClone creation.', 'code': '918247'}.",
ZAPI to REST equivalent document has qos.policy.name for configuration qos policy group.
https://docs.netapp.com/us-en/ontap-restmap-9101/volume.html#volume-clone-create
but using qos.policy.name returns error that its not valid for flex clone creation, below is debug log.
{'method': 'POST', 'url': 'https://ontap_hostname/api/storage/volumes', 'verify': False, 'params': {'return_timeout': 30, 'return_records': 'true'}, 'timeout': 60, 'json': {'name': 'ansibleVolume12_clone', 'clone.parent_volume.name': 'ansibleVolume12', 'clone.is_flexclone': True, 'svm.name': 'ansibleSVM', 'qos.policy.name': 'policy_1'}, 'headers': 'redacted', 'auth_args': 'redacted'}
is it documentation typo or bug in REST api?