# List running jobs of a virtual server

> The jobs still running on one vServer, oldest first.

- Effect: Read - Changes nothing.
- Idempotent: yes
- Stability: stable
- MCP tool: `manitu_vserver_job_list` on https://mcp.manitu.de/mcp
- REST: `POST https://api.manitu.de/v1/vserver/job/list`
- Needs: `service_vserver`
- Page: /reference/vserver/job/list/

## MCP tool

`manitu_vserver_job_list`

### Description for the model

Lists the jobs still running on a virtual server (vServer) - a restart, a reverse DNS change, a snapshot - by its vserver_id, oldest first; empty when nothing runs. The same list [`manitu_vserver_get`](/reference/vserver/get.md) answers as pending_job_list. To follow one job a tool started, ask [`manitu_job_get`](/reference/job/get.md) with its job_token instead; this list is for what else runs on the server.

### Arguments

- `vserver_id` (integer | string, required) - The vserver_id of the server. Never guess one. (pattern `"^[1-9][0-9]*$"`; minimum `1`)
- `page_size` (integer) - How many entries per page, default 100. (minimum `1`; maximum `500`)
- `page_token` (string) - next_page_token of the previous page - with the same filters. (pattern `"^[^\\x00-\\x1F\\x7F]*$"`)

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "manitu_vserver_job_list",
    "arguments": {
      "vserver_id": 12345
    }
  }
}
```

## REST

`POST https://api.manitu.de/v1/vserver/job/list`

### Description

Lists the jobs still running on a virtual server (vServer), by its vserver_id, oldest first - a restart, a reverse DNS change, a snapshot; empty when nothing runs. It is the list [`POST /v1/vserver/get`](/reference/vserver/get.md) answers as pending_job_list. One job by its job_token is [`POST /v1/job/get`](/reference/job/get.md). Changes nothing.

### Authentication

One of `X-API-Key`, `Authorization: Bearer …` - never more than one in a request.

### Request body

JSON; unknown fields are refused.

- `vserver_id` (integer | string, required) - The vserver_id of the server. (pattern `"^[1-9][0-9]*$"`; minimum `1`)
- `page_size` (integer) - How many entries per page, default 100. (minimum `1`; maximum `500`)
- `page_token` (string) - next_page_token of the previous page - with the same filters. (pattern `"^[^\\x00-\\x1F\\x7F]*$"`)

### Response

In `data`; the rest of the body as on every call.

- `job_list` (array of object, required)
  - `job_list[].kind` (string | null, required) - What is being done, e.g. power_reboot; null for a kind not named. (one of `"vserver_create"`, `"vserver_delete"`, `"power_start"`, `"power_stop"`, `"power_reboot"`, `"reinstall"`, `"ptr_set"`, `"vnc_enable"`, `"vnc_disable"`, `"rescue_system_enable"`, `"rescue_system_disable"`, `"snapshot_create"`, `"snapshot_delete"`, `"snapshot_delete_all"`, `"snapshot_revert"`, `"setup_finish"`, `"iso_eject"`, `"contract_termination"`, `"application_install"`, `"application_update"`, `"permission_set"`, `"database_copy"`, `"network_discovery"`, `null`)
  - `job_list[].job_id` (string, required) - The id of this run of the job.
  - `job_list[].created_at` (string | null, required) - When it was asked for. (format `date-time`)
  - `job_list[].started_at` (string | null, required) - When it started; null while it waits for the next run - usually a minute or two, at times longer. Nothing to tell the user unless asked. (format `date-time`)
- `total_count` (integer, required) - How many entries match, on all pages together.
- `next_page_token` (string | null, required) - Pass as page_token for the next page; null on the last. (pattern `"^[^\\x00-\\x1F\\x7F]*$"`)

### Statuses

- `200` Success.
- `400` The input is wrong, or the request itself (INVALID_INPUT). Each entry names its field and its reason - correct the input and call again.
- `401` No credential was presented, or it was not recognised (UNAUTHENTICATED).
- `403` The credential is valid, but may not do this (PERMISSION_DENIED). The reason says why - another credential is the way, not a repeat.
- `429` Too many calls. The Retry-After header says when to try again.
- `500` The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.
- `503` The channel this operation forwards through is unavailable.

### Example

```sh
curl -X POST \
  'https://api.manitu.de/v1/vserver/job/list' \
  -H "X-API-Key: $API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"vserver_id":12345}'
```

## Example result

```json
{
  "job_list": [
    {
      "kind": "vserver_create",
      "job_id": "string",
      "created_at": "2026-10-23T12:00:00+02:00",
      "started_at": "2026-10-23T12:00:00+02:00"
    }
  ],
  "total_count": 1,
  "next_page_token": "eyJwYWdlIjoyfQ"
}
```
