import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.regions.get({});
for await (const page of result) {
console.log(page);
}
}
run();{
"data": [
{
"id": "loc_k0RyqvNvqW36X",
"type": "regions",
"attributes": {
"name": "Luettgen Group",
"slug": "luettgen-group",
"facility": "Luettgen Group",
"country": {
"name": "Grant and Sons",
"slug": "grant-and-sons"
},
"type": "core"
}
}
],
"meta": {}
}Lists all available locations. For server availability by location, please see the Plans API.
import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.regions.get({});
for await (const page of result) {
console.log(page);
}
}
run();{
"data": [
{
"id": "loc_k0RyqvNvqW36X",
"type": "regions",
"attributes": {
"name": "Luettgen Group",
"slug": "luettgen-group",
"facility": "Luettgen Group",
"country": {
"name": "Grant and Sons",
"slug": "grant-and-sons"
},
"type": "core"
}
}
],
"meta": {}
}Number of items to return per page
x >= 1Page number to return (starts at 1)
x >= 1Success
Show child attributes
Was this page helpful?