Rename a storage volume

To rename a storage volume, follow these steps:

Console

  1. In the Google Cloud console, go to the Compute Engine > Bare Metal Solution > Volumes page.
  2. Click the storage volume name.
  3. On the Volume details page, in the Name field, click Edit name.
  4. On the Editing name page, enter a new name.
  5. Click Save.
  6. To view your changes, refresh the page.

gcloud

To rename a storage volume, use the gcloud bms volumes rename command.

gcloud bms volumes rename VOLUME_NAME --new-name=NEW_NAME --project=PROJECT_ID --region=REGION

Replace the following:

  • VOLUME_NAME: Current name of the storage volume.
  • NEW_NAME: New name of the storage volume.
  • PROJECT_ID: Your project ID.
  • REGION: The location of the storage volume.