Vesta Backup

groups

Vesta API · 6.0.75 · Community

GET/api/v1/groupsList Groups

List all VM groups with pagination

Parameters

skip · query · Optional

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

limit · query · Optional

{
  "default": 50,
  "title": "Limit",
  "type": "integer"
}

search · query · Optional

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

group_type · query · Optional

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

Authentication

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError

POST/api/v1/groupsCreate Group

Create a new VM group (operator or admin only)

Request body

Required

application/json

Schema

VMGroupCreate

Authentication

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError

DELETE/api/v1/groups/{group_id}Delete Group

Delete a VM group (operator or admin only)

Parameters

group_id · path · Required

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

Authentication

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError

GET/api/v1/groups/{group_id}Get Group

Get group details with paginated VM list

Parameters

group_id · path · Required

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

skip · query · Optional

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

limit · query · Optional

{
  "default": 50,
  "title": "Limit",
  "type": "integer"
}

Authentication

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError

PUT/api/v1/groups/{group_id}Update Group

Update group name, description, tags, type, and rules (operator or admin only)

Parameters

group_id · path · Required

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

Request body

Required

application/json

Schema

VMGroupUpdate

Authentication

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError

POST/api/v1/groups/{group_id}/previewPreview Group Rules

Preview which VMs match given rules (without saving).

Parameters

group_id · path · Required

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

Request body

Required

application/json

Schema
{
  "additionalProperties": true,
  "title": "Body",
  "type": "object"
}

Authentication

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError

POST/api/v1/groups/{group_id}/vmsAdd Vms To Group

Add VMs to a group (operator or admin only). Only for static/hybrid groups.

Parameters

group_id · path · Required

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

Request body

Required

application/json

Schema

VMGroupAddVMs

Authentication

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError

DELETE/api/v1/groups/{group_id}/vms/{vm_id}Remove Vm From Group

Remove a VM from a group (operator or admin only)

Parameters

group_id · path · Required

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

vm_id · path · Required

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

Authentication

Responses

200

Successful Response

application/json

Schema
{}

422

Validation Error

application/json

Schema

HTTPValidationError