Verb | URI | Description |
POST | /volumes | Create a new volume. |
Example 2.1. Create Volumes: JSON Request
GET /v1/volumes Content-Type: application/json Accept: application/json
{ "volume": { "display_name": "vol-001", "display_description": "Another volume.", "size": 30, "volume_type": "289da7f8-6440-407c-9fb4-7db01ec49164", "metadata": {"contents": "junk"}, "availability_zone": "us-east1" } }
Example 2.2. Create Volumes: JSON Response
{ "volume": { "attachments": [], "availability_zone": "us-east1", "bootable": "false", "created_at": "2013-02-20T07:36:44.893964", "display_description": "Another volume.", "display_name": "vol-001", "id": "2402b902-0b7a-458c-9c07-7435a826f794", "metadata": { "contents": "junk" }, "size": 30, "snapshot_id": null, "source_volid": null, "status": "creating", "volume_type": "289da7f8-6440-407c-9fb4-7db01ec49164" } }
Returns status code 200 on success