Start a Conversation

Solved!

Go to Solution

1 Rookie

 • 

16 Posts

99

March 7th, 2024 20:21

NFS client modification via Rest

Trying to work on an automated process to add to the clients list of a NFS export via a Rest or a web call.  

The only thing I have found so far is the following PUT but it replaces the existing entries in the client list.  

Example:

Put https:/<server>/platform/16/protocols/nfs/exports/<id>

{"clients":[

   "server2",

   "server3",

 ],

}

The problem is that If server1 is already in the clients list, calling the above adds server2 and server3, but removes server1.  

I could pull the current servers and then add them to the body of the put call along with the new servers, but not 100% that the server 1 would not loose access with it basically being remove and re-added.  

 

Anyone figure a work around for this?  basically want the equivalent of the following isi command:

isi nfs exports modify --id=<id> --add-client <server>.

No Responses!
No Events found!

Top