The Latitude.sh API gives you programmatic access to all resources available on the platform. With full control over the entire Latitude.sh platform, you can build integrations, custom dashboards, and manage your servers from your own clients.
pip install latitude-python-sdk
To create an API token, go to the Settings & Billing → API Keys page on the dashboard.
The key is shown to your only when it's created. If you lose it, you'll have to roll the key or create a new one.
import latitude
from latitude.models import operations, shared
s = latitude.Latitude()
req = operations.GetRegionRequest(
security=operations.GetRegionSecurity(
bearer="YOUR_API_KEY_HERE",
),
path_params=operations.GetRegionPathParams(
id="unde",
),
)
res = s.regions.get_region(req)
if res.region is not None:
# handle response
delete_api_key
- Delete an API Keyget_api_keys
- List all API Keyspost_api_key
- Create an API Keyupdate_api_key
- Regenerate an API Keyget_current_version
- Get current API versionupdate_current_version
- Update current API versionget_user_profile
- Retrieve the User Profileget_user_teams
- List all User Teamspatch_user_profile
- Update the User Profileget_traffic_consumption
- Retrieve Traffic consumptionget_traffic_quota
- Retrieve Traffic Quotaget_plans_bandwidth
- List all bandwidth packages availableupdate_plans_bandwidth
- Buy or remove bandwidth packagesget_server_deploy_config
- Retrieve the Server Deploy Configupdate_server_deploy_config
- Update the Server Deploy Configget_ip
- Retrieve an IPget_ips
- List IPscreate_ipmi_session
- Generate IPMI credentialsdestroy_team_member
- Remove a Team Memberget_team_members
- List all Team Memberspost_team_members
- Add a Team Memberget_plans_operating_system
- List all operating systems availableget_plan
- Retrieve a Planget_plans
- List all Planscreate_server_action
- Run Server Actioncreate_project
- Create a Projectdelete_project
- Delete a Projectget_project
- Retrieve a Projectget_projects
- List all Projectsupdate_project
- Update a Projectget_region
- Retrieve a Regionget_regions
- List all Regionsserver_exit_rescue_mode
- Exits rescue mode for a Serverserver_start_rescue_mode
- Puts a Server in rescue modeget_role_id
- Retrieve a Roleget_roles
- List all Rolesdelete_project_ssh_key
- Delete a Project SSH Keyget_project_ssh_key
- Retrieve a Project SSH Keyget_project_ssh_keys
- List all Project SSH Keyspost_project_ssh_key
- Create a Project SSH Keyput_project_ssh_key
- Update a Project SSH Keycreate_server_reinstall
- Run Server Reinstallcreate_server
- Deploy a new serverdestroy_server
- Remove a Serverget_server
- Retrieve a Serverget_servers
- List all Serversupdate_server
- Update a Serverget_team
- Retrieve the Current Teampatch_current_team
- Update a Teampost_team
- Create a Teamdelete_project_user_data
- Delete a Project User Dataget_project_user_data
- Retrieve a Project User Dataget_project_users_data
- List all Project User Datapost_project_user_data
- Create a Project User Dataput_project_user_data
- Update a Project User Datadelete_vpn_session
- Delete a VPN Sessionget_vpn_sessions
- List all Active VPN Sessionspost_vpn_session
- Create a VPN Sessionput_vpn_session
- Refresh a VPN Sessionassign_server_virtual_network
- Assign a server to a virtual networkdelete_virtual_networks_assignments
- Delete a Virtual Network Assignmentget_virtual_networks_assignments
- List all servers assigned to virtual networkscreate_virtual_network
- Create a Virtual Networkdestroy_virtual_network
- Delete a Virtual Networkget_virtual_network
- Retrieve a Virtual Networkget_virtual_networks
- List all Virtual Networksupdate_virtual_network
- Update a Virtual Network