Vesta Backup

activity

Vesta API · 6.0.76 · Community with mTLS

GET/api/v1/activityGet Activity

Unified activity feed combining user actions and system events. Merges ActivityLog (user actions) and SystemEvent (agent/system events) into a single chronological feed. Args: skip: Number of records to skip limit: Max records to return (max 100) source: Filter by source - "user" for ActivityLog, "system" for SystemEvent, None for both action: Filter by action type (e.g., "backup_created") - applies to user events only resource_type: Filter by resource type (e.g., "backup", "vm_group") Returns: Combined activity list sorted by timestamp

Parameters

skip · query · Optional

{
  "default": 0,
  "minimum": 0,
  "title": "Skip",
  "type": "integer"
}

limit · query · Optional

Clamped to 100 per page

{
  "default": 50,
  "description": "Clamped to 100 per page",
  "minimum": 1,
  "title": "Limit",
  "type": "integer"
}

source · query · Optional

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Source"
}

action · query · Optional

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Action"
}

resource_type · query · Optional

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Resource Type"
}

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "activities": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "attribution": {
            "type": "string"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "details": {
            "additionalProperties": true,
            "description": "Extensible domain metadata; keys are not a closed schema.",
            "type": "object",
            "x-open-schema-reason": "Persisted/provider-supplied domain metadata permits additional JSON values."
          },
          "event_type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "org_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "resource_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "resource_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "enum": [
              "user",
              "system"
            ],
            "type": "string"
          },
          "source_name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "source",
          "source_name",
          "event_type",
          "resource_type",
          "resource_id",
          "details",
          "created_at"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "has_more": {
      "type": "boolean"
    },
    "limit": {
      "type": "integer"
    },
    "skip": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    }
  },
  "required": [
    "activities",
    "total",
    "skip",
    "limit",
    "has_more"
  ],
  "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"
}

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/activity/unifiedGet Unified Activity Deprecated

DEPRECATED: Use /api/v1/activity instead. This endpoint will be removed in v4.0.

Parameters

skip · query · Optional

{
  "default": 0,
  "minimum": 0,
  "title": "Skip",
  "type": "integer"
}

limit · query · Optional

Clamped to 100 per page

{
  "default": 50,
  "description": "Clamped to 100 per page",
  "minimum": 1,
  "title": "Limit",
  "type": "integer"
}

source · query · Optional

{
  "anyOf": [
    {
      "type": "string"
    },
    {
      "type": "null"
    }
  ],
  "title": "Source"
}

Authentication

Responses

200

Successful Response

application/json

Schema
{
  "additionalProperties": false,
  "properties": {
    "activities": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "attribution": {
            "type": "string"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "details": {
            "additionalProperties": true,
            "description": "Extensible domain metadata; keys are not a closed schema.",
            "type": "object",
            "x-open-schema-reason": "Persisted/provider-supplied domain metadata permits additional JSON values."
          },
          "event_type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "org_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "resource_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "resource_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "enum": [
              "user",
              "system"
            ],
            "type": "string"
          },
          "source_name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "source",
          "source_name",
          "event_type",
          "resource_type",
          "resource_id",
          "details",
          "created_at"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "has_more": {
      "type": "boolean"
    },
    "limit": {
      "type": "integer"
    },
    "skip": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    }
  },
  "required": [
    "activities",
    "total",
    "skip",
    "limit",
    "has_more"
  ],
  "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"
}

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"
}