post https://app-api.geonode.com/api/configuration/active/whitelisted-ips
Adds up to 10 IP addresses per request.
Example Request:
curl -X POST "https://app-api.geonode.com/api/configuration/active/whitelisted-ips" \
--user "geonode_username:geonode_password" \
-H "Content-Type: application/json" \
-d '{"ips": [{"ip": "161.142.148.140", "description": "mac-m1"}]}'
Example Response (200 - Success):
{
"data": [
{
"ip": "161.142.148.150",
"description": "updated-description",
"_id": "67a0a5bbb412ddaf6f139b3b"
},
{
"ip": "161.142.148.141",
"description": "mac-m1",
"_id": "67a875f693afe58d40f2e93d"
},
{
"ip": "161.142.148.140",
"description": "mac-m1",
"_id": "67a89e27740e4ab9d8496d2b"
}
],
"message": {
"title": "Updated",
"body": "Whitelisted IPs saved.",
"variant": "success"
}
}