Solved

Proxy Whitelist for a Subnet


Badge
Hello,

I'm attempting to configure a subnet whitelist for PC and when using the v1 api it won't allow me to add the entry. I'm just using PUT to place and entry in this format: 10.0.0.0/255.0.0.0 just like I do in the GUI. It is giving me the "Invalid whitelist entry 'IPV4_ADDRESS:10.0.0.0/255.0.0.0'"

I haven't had luck finding any help on the api explorer or the developer guides online. Any help by the community is greatly appreciated.

Thanks
icon

Best answer by itguyadam 9 January 2019, 15:59

After abandoning the API method and trying to do this via ncli i found that there are different proxy target types. I was using a target type of IPV4_ADDRESS because that was the only type I knew of, but the NCLI page references a type of IPV4_NETWORK_MASK. i switched my code to reflect that and it worked like a champ.

View original

2 replies

Badge
After abandoning the API method and trying to do this via ncli i found that there are different proxy target types. I was using a target type of IPV4_ADDRESS because that was the only type I knew of, but the NCLI page references a type of IPV4_NETWORK_MASK. i switched my code to reflect that and it worked like a champ.
Userlevel 3
Badge +12
@itguyadam Try this

code:
curl -k -s https://:9440/PrismGateway/services/rest/v1/cluster/nfs_whitelist/add_list  -XPOST -d '["10.0.0.0/255.0.0.0"]' --header "content-type:application/json" --header "accept:application/json'

Reply