Need help in mapping export-policy check-access command to its equivalent private CLI endpoint. Tried both get and post operations and its giving me "invalid operation" error.
Below is the curl command i used:
curl -X POST "https://cluster/api/private/cli/vserver/export-policy/check-access" -H "accept: application/json" -H "authorization: Basic TOKEN" -d '{"vserver":"vservername", "volume":"volumename", "client_ip":"client-ip-addr", "authentication_method":"sys", "protocol":"nfs3", "access_type":"read-write", "qtree":"qtree-name"}' --insecure
below is the response recieved.
{
"error": {
"message": "invalid operation",
"code": "3"
}