# List restore jobs

List snapshot restore jobs, optionally filtering by collection.

SDK: `@zilliz/milvus2-sdk-node@3.0.10` · Tested with Milvus 3.0.6

Canonical documentation: https://milvus-io.github.io/milvus-sdk-node/rest-api/snapshot-jobs/list/

## Section links

- [cURL command](https://milvus-io.github.io/milvus-sdk-node/rest-api/snapshot-jobs/list/#curl-command)
- [Default request](https://milvus-io.github.io/milvus-sdk-node/rest-api/snapshot-jobs/list/#default-request)
- [Sample response](https://milvus-io.github.io/milvus-sdk-node/rest-api/snapshot-jobs/list/#sample-response)
- [Request fields](https://milvus-io.github.io/milvus-sdk-node/rest-api/snapshot-jobs/list/#request-fields)

`POST /v2/vectordb/jobs/snapshot/list`

Replace `https://your-cluster.example.com` with your Milvus endpoint. Set `MILVUS_TOKEN` for authentication or omit the Authorization header on an unauthenticated cluster.

## cURL command

```bash
curl --request POST --url 'https://your-cluster.example.com/v2/vectordb/jobs/snapshot/list' \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer ${MILVUS_TOKEN}" \
  --data-raw '{
  "dbName": "default"
}'
```

## Default request

```json
{
  "dbName": "default"
}
```

## Sample response

```json
{
  "code": 0,
  "data": {
    "records": [
      {
        "jobId": 123456789,
        "snapshotName": "books_backup",
        "dbName": "default",
        "collectionName": "books_restored",
        "progress": 100,
        "reason": "",
        "startTime": 1795099200000,
        "timeCost": 2000,
        "state": "RestoreSnapshotCompleted"
      }
    ]
  }
}
```

## Request fields

- `dbName` string
  Database name. Operations on collections use default when omitted.
- `collectionName` string
  Name of the collection.

See [`HttpClient.listRestoreSnapshotJobs`](https://milvus-io.github.io/milvus-sdk-node/api-reference/http-client/#listrestoresnapshotjobs) for the Node.js SDK method.
