Update a RADIUS Server Public IP Address via API

To update the JumpCloud RADIUS server public IP via the API, the following is needed:

  • Your API Key 
  • The ObjectId of the RADIUS server 
  • The new IP address 
  • The name of the RADIUS server 
  • The shared secret

To get a list of all RADIUS servers in the organization:

curl \
  -X 'GET' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H "x-api-key: YOUR_API_KEY" \
  "https://console.jumpcloud.com/api/radiusservers/ "
/* Remove the space before " in the last line of code. */

Note the RADIUS server _id from the results above to be updated, then, to update the RADIUS server with a given _id, replace :id in the below URL:

curl \
  -X 'PUT' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"name": "YOUR_RADIUS_SERVER_NAME", "networkSourceIp" : "YOUR.NEW.IP.ADDR", "sharedSecret": "YOUR_SHARED_SECRET"}' \
  "https://console.jumpcloud.com/api/radiusservers/:id "
/* Remove the space before " in the last line of code. */

For an example bash script that can be configured to run as a regular cron job on a system that is on a network using your dynamic public IP, see our support repository on GitHub.

Back to Top

List IconIn this Article

Still Have Questions?

If you cannot find an answer to your question in our FAQ, you can always contact us.

Submit a Case