Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Latest commit

 

History

History
32 lines (23 loc) · 825 Bytes

File metadata and controls

32 lines (23 loc) · 825 Bytes

Client API

This section provides reference documentation for Jumpstarter's client APIs. Covering topics such as:

  • Listing exporters
  • Requesting a lease
  • Listing leases

please see the Client API Reference for more details.

Listing Exporters

The client library provides a function to list all exporters in the cluster.

from jumpstarter.config.client import ClientConfigV1Alpha1

client = ClientConfigV1Alpha1.from_file("~/.config/jumpstarter/clients/majopela.yaml")
response = client.list_exporters(include_leases=True, include_online=True, page_size=1000)
for exporter in response.exporters:
    if exporter.online:
        print(exporter.name)
        print(exporter.lease)

print("next page token: ", response.next_page_token)
:maxdepth: 1
:hidden:
reference.md