Update volume

Method URI Description
PUT /v2/{tenant_id}/volumes/{volume_id} Updates a volume.

Normal response codes: 200

Request

This table shows the URI parameters for the update volume request:

Name Type Description
{tenant_id} String The unique identifier of the project or account.
{volume_id} UUID The unique identifier of an existing volume.

This table shows the query parameters for the update volume request:

Name Type Description
description String

(Optional)

A description of the volume.
name String

(Optional)

The name of the volume.

Example. Update volume: JSON request


{
	"volume": {
		"name": "vol-003",
		"description": "This is yet, another volume."
	}
}  
     

Response

Example. Update volume: JSON response


{
	"volume": {
		"status": "available",
		"attachments": [],
		"links": [
			{
				"href": "http://localhost:8776/v2/0c2eba2c5af04d3f9e9d0d410b371fde/volumes/5aa119a8-d25b-45a7-8d1b-88e127885635",
				"rel": "self"
			},
			{
				"href": "http://localhost:8776/0c2eba2c5af04d3f9e9d0d410b371fde/volumes/5aa119a8-d25b-45a7-8d1b-88e127885635",
				"rel": "bookmark"
			}
		],
		"availability_zone": "nova",
		"source_volid": null,
		"snapshot_id": null,
		"id": "5aa119a8-d25b-45a7-8d1b-88e127885635",
		"description": "This is yet, another volume.",
		"name": "vol-003",
		"created_at": "2013-02-25T02:40:21.000000",
		"volume_type": "None",
		"size": 1,
		"metadata": {
			"contents": "not junk"
		}
	}
}