hi team, I am trying to find out if I can use the "records" option with the export-policy rule post API to create a new rule for multiple (different) export policies. there is a variable (policy.id) in the API "/protocols/nfs/export-policies/{policy.id}/rules". This is to provide access for a new compute node to multiple volumes, each volume has its own export-policy.
I am able to create multiple volumes using the following, but there is no variable in the volume creation API:
curl -X POST 'https://<mgmt-ip>/api/storage/volumes' -H 'accept: application/hal+json' -d '{ "records": [
{ "svm": { "name": "svm1" }, "name" : "vol1", "size": "1GB", "aggregates": [ { "name": "aggr1" } ] },
{ "svm": { "name": "svm1" }, "name" : "vol2", "size": "1GB", "aggregates": [ { "name": "aggr1" } ] } ] }'