---
title: "POST /projects/{project}/moveInstance"
method: POST
path: "/projects/{project}/moveInstance"
tags: ["projects"]
---

# POST /projects/{project}/moveInstance

`POST /projects/{project}/moveInstance`

Moves an instance and its attached persistent disks from one zone to
another.
*Note*: Moving VMs or disks by using this method might
 cause unexpected behavior. For more information, see the [known
 issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior).
[Deprecated] This method is deprecated. See [moving instance across
zones](/compute/docs/instances/moving-instance-across-zones) instead.

## Path parameters

- `project` string, required

## Query parameters

- `requestId` string

## Request body

- InstanceMoveRequest
  - `targetInstance` string — The URL of the target instance to move. This can be a full or partial URL. For example, the following are all valid URLs to an instance: - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance - projects/project/zones/zone/instances/instance - zones/zone/instances/instance
  - `destinationZone` string — The URL of the destination zone to move the instance. This can be a full or partial URL. For example, the following are all valid URLs to a zone: - https://www.googleapis.com/compute/v1/projects/project/zones/zone - projects/project/zones/zone - zones/zone

## Response `200`

Successful response

---

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