import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.elasticIps.listElasticIps({});
for await (const page of result) {
console.log(page);
}
}
run();{
"data": [
{
"id": "eip_KeQbB4BoO6x10",
"type": "elastic_ips",
"attributes": {
"address": "177.54.156.7",
"family": "IPv4",
"prefix_length": 32,
"mode": "routed",
"status": "active",
"created_at": "2026-02-24T17:06:28.108Z",
"server": {
"id": "sv_2GmAlJ6BXlK1a",
"hostname": "my-server",
"primary_ipv4": "177.54.157.75"
},
"project": {
"id": "proj_AoW6vRnwkvLn0",
"name": "My Project",
"slug": "my-project"
},
"region": {
"id": "region_sa_sao_paulo",
"name": "São Paulo",
"location": {
"id": "site_sao",
"name": "São Paulo",
"slug": "SAO"
}
}
}
}
],
"meta": {}
}List all Elastic IPs for the authenticated team. Elastic IPs are static public IP addresses that can be assigned to servers and moved between servers within the same project.
Note: This feature requires the elastic_ips feature flag to be enabled for your team. When the flag is disabled, the endpoint returns an empty list.
import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.elasticIps.listElasticIps({});
for await (const page of result) {
console.log(page);
}
}
run();{
"data": [
{
"id": "eip_KeQbB4BoO6x10",
"type": "elastic_ips",
"attributes": {
"address": "177.54.156.7",
"family": "IPv4",
"prefix_length": 32,
"mode": "routed",
"status": "active",
"created_at": "2026-02-24T17:06:28.108Z",
"server": {
"id": "sv_2GmAlJ6BXlK1a",
"hostname": "my-server",
"primary_ipv4": "177.54.157.75"
},
"project": {
"id": "proj_AoW6vRnwkvLn0",
"name": "My Project",
"slug": "my-project"
},
"region": {
"id": "region_sa_sao_paulo",
"name": "São Paulo",
"location": {
"id": "site_sao",
"name": "São Paulo",
"slug": "SAO"
}
}
}
}
],
"meta": {}
}The project ID or slug to filter by
The server ID to filter by
The status to filter by
configuring, active, moving, releasing, error Number of items to return per page
x >= 1Page number to return (starts at 1)
x >= 1Was this page helpful?