Is it possible to rename an existing reserved IP address without having to release it?
Its just to aid administration within a project where the reserved IP name doesn't match the registered DNS name of the instance that its attached to
This is possible if you rename it whilst moving it to a different Project and move it back again https://cloud.google.com/vpc/docs/move-ip-address-different-project
First move the IP address to another GCP project (just create a temporary project if you don't have more than one already):
gcloud compute addresses move OLD_IP_NAME_HERE --project=PROJECT_ID --target-project=TEMP_PROJECT_ID --global
Then move the IP address back, setting a new name at the same time:
gcloud compute addresses move OLD_IP_NAME_HERE --new-name=NEW_IP_NAME_HERE --project=TEMP_PROJECT_ID --target-project=PROJECT_ID --global
According to the latest GCE API, it is not possible to rename an address object.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With