Refresh Static(Datacenter/ISP) IPs

API endpoint: POST /api/zone/ips/refresh
POST body
Required :
  • zone=ZONE [string]
Optional :
  • ips=["ip1","ip2"]: IPs to refresh
    * Note : If refresh is needed for all allocated IPs, then ips parameter should be omitted
    See pricing for refreshing datacenter IPs
  • country: new IPs' country (e.g. us)
  • country_city: new IPs' city (e.g. us-chicago)
Sample Response :
Response will output all allocated IPs in the Zone including the refreshed IPs.
curl "" -H "Content-Type: application/json" -H "Authorization: Bearer API_TOKEN" -d "{\"zone\":\"ZONE\",\"ips\":[\"ip1\",\"ip2\"]}"


#!/usr/bin/env node
	method: 'POST',
	url: '',
	json: {'zone':'ZONE','ips':['ip1','ip2']},
	headers: {'Authorization': 'Bearer API_TOKEN'},
}).then(function(data){ console.log(data); },
	function(err){ console.error(err); });


package example;

import org.apache.http.HttpHost;
import org.apache.http.client.fluent.*;

public class Example {
  public static void main(String[] args) throws Exception {
String body = "{\"zone\":\"ZONE\",\"ips\":[\"ip1\",\"ip2\"]}"; String res = Executor.newInstance() .addHeader("Authorization", "Bearer API_TOKEN")

.bodyString(body, ContentType.APPLICATION_JSON))

System.out.println(res) }



using System;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;

public class Program {
  public static async Task Main() {
    var client = new HttpClient();
    var requestMessage = new HttpRequestMessage {
      Method = HttpMethod.Post,
RequestUri = new Uri(""), Headers = { {"Authorization", "Bearer API_TOKEN"} },
Content = new StringContent(JsonConvert.SerializeObject(new {
zone = "ZONE", ips = [ "ip1", "ip2" ]
}), Encoding.UTF8, "application/json")) }; var response = await client.SendAsync(requestMessage); var responseString = await response.Content.ReadAsStringAsync(); Console.WriteLine(responseString); } }


#!/usr/bin/env python
print('If you get error "ImportError: No module named requests", please install it:\n$ sudo pip install requests');
import requests

data = {'zone': 'ZONE','ips':['ip1','ip2']} headers = {'Authorization': 'Bearer API_TOKEN'} r ='', data=data, headers=headers) print(r.content)

Was this article helpful?