Move an IP to Reserved IPs
curl --request POST \
--url https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"address": "203.0.113.50",
"type": "ipv4",
"gateway": "203.0.113.1",
"cidr": 24,
"rdns": null,
"subnet": "203.0.113.0/24",
"location": {
"id": 1,
"short_code": "nl",
"description": "Amsterdam, NL"
},
"server": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"uuid_short": "a1b2c3d4",
"hostname": "web-01"
},
"reserved_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Missing or invalid Authorization header. Use: Authorization: Bearer <token>"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Server not found."
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Server IPs
Move an IP to Reserved IPs
Takes a secondary IP address off the server and keeps it as one of your reserved IPs, to attach to another server on the same node or to deploy a new server with. The primary IPv4 or IPv6 address cannot be moved. An address that was not reserved yet counts towards your reserved IP limit; the move does not count against the weekly removal limit. Remove the address from the server’s network configuration afterwards.
POST
/
servers
/
{server}
/
ips
/
{address}
/
move-to-reserved
Move an IP to Reserved IPs
curl --request POST \
--url https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved \
--header 'Authorization: Bearer <token>'import requests
url = "https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://console.cloudblast.io/api/v2/servers/{server}/ips/{address}/move-to-reserved")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"address": "203.0.113.50",
"type": "ipv4",
"gateway": "203.0.113.1",
"cidr": 24,
"rdns": null,
"subnet": "203.0.113.0/24",
"location": {
"id": 1,
"short_code": "nl",
"description": "Amsterdam, NL"
},
"server": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"uuid_short": "a1b2c3d4",
"hostname": "web-01"
},
"reserved_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Missing or invalid Authorization header. Use: Authorization: Bearer <token>"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Server not found."
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
API token from your CloudBlast account settings. Pass as Authorization: Bearer <token>.
Path Parameters
Server identifier — any of: numeric id, uuid_short (8 chars), or full uuid (36 chars).
The IP address to move (e.g., 203.0.113.50)
Response
The address, now one of your reserved IPs
Show child attributes
Show child attributes