---
title: "Get upgrade plan"
method: GET
path: "/namespaces/{namespace}/database-engines/upgrade-plan"
tags: ["Operators"]
---

# Get upgrade plan

`GET /namespaces/{namespace}/database-engines/upgrade-plan`

This API lists pending operator upgrades in the given namespace.

Additionally, it also returns a list of pending action items that need to be performed 
before and after upgrading a database operator.

Added in v1.1.0, it is recommended to use this API for operator upgrades.
The older upgrade APIs are deprecated and will be removed in v1.2.0

## Path parameters

- `namespace` string, required

## Response `200`

Successful operation

- UpgradePlan — Operators upgrade plan
  - `upgrades` Upgrade[]
    - `name` string — Name of the operator
    - `currentVersion` string — The current operator version
    - `targetVersion` string — The next version of the operator to upgrade to.
  - `pendingActions` UpgradeTask[]
    - `name` string — Name of the database cluster
    - `message` string
    - `pendingTask` 'ready' | 'notReady' | 'restart' | 'upgradeEngine' — Pending task for the database cluster

## Other responses

- `400` — Unsuccessful operation
- `500` — Internal server error

---

[API](https://skmtc.net/openeverest/apis/openeverest-schema.md) · [All operations](https://skmtc.net/openeverest/apis/openeverest-schema/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openeverest/openeverest-schema/revisions/46b19e13670b/schema)
