Skip to main content

OperationResponse

An asynchronous operation (e.g. VM delete or rebuild) and its current state.

idstring<uuid>

Id of the operation.

typeOperationType (string)

Type of the resource.

Possible values: [VmDeprovision, VmProvision, VmRebuild]

statusApiOperationStatus (string)

Current status of the resource.

Possible values: [Queued, InProgress, Compensation, Succeeded, Failed]

projectIdstring<uuid>

Id of the project the operation belongs to.

createdAtstring<date-time>

When the operation was created (accepted).

updatedAtstring<date-time>

When the operation was last updated.

startedAtstring<date-time>nullable

When the operation started executing, if it has started.

finishedAtstring<date-time>nullable

When the operation finished (succeeded or failed), if it has finished.

failureCodeOperationFailureCode (string)

Reason the operation ended in a terminal failure. Set only for operations that failed.

Possible values: [insufficientCapacity, timeout, internal]

currentStatestringnullable

Optional diagnostic label describing the operation's current step. The set of possible values is not stable and should not be relied on programmatically — use status for logic.

OperationResponse
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "VmDeprovision",
"status": "Queued",
"projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z",
"startedAt": "2024-07-29T15:51:28.071Z",
"finishedAt": "2024-07-29T15:51:28.071Z",
"failureCode": "insufficientCapacity",
"currentState": "string"
}