Move an external IPv4 address to a different project

Static external IPv4 addresses are associated with a Google Cloud project andcan be used only within that project. However, you can move a static externalIPv4 address from one project to another. The projects can be in the sameorganization or different organizations.

IAM roles and permissions

To move a regional IP address, you must have the following permissions:

  • compute.addresses.delete in the source project
  • compute.addresses.create in the destination project

To move a global IP address, you must have the following permissions:

  • compute.globalAddresses.delete in the source project
  • compute.globalAddresses.create in the destination project

Example roles that include these permissions:

Before you begin

Limitations

  • If you unassign an IP address, you must wait some time before you move it:

    • For global IP addresses, wait 10 minutes.
    • For regional IP addresses, wait 20 minutes.
  • You can't change the region of a regional IP address.

  • You can't convert a global IP address to regional or a regional IP address toglobal.

  • You can't moveBYOIP addresses betweenprojects.

Move an external IPv4 address to a different project

You can move a regional or global external IPv4 address from one project toanother. When you move the IP address, by default the IP address resource isassigned the same name and description. However, you can choose to assign a newname or description. After the external IPv4 address is moved to a new project,you can assign it toeligible resources inthat project.

Console

  1. In the Google Cloud console, go toIP addresses.

    Go to IP addresses

  2. In theMore actions menu () of the IP addressthat you want to move, selectMove to another project.

  3. ClickSelect project, and then select the project that you want tomove the IP address to.

  4. Optional: Enter a newName for the IP address.

  5. Optional: Enter a newDescription for the IP address.

  6. ClickMove.

gcloud

The command options vary depending on whether you're moving aregional or global IP address, and whether you're keeping or replacingthe address name or description. The following examples describe someof these combinations.

  • Move a regional external IPv4 address to a different project:

    gcloud compute addresses moveADDRESS_NAME \    --target-project=TARGET_PROJECT \    --region=REGION
  • Move a regional external IPv4 address to a different project and assignit a new name and description in the new project:

    gcloud compute addresses moveADDRESS_NAME \    --target-project=TARGET_PROJECT \    --new-name=NEW_NAME \    --description=NEW_DESCRIPTION \    --region=REGION
  • Move a global external IPv4 address to a different project:

    gcloud compute addresses moveADDRESS_NAME \    --target-project=TARGET_PROJECT \    --global

Replace the following:

  • ADDRESS_NAME: the name of the IP address resourcethat you want to move.
  • TARGET_PROJECT: the name or ID of the project thatyou want to move the IP address to.
  • REGION: the region of the IP address.
  • NEW_NAME: a new name for the IP address resource inthe new project.
  • NEW_DESCRIPTION: a new name for the IP addressresource in the new project. If omitted, the existing description, ifany, is used for the resource.

For more information, see thegcloud compute addressesmove referencedocumentation.

API

The request details vary depending on whether you're moving aregional or global IP address, and whether you're keeping or replacingthe address name or description. The following examples describe someof these combinations.

  • Move a regional external IPv4 address to a different project:

    POST https://www.googleapis.com/compute/v1/projects/SOURCE_PROJECT/regions/REGION/addresses/ADDRESS_NAME/move{  "destination_address": "projects/TARGET_PROJECT/global/addresses/ADDRESS_NAME",}
  • Move a regional external IPv4 address to a different project and assignit a new name and description in the new project:

    POST https://www.googleapis.com/compute/v1/projects/SOURCE_PROJECT/regions/REGION/addresses/ADDRESS_NAME/move{  "destination_address": "projects/TARGET_PROJECT/global/addresses/NEW_NAME",  "description": "NEW_DESCRIPTION",}
  • Move a global external IPv4 address to a different project:

    POST https://www.googleapis.com/compute/v1/projects/SOURCE_PROJECT/global/addresses/ADDRESS_NAME/move{  "destination_address": "projects/TARGET_PROJECT/global/addresses/ADDRESS_NAME",}

Replace the following:

  • ADDRESS_NAME: the name of the IP address resourcethat you want to move.
  • SOURCE_PROJECT: the name or ID of the project thatyou want to move the IP address to.
  • TARGET_PROJECT: the name or ID of the project thatyou want to move the IP address to.
  • REGION: the region of the IP address.
  • NEW_NAME: a new name for the IP address resource inthe new project.
  • NEW_DESCRIPTION: a new name for the IP addressresource in the new project. If omitted, the existing description, ifany, is used for the resource.

Troubleshooting

Moving an external IPv4 address fails

You might see the following error message when you try to move an externalIPv4 address:

Invalid resource usage: 'Cannot move address that belongs to a reserved addressrange. Address range must be disassembled first.'

If you see this message, it means that the IP address was reserved by CloudSupport as part of a contiguous IP address range. To move an IP address of thistype, contactCloud Support.

To check if an IP address is part of a range that was reserved by Cloud Support,do the following:

  1. List static external IP addresses,and then find the IP address that you want to check.
  2. Check the name of the IP address. If the IP address was reserved by CloudSupport, its name is made up of a string followed by the four bytes of the IP address, separated by hyphens. For example, if an IP address is198.51.100.2, and it was reserved by Cloud Support, the name has thefollowing form:STRING-198-51-100-2. Other IP addresses that were reserved as partof the same range share the same string, followed by their IP addresses.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.