GET
/
windows
/
instances
Python (SDK)
import os
from skylight_sdk import Skylight


with Skylight(
    apikey=os.getenv("SKYLIGHT_APIKEY", ""),
) as skylight:

    res = skylight.windows.instances()

    # Handle response
    print(res)
{
  "instances": [
    {
      "assigned_at": "2023-01-01T12:00:00Z",
      "instance_id": "i-123456",
      "knowledge": "unknown",
      "livestream_url": "launchskylight.com/embed/i-123456",
      "state": "running"
    },
    {
      "assigned_at": "2023-01-02T12:00:00Z",
      "instance_id": "i-789012",
      "knowledge": "unknown",
      "livestream_url": "launchskylight.com/embed/i-789012",
      "state": "stopped"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

API key authentication

Response

List of instances retrieved successfully

instances
InstanceStatusResponse · object[]
required

List of instances associated with the API key