Vesta Backup

queue

Vesta API · 6.0.77 · Community

GET/api/v1/backups/queueGet Backup Queue

Get the current backup queue status.

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "available_slots": {
      "type": "integer"
    },
    "max_concurrent": {
      "type": "integer"
    },
    "processing": {
      "type": "integer"
    },
    "queue": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "created_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "hold_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "priority": {
            "type": "integer"
          },
          "queued_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "schedule_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "started_backup_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string"
          },
          "vm_id": {
            "type": "string"
          },
          "vm_name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "vm_id",
          "vm_name",
          "priority",
          "position",
          "queued_at",
          "schedule_id",
          "created_by",
          "status",
          "hold_reason",
          "started_backup_id"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "running_backups": {
      "type": "integer"
    },
    "total_queued": {
      "type": "integer"
    }
  },
  "required": [
    "queue",
    "total_queued",
    "processing",
    "running_backups",
    "max_concurrent",
    "available_slots"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Only in demo deployment mode: ordinary API surface is denied before handlers

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "const": "DEMO_POLICY_DENIED",
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "type": "object"
    },
    "environment": {
      "const": "demo",
      "type": "string"
    },
    "simulated": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "detail",
    "environment",
    "simulated"
  ],
  "type": "object"
}

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

POST/api/v1/backups/queueAdd Backup To Queue

Add a backup to the queue instead of starting immediately.

Parameters

Idempotency-Key · header · Optional

Caller-supplied UUID identifying this intent permanently. Reuse only for the same original principal, organization, action and normalized input. Not HTTP X-Request-ID.

{
  "format": "uuid",
  "type": "string"
}

Request body

Required

application/json

Schema

BackupQueueCreate

Authentication

Responses

200

Durable admission receipt; pending/queued is not proof of external execution or success. A replay returns the original nonsecret receipt.

Headers
{
  "Cache-Control": {
    "schema": {
      "const": "no-store"
    }
  },
  "Idempotency-Key": {
    "schema": {
      "format": "uuid",
      "type": "string"
    }
  },
  "Idempotency-Replayed": {
    "schema": {
      "enum": [
        "true",
        "false"
      ],
      "type": "string"
    }
  },
  "X-Request-ID": {
    "description": "Per-HTTP-request correlation, separate from durable admission identity.",
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "hold_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "position": {
      "type": "integer"
    },
    "priority": {
      "type": "integer"
    },
    "queued_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "request_id": {
      "format": "uuid",
      "type": "string"
    },
    "started_backup_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "type": "string"
    },
    "vm_id": {
      "type": "string"
    },
    "vm_name": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "vm_id",
    "vm_name",
    "position",
    "priority",
    "queued_at",
    "status",
    "hold_reason",
    "started_backup_id",
    "message",
    "request_id"
  ],
  "type": "object"
}

400

Invalid domain request.

application/json

Schema

OperatorAdmissionError

401

Authentication unavailable.

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Current action authority unavailable.

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

404

Authorized resource unavailable.

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

409

Identity conflict, unresolved/retired outcome, pending agent rotation, stale KEK predecessor or unsupported provider contract.

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

413

Normalized intent exceeds admission limit.

application/json

Schema

OperatorAdmissionError

422

Malformed identity, request validation or bulk target limit.

application/json

Schema

OperatorAdmissionError

423

Existing source or operation custody prevents admission.

application/json

Schema

OperatorAdmissionError

500

Outcome may be unknown after a lost/failing commit response. Reconcile the same request identity.

application/json

Schema

OperatorAdmissionError

text/plain

Schema
{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "const": "Internal Server Error",
      "type": "string"
    }
  ]
}

503

Admission dependency unavailable.

application/json

Schema

OperatorAdmissionError

DELETE/api/v1/backups/queue/{queue_id}Cancel Queued Backup

Cancel a queued backup.

Parameters

queue_id · path · Required

{
  "title": "Queue Id",
  "type": "string"
}

Authentication

Responses

200

Successful response; resource state is separate from HTTP acceptance.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    }
  },
  "required": [
    "message"
  ],
  "type": "object"
}

400

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

401

Bearer absent, invalid, disabled, stale or organization unavailable

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Persisted identity lacks required role or installation/platform authority

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

404

Request refused or failed

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "detail": {
      "type": "string"
    }
  },
  "required": [
    "detail"
  ],
  "type": "object"
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}

GET/api/v1/backups/queue/{queue_id}Get Backup Queue Item

A durable queue identity remains readable after it leaves the active list.

Parameters

queue_id · path · Required

{
  "title": "Queue Id",
  "type": "string"
}

Authentication

Responses

200

Authorized current state; the immutable receipt remains separate from current dispatch/resource state.

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "backup_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "hold_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "id": {
      "type": "string"
    },
    "position": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "priority": {
      "type": "integer"
    },
    "queued_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "started_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "started_backup_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "type": "string"
    },
    "vm_id": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "vm_id",
    "status",
    "hold_reason",
    "started_backup_id",
    "backup_status",
    "position",
    "priority",
    "queued_at",
    "started_at"
  ],
  "type": "object"
}

401

Unavailable authority/resource. Lookup 404 means unknown at observation time, not permission to submit another identity.

Headers
{
  "WWW-Authenticate": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "const": "Invalid tenant credentials",
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

403

Unavailable authority/resource. Lookup 404 means unknown at observation time, not permission to submit another identity.

Headers
{
  "X-Vnbui-Environment": {
    "schema": {
      "type": "string"
    }
  },
  "X-Vnbui-Simulated": {
    "schema": {
      "type": "string"
    }
  }
}

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "additionalProperties": false,
          "properties": {
            "code": {
              "const": "DEMO_POLICY_DENIED",
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [
            "code",
            "message"
          ],
          "type": "object"
        },
        "environment": {
          "const": "demo",
          "type": "string"
        },
        "simulated": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "detail",
        "environment",
        "simulated"
      ],
      "type": "object"
    }
  ]
}

404

Unavailable authority/resource. Lookup 404 means unknown at observation time, not permission to submit another identity.

application/json

Schema
{
  "anyOf": [
    {
      "$ref": "#/components/schemas/OperatorAdmissionError"
    },
    {
      "additionalProperties": false,
      "properties": {
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "detail"
      ],
      "type": "object"
    }
  ]
}

422

Validation Error

application/json

Schema

HTTPValidationError

500

Unhandled exception outside route-level conversion; body is plain text

text/plain

Schema
{
  "const": "Internal Server Error",
  "type": "string"
}