from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.plans.list_bandwidth(api_version="2023-06-01", page_size=20, page_number=1)
while res is not None:
# Handle items
res = res.next(){
"data": [
{
"id": "chile-54",
"type": "bandwidth_plan",
"attributes": {
"region": "Chile 54",
"locations": [
"ASH",
"SAO"
],
"pricing": {
"usd": {
"monthly": 5000,
"yearly": 6000
},
"brl": {
"monthly": 8000,
"yearly": null
}
}
}
}
],
"meta": {}
}Lists all bandwidth plans.
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.plans.list_bandwidth(api_version="2023-06-01", page_size=20, page_number=1)
while res is not None:
# Handle items
res = res.next(){
"data": [
{
"id": "chile-54",
"type": "bandwidth_plan",
"attributes": {
"region": "Chile 54",
"locations": [
"ASH",
"SAO"
],
"pricing": {
"usd": {
"monthly": 5000,
"yearly": 6000
},
"brl": {
"monthly": 8000,
"yearly": null
}
}
}
}
],
"meta": {}
}The plan ID to filter by
Number of items to return per page
x >= 1Page number to return (starts at 1)
x >= 1Was this page helpful?