manage_instance
Control GPU instance lifecycle: start, stop, label, reboot, or recycle instances via the Vast.ai API.
Instructions
Control instance state: start/stop/label/reboot/recycle.
start/stop/label: PUT /instances/{id}/ withstateorlabel.reboot: PUT /instances/reboot/{id}/ (stops and starts, preserves GPU priority).recycle: PUT /instances/recycle/{id}/ (destroys and recreates from fresh image pull).
For action="label", the label argument is required.
Examples: manage_instance(instance_id=12345, action="stop") manage_instance(instance_id=12345, action="start") manage_instance(instance_id=12345, action="label", label="my-server") manage_instance(instance_id=12345, action="reboot")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| action | Yes | ||
| instance_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||