- Method:
GET
- Path:
/v1/orgs/{org}/compute/vms/{vm_id}/scheduled-actions
- Operation ID:
listVmScheduledActions
- Tag: Compute
Send Authorization: Bearer <credential>. The credential is either an API key (vsk_…) created for an organization, or an OIDC access token obtained by signing in to VirtScale.
| Name |
Type |
Required |
Description |
vm_id |
string (uuid) |
Yes |
VirtScale instance id |
org |
string (uuid) |
Yes |
The organization’s id. |
| Field |
Type |
Required |
Enum |
Description |
items |
array of ScheduledActionOut |
Yes |
|
|
items.action |
string |
Yes |
|
reboot. |
items.created_at |
string (date-time) |
Yes |
|
|
items.day_of_month |
integer, nullable |
Yes |
|
kind=monthly: 1 to 28. |
items.day_of_week |
integer, nullable |
Yes |
|
kind=weekly: 0 = Monday .. 6 = Sunday. |
items.id |
string (uuid) |
Yes |
|
|
items.kind |
string |
Yes |
|
once | weekly | monthly. |
items.last_operation_id |
string (uuid), nullable |
Yes |
|
The restart operation the last run queued, when it queued one. |
items.last_outcome |
string, nullable |
Yes |
|
queued | refused | missed – what happened the last time it came due. missed means it was reached too late and was skipped rather than run late. |
items.last_outcome_detail |
string, nullable |
Yes |
|
Why, for refused and missed, as a sentence. |
items.last_run_at |
string (date-time), nullable |
Yes |
|
When it last came due, if it has. |
items.next_run_at |
string (date-time), nullable |
Yes |
|
The next run as an instant; null once the schedule has completed or been cancelled. |
items.run_at |
string (date-time), nullable |
Yes |
|
kind=once: when it runs. |
items.state |
string |
Yes |
|
scheduled | completed | cancelled. |
items.time_of_day |
string (time), nullable |
Yes |
|
weekly and monthly: the wall-clock time, in timezone. |
items.timezone |
string |
Yes |
|
The IANA timezone the schedule keeps its time in. |
items.updated_at |
string (date-time) |
Yes |
|
|
items.vm_id |
string (uuid) |
Yes |
|
|
next_cursor |
string, nullable |
No |
|
|
scheduling_enabled |
boolean |
Yes |
|
Whether this service accepts new schedules right now. Existing ones can always be listed and cancelled, whatever this says. |
Every error response is application/problem+json (schema Problem).
| Status |
Meaning |
| 401 |
The credential is missing or invalid. |
| 404 |
The resource does not exist. |
| default |
Any other status is possible; the code field identifies the error. |
curl "https://api.virtscale.nl/v1/orgs/$ORG_ID/compute/vms/$VM_ID/scheduled-actions" \
-H "Authorization: Bearer $VIRTSCALE_API_KEY"