from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.plans.list()
# Handle response
print(res){
"data": [
{
"id": "plan_g1mbDw8BOLv5B",
"type": "plans",
"attributes": {
"slug": "m4-metal-small-42",
"name": "m4.metal.small-42",
"features": [],
"specs": {
"cpu": {
"type": "E-2276G",
"clock": 3.8,
"cores": 6,
"count": 1
},
"memory": {
"total": 32
},
"drives": [
{
"count": 1,
"size": "3.8TB",
"type": "SSD"
}
],
"nics": [
{
"count": 1,
"type": "10 Gbps"
}
],
"gpu": {
"count": 4,
"type": "NVIDIA H100",
"vram_per_gpu": null,
"interconnect": null
}
},
"regions": [
{
"name": "Brazil",
"deploys_instantly": [],
"locations": {
"available": [
"SAO"
],
"in_stock": [
"SAO"
]
},
"stock_level": "medium",
"pricing": {
"USD": {
"hour": 10,
"month": 50,
"year": 100
},
"BRL": {
"hour": 53,
"month": 108.5,
"year": 205
}
}
}
]
}
}
],
"meta": {}
}Lists all plans. Availability by region is included in attributes.regions.locations.available[*] node for a given plan.
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.plans.list()
# Handle response
print(res){
"data": [
{
"id": "plan_g1mbDw8BOLv5B",
"type": "plans",
"attributes": {
"slug": "m4-metal-small-42",
"name": "m4.metal.small-42",
"features": [],
"specs": {
"cpu": {
"type": "E-2276G",
"clock": 3.8,
"cores": 6,
"count": 1
},
"memory": {
"total": 32
},
"drives": [
{
"count": 1,
"size": "3.8TB",
"type": "SSD"
}
],
"nics": [
{
"count": 1,
"type": "10 Gbps"
}
],
"gpu": {
"count": 4,
"type": "NVIDIA H100",
"vram_per_gpu": null,
"interconnect": null
}
},
"regions": [
{
"name": "Brazil",
"deploys_instantly": [],
"locations": {
"available": [
"SAO"
],
"in_stock": [
"SAO"
]
},
"stock_level": "medium",
"pricing": {
"USD": {
"hour": 10,
"month": 50,
"year": 100
},
"BRL": {
"hour": 53,
"month": 108.5,
"year": 205
}
}
}
]
}
}
],
"meta": {}
}The plan name to filter by
The plan slug to filter by
The location of the site to filter by
The stock level at the site to filter by
unavailable, low, medium, high, unique The stock available at the site to filter by
Filter by the existence of an associated GPU
The ram size in Gigabytes to filter by, should be used with the following options: [eql] to filter for values equal to the provided value. [gte] to filter for values greater or equal to the provided value. [lte] to filter by values lower or equal to the provided value.
The disk size in Gigabytes to filter by, should be used with the following options: [eql] to filter for values equal to the provided value. [gte] to filter for values greater or equal to the provided value. [lte] to filter by values lower or equal to the provided value.
Success
Show child attributes
Was this page helpful?