- Method:
GET
- Path:
/v1/orgs/{org}/operations
- Operation ID:
listOperations
- Tag: Operations
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 |
org |
string (uuid) |
Yes |
The organization’s id. |
| Name |
Type |
Required |
Description |
resource |
string, nullable |
No |
Filter by resource type |
state |
string, nullable |
No |
Filter by operation state |
limit |
integer |
No |
|
| Field |
Type |
Required |
Enum |
Description |
items |
array of OperationRef |
Yes |
|
|
items.attempt |
integer |
Yes |
|
|
items.created_at |
string (date-time) |
Yes |
|
|
items.error_class |
string, nullable |
No |
|
|
items.error_detail |
string, nullable |
No |
|
|
items.finished_at |
string (date-time), nullable |
No |
|
When the operation reached a terminal state. Guaranteed non-null whenever state is succeeded, failed or cancelled – including operations that complete synchronously and are returned already succeeded. null means the operation is still in flight. |
items.id |
string (uuid) |
Yes |
|
|
items.max_attempts |
integer |
Yes |
|
|
items.resource_id |
string |
Yes |
|
|
items.resource_type |
string |
Yes |
|
|
items.state |
string |
Yes |
|
|
items.type |
string |
Yes |
|
|
next_cursor |
string, nullable |
No |
|
|
Every error response is application/problem+json (schema Problem).
| Status |
Meaning |
| 400 |
The request is malformed or failed validation. |
| 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/operations" \
-H "Authorization: Bearer $VIRTSCALE_API_KEY"