# Kubernetes moves

Move a scanned cluster's workloads into one of your Pantech Kubernetes clusters: export, preview, apply, copy volumes, cut over.

Source: https://docs.pantechdynamics.com/api/kubernetes-moves

Apply the read-only access from `GET /kubernetes-moves/source-access` to the source cluster and run the Pantech Migrate agent where it can reach it: the source credential never leaves the agent. Start a move from a plan's `kubernetes_cluster` item into one of your running Pantech clusters, preview it (a server-side dry run), apply it, copy volume data with `sync-volumes`, and cut over once writes on the source have stopped. The report lists every object by name, never by value. See [moving Kubernetes clusters](https://docs.pantechdynamics.com/move/kubernetes).

Endpoints:

- `POST /public/v1/migrations/{migration_id}/kubernetes-moves`: Start a Kubernetes move
- `GET /public/v1/kubernetes-moves`: List Kubernetes moves
- `GET /public/v1/kubernetes-moves/source-access`: Source cluster access manifests
- `GET /public/v1/kubernetes-moves/{move_id}`: Get a Kubernetes move
- `POST /public/v1/kubernetes-moves/{move_id}/preview`: Preview a Kubernetes move
- `POST /public/v1/kubernetes-moves/{move_id}/apply`: Apply a Kubernetes move
- `POST /public/v1/kubernetes-moves/{move_id}/sync-volumes`: Copy volumes again
- `POST /public/v1/kubernetes-moves/{move_id}/cutover`: Cut over a Kubernetes move
- `POST /public/v1/kubernetes-moves/{move_id}/cancel`: Cancel a Kubernetes move
- `GET /public/v1/kubernetes-moves/{move_id}/manifests`: Download the moved manifests

## The Kubernetes move object



- `id` (string, required)
- `migration_id` (string, required)
- `item_key` (string, required)
- `connection_id` (string, required)
- `cluster_id` (string, required): The Pantech cluster the move applies to: always one of your organization's.
- `source_name` (string, required)
- `status` (string, required): One of `exporting`, `ready`, `previewing`, `applying`, `applied`, `syncing`, `cutting_over`, `completed`, `failed`, `cancelled`.
- `failure` (KubernetesMoveFailure, required): Why the move, or its last step, failed; null when nothing failed. `message` is safe to show.
  - `code` (string, required)
  - `message` (string, required)
- `options` (object, required)
  - `include_secrets` (boolean, required)
  - `copy_volumes` (boolean, required)
  - `publish_load_balancers` (boolean, required)
  - `namespaces` (array of string, required)
- `summary` (object, required)
  - `objects` (integer, required)
  - `refused` (integer, required)
  - `skipped` (integer, required)
  - `flagged` (integer, required)
  - `volumes` (integer, required)
  - `warnings` (array of KubernetesMoveFlag, required)
    - `code` (string, required)
    - `message` (string, required)
  - `addons` (array of string, required)
- `allow_privileged` (array of KubernetesMoveRef, required)
  - `group` (string, required): API group; empty for the core API.
  - `kind` (string, required)
  - `namespace` (string, required)
  - `name` (string, required)
- `previewed_at` (string or null, required)
- `preview_ok` (boolean, required)
- `applied_at` (string or null, required)
- `completed_at` (string or null, required)
- `sync_generation` (integer, required)
- `created_at` (string, required)
- `updated_at` (string, required)
## The Kubernetes move resource object



- `group` (string, required)
- `kind` (string, required)
- `namespace` (string, required)
- `name` (string, required)
- `api_version` (string, required)
- `tier` (integer, required): Apply order: definitions first, custom resources last.
- `action` (string, required): One of `create`, `refused`, `skipped`.
- `flags` (array of KubernetesMoveFlag, required)
  - `code` (string, required)
  - `message` (string, required)
- `policy_refused` (boolean, required): Refused for the cluster policy; name it in `allow_privileged` on preview to include it anyway.
- `preview` (KubernetesMoveStep, required): The object's outcome in the last preview or apply; null when it has not run.
  - `result` (string, required): One of `created`, `configured`, `unchanged`, `refused`, `unverified`.
  - `code` (string or null, required)
  - `message` (string or null, required)
