import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.servers.actions(server_id="sv_WVQJDMVBORbyE", data={
"type": latitudesh_python_sdk.CreateServerActionServersType.ACTIONS,
"attributes": {
"action": latitudesh_python_sdk.CreateServerActionAction.REBOOT,
},
})
# Handle response
print(res)