speakeasy-sdks / latitude-python-sdk

Latitude Python SDK
https://docs.latitude.sh/reference/summary
MIT License
1 stars 0 forks source link
api python sdk sdk-python server vm

Everything you need to deploy and manage single-tenant, high-performance bare metal servers.

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.

SDK Installation

pip install latitude-python-sdk

Run on Repl.it

Authentication

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.

SDK Example Usage

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

SDK Available Operations

api_keys

api_version

account

bandwidth

bandwidth_packages

deploy_config

ip_addresses

ipmi_credentials

members

operating_systems

plans

power_actions

projects

regions

rescue_mode

roles

ssh_keys

server_reinstall

servers

teams

user_data

vpn_sessions

virtual_network_assignments

virtual_networks

SDK Generated by Speakeasy