Vesta Backup

activity

Vesta API · 6.0.75 · Community

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

422

Validation Error

application/json

Schema

HTTPValidationError

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

422

Validation Error

application/json

Schema

HTTPValidationError