from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.regions.list(page_size=20, page_number=1)
while res is not None:
# Handle items
res = res.next(){
"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.
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.regions.list(page_size=20, page_number=1)
while res is not None:
# Handle items
res = res.next(){
"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?