- `apply` (KubernetesMoveStep, required): The object's outcome in the last preview or apply; null when it has not run.
  - `result` (string, required): One of `created`, `configured`, `unchanged`, `refused`, `unverified`.
  - `code` (string or null, required)
  - `message` (string or null, required)
## The Kubernetes move volume object



- `id` (string, required)
- `namespace` (string, required)
- `claim` (string, required)
- `size_bytes` (integer, required)
- `source_storage_class` (string, required)
- `target_storage_class` (string, required)
- `access_modes` (array of string, required)
- `status` (string, required): One of `pending`, `copying`, `synced`, `failed`, `unsupported`.
- `flags` (array of KubernetesMoveFlag, required)
  - `code` (string, required)
  - `message` (string, required)
- `generation` (integer, required)
- `synced_generation` (integer, required)
- `bytes_total` (integer, required)
- `bytes_done` (integer, required)
- `files_total` (integer, required)
- `checksum_verified` (boolean, required): The destination's own read-back matched the source's checksum.
- `synced_at` (string or null, required)
- `failure` (KubernetesMoveFailure, required): Why the move, or its last step, failed; null when nothing failed. `message` is safe to show.
  - `code` (string, required)
  - `message` (string, required)
## Start a Kubernetes move

```http
POST /public/v1/migrations/{migration_id}/kubernetes-moves
```

Starts moving a plan's `kubernetes_cluster` item into one of your running Pantech clusters (docs: Migrate > Kubernetes). The Pantech Migrate agent exports the source cluster with the read-only access from `GET /kubernetes-moves/source-access`; the source credential never leaves the agent. Secrets move only with `include_secrets`, volume data only with `copy_volumes`. The move is free; the cluster bills as usual. At most 5 active moves per organization and one per cluster. Owners and admins only.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `migration_id`

Body:

- `item_key` (string, required): A `kubernetes_cluster` item of the plan.
- `cluster_id` (string, required): A running Pantech cluster of your organization.
- `include_secrets` (boolean): Defaults to `false`.
- `copy_volumes` (boolean): Defaults to `false`.
- `publish_load_balancers` (boolean): Defaults to `true`.
- `namespaces` (array of string)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/migrations/mig_06gk3x9tq7m2v8r4y1c5d0zp8w/kubernetes-moves" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "item_key": "item-key",
    "cluster_id": "k8s_06gk3x9tq7m2v8r4y1c5d0zp8w"
  }'
