from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.operating_systems.list(page_size=20, page_number=1)
while res is not None:
# Handle items
res = res.next(){
"data": [
{
"id": "os_mw49QDB5qagKb",
"type": "operating_system",
"attributes": {
"name": "windows_server_2012_r2_std_v281 11.77",
"distro": "CentOS 1",
"slug": "debian_121",
"version": "11.77",
"user": "Rosalinda",
"features": {},
"provisionable_on": [
"g3.a100.medium-39",
"c2.medium.x86-40"
]
}
}
],
"meta": {}
}Lists all operating systems available to deploy and reinstall.
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.operating_systems.list(page_size=20, page_number=1)
while res is not None:
# Handle items
res = res.next(){
"data": [
{
"id": "os_mw49QDB5qagKb",
"type": "operating_system",
"attributes": {
"name": "windows_server_2012_r2_std_v281 11.77",
"distro": "CentOS 1",
"slug": "debian_121",
"version": "11.77",
"user": "Rosalinda",
"features": {},
"provisionable_on": [
"g3.a100.medium-39",
"c2.medium.x86-40"
]
}
}
],
"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?