DELETE cluster/nfs_whitelist/{name:.+} | Nutanix Community
Skip to main content
Solved

DELETE cluster/nfs_whitelist/{name:.+}

  • January 21, 2019
  • 2 replies
  • 1675 views

I have been trying to remove an existing nfs whitelisted machine through Rest API explorer.

API: cluster/nfs_whitelist/{name:.+}

I have tried giving the path parameter with different combination of IP/sunbnet mask but all were failed with
error message: Specified NFS Whitelist does not exist. Here, machine IP is whitelisted as I can see it in Filesystem whitelists but
I am not able to figure out the exact representation of path parameter. If anyone knows, then please tell me.
Thanks in advance.

Best answer by sandeepmp

@Pawan_sahu

You can try below.

  1. Request URL: https://Server_ip:9440/PrismGateway/services/rest/v1/cluster/nfs_whitelist/remove_list
  2. Request Method: POST
  3. Body : ["Ip/subnet"]
View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

sandeepmp
Nutanix Employee
Forum|alt.badge.img+19
  • Nutanix Employee
  • 64 replies
  • Answer
  • January 21, 2019
@Pawan_sahu

You can try below.

  1. Request URL: https://Server_ip:9440/PrismGateway/services/rest/v1/cluster/nfs_whitelist/remove_list
  2. Request Method: POST
  3. Body : ["Ip/subnet"]

  • Author
  • Voyager
  • 1 reply
  • January 21, 2019
Hi,
Thanks for help. This is working for me. But it gives Http status 200 for any IP(whether it is whitelisted or not).