Python Swan SDK
Orchestrator
Fetch available instance resources
import json
import swan
swan_orchestrator = swan.resource(api_key='<SWAN_API_KEY>', service_name='Orchestrator')
available_resources = swan_orchestrator.get_instance_resources()
print(available_resources)[InstanceResource({
"hardware_id": 0,
"instance_type": "C1ae.small",
"description": "CPU only \u00b7 2 vCPU \u00b7 2 GiB",
"type": "CPU",
"region": [
"Quebec-CA",
"North Carolina-US"
],
"price": "1.2",
"status": "available",
"snapshot_id": 1731441600,
"expiry_time": 1731442218
}), ...]Create and deploy a task
Check information of an existing task
Access application instances of an existing task
Renew an existing task
Terminate an existing task
Last updated