Skip to content
Docs

    Operations

    Get Operation Details
    client.Operations.Get(ctx, operationID) (*Operation, error)
    GET/v1/operations/{operation_id}
    List Operations
    client.Operations.List(ctx, query) (*Cursor[Operation], error)
    GET/v1/operations
    ModelsExpand Collapse
    type Operation struct{…}

    Operation details.

    ID string

    Unique identifier for the Operation.

    CreatedAt Time

    When the Operation was created.

    formatdate-time

    Structured details about what an operation is changing.

    Map of changed field names to their from/to diffs. Keys depend on the parent operation’s kind+type.

    From OperationFieldDiffFromUnion

    Previous value.

    One of the following:
    string
    float64
    bool
    type OperationFieldDiffFromArray []string
    To OperationFieldDiffToUnion

    New value.

    One of the following:
    string
    float64
    bool
    type OperationFieldDiffToArray []string

    Kind of Operation.

    One of the following:
    const OperationKindVM OperationKind = "vm"
    const OperationKindVolume OperationKind = "volume"
    const OperationKindVPC OperationKind = "vpc"
    const OperationKindFirewallRule OperationKind = "firewall_rule"
    const OperationKindNKSCluster OperationKind = "nks_cluster"
    const OperationKindNKSNodePool OperationKind = "nks_node_pool"
    ProjectID string

    Project ID the Operation belongs to.

    ResourceID string

    ID of the resource that the Operation is acting on.

    Status of the Operation.

    One of the following:
    const OperationStatusPending OperationStatus = "pending"
    const OperationStatusRunning OperationStatus = "running"
    const OperationStatusDone OperationStatus = "done"
    const OperationStatusFailed OperationStatus = "failed"
    const OperationStatusUnknown OperationStatus = "unknown"

    Type of Operation.

    One of the following:
    const OperationTypeCreate OperationType = "create"
    const OperationTypeUpdate OperationType = "update"
    const OperationTypeDelete OperationType = "delete"
    const OperationTypeRestart OperationType = "restart"
    UpdatedAt Time

    When the Operation was updated.

    formatdate-time
    type OperationChanges map[string, OperationFieldDiff]

    Map of changed field names to their from/to diffs. Keys depend on the parent operation’s kind+type.

    From OperationFieldDiffFromUnion

    Previous value.

    One of the following:
    string
    float64
    bool
    type OperationFieldDiffFromArray []string
    To OperationFieldDiffToUnion

    New value.

    One of the following:
    string
    float64
    bool
    type OperationFieldDiffToArray []string
    type OperationDetails struct{…}

    Structured details about what an operation is changing.

    Map of changed field names to their from/to diffs. Keys depend on the parent operation’s kind+type.

    From OperationFieldDiffFromUnion

    Previous value.

    One of the following:
    string
    float64
    bool
    type OperationFieldDiffFromArray []string
    To OperationFieldDiffToUnion

    New value.

    One of the following:
    string
    float64
    bool
    type OperationFieldDiffToArray []string
    type OperationFieldDiff struct{…}

    A single field’s before/after pair on an operation. Values are scalars (string, number, boolean) or string arrays.

    From OperationFieldDiffFromUnion

    Previous value.

    One of the following:
    string
    float64
    bool
    type OperationFieldDiffFromArray []string
    To OperationFieldDiffToUnion

    New value.

    One of the following:
    string
    float64
    bool
    type OperationFieldDiffToArray []string
    type OperationKind string

    Kind of Operation.

    One of the following:
    const OperationKindVM OperationKind = "vm"
    const OperationKindVolume OperationKind = "volume"
    const OperationKindVPC OperationKind = "vpc"
    const OperationKindFirewallRule OperationKind = "firewall_rule"
    const OperationKindNKSCluster OperationKind = "nks_cluster"
    const OperationKindNKSNodePool OperationKind = "nks_node_pool"
    type OperationList struct{…}
    Items []Operation
    ID string

    Unique identifier for the Operation.

    CreatedAt Time

    When the Operation was created.

    formatdate-time

    Structured details about what an operation is changing.

    Map of changed field names to their from/to diffs. Keys depend on the parent operation’s kind+type.

    From OperationFieldDiffFromUnion

    Previous value.

    One of the following:
    string
    float64
    bool
    type OperationFieldDiffFromArray []string
    To OperationFieldDiffToUnion

    New value.

    One of the following:
    string
    float64
    bool
    type OperationFieldDiffToArray []string

    Kind of Operation.

    One of the following:
    const OperationKindVM OperationKind = "vm"
    const OperationKindVolume OperationKind = "volume"
    const OperationKindVPC OperationKind = "vpc"
    const OperationKindFirewallRule OperationKind = "firewall_rule"
    const OperationKindNKSCluster OperationKind = "nks_cluster"
    const OperationKindNKSNodePool OperationKind = "nks_node_pool"
    ProjectID string

    Project ID the Operation belongs to.

    ResourceID string

    ID of the resource that the Operation is acting on.

    Status of the Operation.

    One of the following:
    const OperationStatusPending OperationStatus = "pending"
    const OperationStatusRunning OperationStatus = "running"
    const OperationStatusDone OperationStatus = "done"
    const OperationStatusFailed OperationStatus = "failed"
    const OperationStatusUnknown OperationStatus = "unknown"

    Type of Operation.

    One of the following:
    const OperationTypeCreate OperationType = "create"
    const OperationTypeUpdate OperationType = "update"
    const OperationTypeDelete OperationType = "delete"
    const OperationTypeRestart OperationType = "restart"
    UpdatedAt Time

    When the Operation was updated.

    formatdate-time
    type OperationStatus string

    Status of the Operation.

    One of the following:
    const OperationStatusPending OperationStatus = "pending"
    const OperationStatusRunning OperationStatus = "running"
    const OperationStatusDone OperationStatus = "done"
    const OperationStatusFailed OperationStatus = "failed"
    const OperationStatusUnknown OperationStatus = "unknown"
    type OperationType string

    Type of Operation.

    One of the following:
    const OperationTypeCreate OperationType = "create"
    const OperationTypeUpdate OperationType = "update"
    const OperationTypeDelete OperationType = "delete"
    const OperationTypeRestart OperationType = "restart"