hetzner/image_actions

Types

ImageActionSortOption = enum
  sortId = "id", sortIdAsc = "id:asc", sortIdDesc = "id:desc",
  sortCommand = "command", sortCommandAsc = "command:asc",
  sortCommandDesc = "command:desc", sortStatus = "status",
  sortStatusAsc = "status:asc", sortStatusDesc = "status:desc",
  sortProgress = "progress", sortProgressAsc = "progress:asc",
  sortProgressDesc = "progress:desc", sortStarted = "started",
  sortStartedAsc = "started:asc", sortStartedDesc = "started:desc",
  sortFinished = "finished", sortFinishedAsc = "finished:asc",
  sortFinishedDesc = "finished:desc"
ImageActionStatusOption = enum
  statusRunning = "running", statusSuccess = "success", statusError = "error"

Procs

proc getImagesIdActions(client: HetznerClient; id: int64;
                        sort: set[ImageActionSortOption] = {};
                        status: set[ImageActionStatusOption] = {}): Future[
    GetImagesIdActionsResponse] {....stackTrace: false, raises: [Exception,
    ValueError, KeyError, HttpRequestError, LibraryError, SslError, OSError,
    IOError, ProtocolError, OpenParserJsonError, HetznerClientError],
                                  tags: [RootEffect, ReadIOEffect, TimeEffect],
                                  forbids: [].}
Returns all Action objects for an Image. You can sort the results by using the sort URI parameter, and filter them with the status parameter.
proc getImagesIdActionsActionId(client: HetznerClient; id: int64;
                                actionId: int64): Future[
    GetImagesIdActionsActionIdResponse] {....stackTrace: false, raises: [Exception,
    ValueError, HttpRequestError, LibraryError, SslError, OSError, IOError,
    ProtocolError, KeyError, OpenParserJsonError, HetznerClientError],
    tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Returns a specific Action for an Image.
proc postImagesIdActionsChangeProtection(client: HetznerClient; id: int64;
    body: PostImagesIdActionsChangeProtectionRequest): Future[
    PostImagesIdActionsChangeProtectionResponse] {....stackTrace: false, raises: [
    Exception, ValueError, HttpRequestError, LibraryError, SslError, OSError,
    IOError, ProtocolError, KeyError, OpenParserJsonError, HetznerClientError],
    tags: [RootEffect, ReadIOEffect, TimeEffect], forbids: [].}
Changes the protection configuration of the Image. Can only be used on snapshots.