```

Response `202`:

```json
{
  "id": "kmv_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "item_key": "item-key",
  "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "cluster_id": "k8s_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "source_name": "source-name",
  "status": "exporting",
  "failure": {
    "code": "starter",
    "message": "message"
  },
  "options": {
    "include_secrets": true,
    "copy_volumes": true,
    "publish_load_balancers": true,
    "namespaces": [
      "namespaces"
    ]
  },
  "summary": {
    "objects": 1,
    "refused": 1,
    "skipped": 1,
    "flagged": 1,
    "volumes": 1,
    "warnings": [
      {
        "code": "starter",
        "message": "message"
      }
    ],
    "addons": [
      "addons"
    ]
  },
  "allow_privileged": [
    {
      "group": "group",
      "kind": "create_instance",
      "namespace": "namespace",
      "name": "web-1"
    }
  ],
  "previewed_at": "2026-10-03T09:30:00Z",
  "preview_ok": true,
  "applied_at": "2026-10-03T09:30:00Z",
  "completed_at": "2026-10-03T09:30:00Z",
  "sync_generation": 1,
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs (`read` for GET, `write` for changes; an AI app's key also needs `delete` for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (`Pantech-Client: mcp/…`). An owner can turn it on in the console under Organization › AI apps.
- `404`: `MIGRATION_NOT_FOUND`, `KUBERNETES_CLUSTER_NOT_FOUND`: no such plan or cluster in your organization.
- `409`: `KUBERNETES_CLUSTER_NOT_RUNNING`, `KUBERNETES_MOVE_CLUSTER_BUSY`, `IDEMPOTENCY_CONFLICT`.
- `422`: `VALIDATION_FAILED`: `item_key` names no cluster item, or the item is excluded or blocked; a namespace name is invalid.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
`VOLUME_COPY_UNAVAILABLE`: copying volume data is not available on this deployment.
## List Kubernetes moves

```http
GET /public/v1/kubernetes-moves
```

Your organization's moves, newest first, without their resources and volumes.

Scope: `read`.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/kubernetes-moves" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {
      "id": "kmv_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "item_key": "item-key",
      "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "cluster_id": "k8s_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "source_name": "source-name",
      "status": "exporting",
      "failure": {
        "code": "starter",
        "message": "message"
      },
      "options": {
        "include_secrets": true,
        "copy_volumes": true,
        "publish_load_balancers": true,
        "namespaces": [
          "namespaces"
        ]
      },
      "summary": {
        "objects": 1,
        "refused": 1,
        "skipped": 1,
        "flagged": 1,
        "volumes": 1,
        "warnings": [
          {
            "code": "starter",
            "message": "message"
          }
        ],
        "addons": [
          "addons"
        ]
      },
      "allow_privileged": [
        {
          "group": "group",
          "kind": "create_instance",
          "namespace": "namespace",
          "name": "web-1"
        }
      ],
      "previewed_at": "2026-10-03T09:30:00Z",
      "preview_ok": true,
      "applied_at": "2026-10-03T09:30:00Z",
      "completed_at": "2026-10-03T09:30:00Z",
      "sync_generation": 1,
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z"
    }
  ],
  "next_cursor": null
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs (`read` for GET, `write` for changes; an AI app's key also needs `delete` for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (`Pantech-Client: mcp/…`). An owner can turn it on in the console under Organization › AI apps.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Source cluster access manifests

```http
GET /public/v1/kubernetes-moves/source-access
```

The manifests to apply to the source cluster: a read-only reader (get, list, watch; no Secrets), an optional Secrets reader, and an optional copier role for copying volumes.

Scope: `read`.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/kubernetes-moves/source-access" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "reader": "reader",
  "secrets_reader": "secrets-reader",
  "copier": "copier"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs (`read` for GET, `write` for changes; an AI app's key also needs `delete` for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (`Pantech-Client: mcp/…`). An owner can turn it on in the console under Organization › AI apps.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Get a Kubernetes move

```http
GET /public/v1/kubernetes-moves/{move_id}
```

A move with its report: every source object and what the move does with it (names only, never values), the volumes and their copy progress, the images and the workloads held until the cutover.

Scope: `read`.

Path parameters:

- `move_id`

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/kubernetes-moves/kmv_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "id": "kmv_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "item_key": "item-key",
  "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "cluster_id": "k8s_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "source_name": "source-name",
  "status": "exporting",
  "failure": {
    "code": "starter",
    "message": "message"
  },
  "options": {
    "include_secrets": true,
    "copy_volumes": true,
    "publish_load_balancers": true,
    "namespaces": [
      "namespaces"
    ]
  },
  "summary": {
    "objects": 1,
    "refused": 1,
    "skipped": 1,
    "flagged": 1,
    "volumes": 1,
    "warnings": [
      {
        "code": "starter",
        "message": "message"
      }
    ],
    "addons": [
      "addons"
    ]
  },
  "allow_privileged": [
    {
      "group": "group",
      "kind": "create_instance",
      "namespace": "namespace",
      "name": "web-1"
    }
  ],
  "previewed_at": "2026-10-03T09:30:00Z",
  "preview_ok": true,
  "applied_at": "2026-10-03T09:30:00Z",
  "completed_at": "2026-10-03T09:30:00Z",
  "sync_generation": 1,
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z",
  "resources": [
    {
      "group": "group",
      "kind": "create_instance",
      "namespace": "namespace",
      "name": "web-1",
      "api_version": "api-version",
      "tier": 1,
      "action": "create",
      "flags": [
        {
          "code": "starter",
          "message": "message"
        }
      ],
      "policy_refused": true,
      "preview": {
        "result": "created",
        "code": "starter",
        "message": "message"
      },
      "apply": {
        "result": "created",
        "code": "starter",
        "message": "message"
      }
    }
  ],
  "volumes": [
    {
      "id": "kmvv_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "namespace": "namespace",
      "claim": "claim",
      "size_bytes": 1610612736,
      "source_storage_class": "source-storage-class",
      "target_storage_class": "target-storage-class",
      "access_modes": [
        "access-modes"
      ],
      "status": "pending",
      "flags": [
        {
          "code": "starter",
          "message": "message"
        }
      ],
      "generation": 1,
      "synced_generation": 1,
      "bytes_total": 1,
      "bytes_done": 1,
      "files_total": 1,
      "checksum_verified": true,
      "synced_at": "2026-10-03T09:30:00Z",
      "failure": {
        "code": "starter",
        "message": "message"
      }
    }
  ],
  "images": [
    {
      "image": "image",
      "flags": [
        {
          "code": "starter",
          "message": "message"
        }
      ]
    }
  ],
  "holds": [
    {
      "group": "group",
      "kind": "create_instance",
      "namespace": "namespace",
      "name": "web-1",
      "replicas": 1,
      "suspend": true
    }
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs (`read` for GET, `write` for changes; an AI app's key also needs `delete` for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (`Pantech-Client: mcp/…`). An owner can turn it on in the console under Organization › AI apps.
- `404`: `KUBERNETES_MOVE_NOT_FOUND`.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Preview a Kubernetes move

```http
POST /public/v1/kubernetes-moves/{move_id}/preview
```

Queues a server-side dry run of every object against the target cluster. The move's namespaces are created (empty, with the cluster policy's labels) so objects inside them can be checked; nothing else is created. `allow_privileged` names workloads the cluster policy refused that you choose to include anyway. Owners and admins only.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `move_id`

Body:

- `allow_privileged` (array of KubernetesMoveRef)
  - `group` (string, required): API group; empty for the core API.
  - `kind` (string, required)
  - `namespace` (string, required)
  - `name` (string, required)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/kubernetes-moves/kmv_06gk3x9tq7m2v8r4y1c5d0zp8w/preview" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

Response `202`:

```json
{
  "id": "kmv_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "item_key": "item-key",
  "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "cluster_id": "k8s_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "source_name": "source-name",
  "status": "exporting",
  "failure": {
    "code": "starter",
    "message": "message"
  },
  "options": {
    "include_secrets": true,
    "copy_volumes": true,
    "publish_load_balancers": true,
    "namespaces": [
      "namespaces"
    ]
  },
  "summary": {
    "objects": 1,
    "refused": 1,
    "skipped": 1,
    "flagged": 1,
    "volumes": 1,
    "warnings": [
      {
        "code": "starter",
        "message": "message"
      }
    ],
    "addons": [
      "addons"
    ]
  },
  "allow_privileged": [
    {
      "group": "group",
      "kind": "create_instance",
      "namespace": "namespace",
      "name": "web-1"
    }
  ],
  "previewed_at": "2026-10-03T09:30:00Z",
  "preview_ok": true,
  "applied_at": "2026-10-03T09:30:00Z",
  "completed_at": "2026-10-03T09:30:00Z",
  "sync_generation": 1,
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs (`read` for GET, `write` for changes; an AI app's key also needs `delete` for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (`Pantech-Client: mcp/…`). An owner can turn it on in the console under Organization › AI apps.
- `404`: `KUBERNETES_MOVE_NOT_FOUND`.
- `409`: `KUBERNETES_MOVE_INVALID_STATE`, `IDEMPOTENCY_CONFLICT`.
- `422`: `VALIDATION_FAILED`: `allow_privileged` names an object the policy did not refuse.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Apply a Kubernetes move

```http
POST /public/v1/kubernetes-moves/{move_id}/apply
```

Queues the apply of what the last successful preview checked, in order: definitions, namespaces, identities, configuration, storage, services, workloads, routing. Workloads that mount a copied volume start scaled down until the cutover. Owners and admins only.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `move_id`

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/kubernetes-moves/kmv_06gk3x9tq7m2v8r4y1c5d0zp8w/apply" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `202`:

```json
{
  "id": "kmv_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "item_key": "item-key",
  "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "cluster_id": "k8s_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "source_name": "source-name",
  "status": "exporting",
  "failure": {
    "code": "starter",
    "message": "message"
  },
  "options": {
    "include_secrets": true,
    "copy_volumes": true,
    "publish_load_balancers": true,
    "namespaces": [
      "namespaces"
    ]
  },
  "summary": {
    "objects": 1,
    "refused": 1,
    "skipped": 1,
    "flagged": 1,
    "volumes": 1,
    "warnings": [
      {
        "code": "starter",
        "message": "message"
      }
    ],
    "addons": [
      "addons"
    ]
  },
  "allow_privileged": [
    {
      "group": "group",
      "kind": "create_instance",
      "namespace": "namespace",
      "name": "web-1"
    }
  ],
  "previewed_at": "2026-10-03T09:30:00Z",
  "preview_ok": true,
  "applied_at": "2026-10-03T09:30:00Z",
  "completed_at": "2026-10-03T09:30:00Z",
  "sync_generation": 1,
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs (`read` for GET, `write` for changes; an AI app's key also needs `delete` for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (`Pantech-Client: mcp/…`). An owner can turn it on in the console under Organization › AI apps.
- `404`: `KUBERNETES_MOVE_NOT_FOUND`.
- `409`: `KUBERNETES_MOVE_PREVIEW_REQUIRED`, `KUBERNETES_MOVE_PREVIEW_FAILED`, `KUBERNETES_MOVE_INVALID_STATE`, `IDEMPOTENCY_CONFLICT`.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Copy volumes again

```http
POST /public/v1/kubernetes-moves/{move_id}/sync-volumes
```

Queues the next copy of every volume. Only what changed since the last copy is sent; each copy is verified by reading it back. Owners and admins only.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `move_id`

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/kubernetes-moves/kmv_06gk3x9tq7m2v8r4y1c5d0zp8w/sync-volumes" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `202`:

```json
{
  "id": "kmv_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "item_key": "item-key",
  "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "cluster_id": "k8s_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "source_name": "source-name",
  "status": "exporting",
  "failure": {
    "code": "starter",
    "message": "message"
  },
  "options": {
    "include_secrets": true,
    "copy_volumes": true,
    "publish_load_balancers": true,
    "namespaces": [
      "namespaces"
    ]
  },
  "summary": {
    "objects": 1,
    "refused": 1,
    "skipped": 1,
    "flagged": 1,
    "volumes": 1,
    "warnings": [
      {
        "code": "starter",
        "message": "message"
      }
    ],
    "addons": [
      "addons"
    ]
  },
  "allow_privileged": [
    {
      "group": "group",
      "kind": "create_instance",
      "namespace": "namespace",
      "name": "web-1"
    }
  ],
  "previewed_at": "2026-10-03T09:30:00Z",
  "preview_ok": true,
  "applied_at": "2026-10-03T09:30:00Z",
  "completed_at": "2026-10-03T09:30:00Z",
  "sync_generation": 1,
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs (`read` for GET, `write` for changes; an AI app's key also needs `delete` for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (`Pantech-Client: mcp/…`). An owner can turn it on in the console under Organization › AI apps.
- `404`: `KUBERNETES_MOVE_NOT_FOUND`.
- `409`: `KUBERNETES_MOVE_INVALID_STATE`, `IDEMPOTENCY_CONFLICT`.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
`VOLUME_COPY_UNAVAILABLE`: copying volume data is not available on this deployment.
## Cut over a Kubernetes move

```http
POST /public/v1/kubernetes-moves/{move_id}/cutover
```

Once writes on the source have stopped (`source_writes_stopped: true`), takes the final copy of every volume, then scales the held workloads up to their source replicas. Owners and admins only.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `move_id`

Body:

- `source_writes_stopped` (boolean, required)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/kubernetes-moves/kmv_06gk3x9tq7m2v8r4y1c5d0zp8w/cutover" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "source_writes_stopped": true
  }'
```

Response `202`:

```json
{
  "id": "kmv_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "item_key": "item-key",
  "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "cluster_id": "k8s_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "source_name": "source-name",
  "status": "exporting",
  "failure": {
    "code": "starter",
    "message": "message"
  },
  "options": {
    "include_secrets": true,
    "copy_volumes": true,
    "publish_load_balancers": true,
    "namespaces": [
      "namespaces"
    ]
  },
  "summary": {
    "objects": 1,
    "refused": 1,
    "skipped": 1,
    "flagged": 1,
    "volumes": 1,
    "warnings": [
      {
        "code": "starter",
        "message": "message"
      }
    ],
    "addons": [
      "addons"
    ]
  },
  "allow_privileged": [
    {
      "group": "group",
      "kind": "create_instance",
      "namespace": "namespace",
      "name": "web-1"
    }
  ],
  "previewed_at": "2026-10-03T09:30:00Z",
  "preview_ok": true,
  "applied_at": "2026-10-03T09:30:00Z",
  "completed_at": "2026-10-03T09:30:00Z",
  "sync_generation": 1,
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs (`read` for GET, `write` for changes; an AI app's key also needs `delete` for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (`Pantech-Client: mcp/…`). An owner can turn it on in the console under Organization › AI apps.
- `404`: `KUBERNETES_MOVE_NOT_FOUND`.
- `409`: `KUBERNETES_MOVE_VOLUMES_NOT_SYNCED`, `KUBERNETES_MOVE_INVALID_STATE`, `IDEMPOTENCY_CONFLICT`.
- `422`: `VALIDATION_FAILED`: `source_writes_stopped` must be true.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Cancel a Kubernetes move

```http
POST /public/v1/kubernetes-moves/{move_id}/cancel
```

Stops the move, removes its copy pods on both clusters, its staged data and its export. Objects already applied to your Pantech cluster stay. Owners and admins only.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `move_id`

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/kubernetes-moves/kmv_06gk3x9tq7m2v8r4y1c5d0zp8w/cancel" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `202`:

```json
{
  "id": "kmv_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "migration_id": "mig_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "item_key": "item-key",
  "connection_id": "ccn_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "cluster_id": "k8s_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "source_name": "source-name",
  "status": "exporting",
  "failure": {
    "code": "starter",
    "message": "message"
  },
  "options": {
    "include_secrets": true,
    "copy_volumes": true,
    "publish_load_balancers": true,
    "namespaces": [
      "namespaces"
    ]
  },
  "summary": {
    "objects": 1,
    "refused": 1,
    "skipped": 1,
    "flagged": 1,
    "volumes": 1,
    "warnings": [
      {
        "code": "starter",
        "message": "message"
      }
    ],
    "addons": [
      "addons"
    ]
  },
  "allow_privileged": [
    {
      "group": "group",
      "kind": "create_instance",
      "namespace": "namespace",
      "name": "web-1"
    }
  ],
  "previewed_at": "2026-10-03T09:30:00Z",
  "preview_ok": true,
  "applied_at": "2026-10-03T09:30:00Z",
  "completed_at": "2026-10-03T09:30:00Z",
  "sync_generation": 1,
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs (`read` for GET, `write` for changes; an AI app's key also needs `delete` for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (`Pantech-Client: mcp/…`). An owner can turn it on in the console under Organization › AI apps.
- `404`: `KUBERNETES_MOVE_NOT_FOUND`.
- `409`: `KUBERNETES_MOVE_INVALID_STATE`, `IDEMPOTENCY_CONFLICT`.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Download the moved manifests

```http
GET /public/v1/kubernetes-moves/{move_id}/manifests
```

The transformed manifests as one YAML file, for GitOps. Secret values are never included: the file lists the Secrets the move carries by name.

Scope: `read`.

Path parameters:

- `move_id`

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/kubernetes-moves/kmv_06gk3x9tq7m2v8r4y1c5d0zp8w/manifests" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`: OK.

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs (`read` for GET, `write` for changes; an AI app's key also needs `delete` for a destructive call). Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server (`Pantech-Client: mcp/…`). An owner can turn it on in the console under Organization › AI apps.
- `404`: `KUBERNETES_MOVE_NOT_FOUND`, `KUBERNETES_MOVE_MANIFESTS_NOT_READY`.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `MIGRATE_UNAVAILABLE`: Pantech Migrate is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
