import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.plans.getContainersPlan({
planId: "<id>",
});
console.log(result);
}
run();{
"id": "<string>",
"type": "container_plan",
"attributes": {
"slug": "<string>",
"specs": {
"cpu": {
"cores": 123,
"count": 123
},
"memory": {
"total": 123
},
"ephemeral_storage": {
"size": 123
},
"gpu": {
"count": 123,
"type": "<string>"
}
},
"regions": [
{
"name": "<string>",
"locations": {
"available": [
"<string>"
],
"in_stock": [
"<string>"
]
},
"stock_level": "unavailable",
"pricing": {
"USD": {
"minute": 123,
"hour": 123
},
"BRL": {
"minute": 123,
"hour": 123
}
}
}
]
}
}Retrieve a container plan.
import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.plans.getContainersPlan({
planId: "<id>",
});
console.log(result);
}
run();{
"id": "<string>",
"type": "container_plan",
"attributes": {
"slug": "<string>",
"specs": {
"cpu": {
"cores": 123,
"count": 123
},
"memory": {
"total": 123
},
"ephemeral_storage": {
"size": 123
},
"gpu": {
"count": 123,
"type": "<string>"
}
},
"regions": [
{
"name": "<string>",
"locations": {
"available": [
"<string>"
],
"in_stock": [
"<string>"
]
},
"stock_level": "unavailable",
"pricing": {
"USD": {
"minute": 123,
"hour": 123
},
"BRL": {
"minute": 123,
"hour": 123
}
}
}
]
}
}Was this page helpful?