2.1.5. Update Volume

Verb URI Description
PUT /volumes/volume-id Update the specified volume.
 

Example 2.9. Update Volume: JSON Request

PUT /v1/volumes2402b902-0b7a-458c-9c07-7435a826f794
Content-Type: application/json
Accept: application/json
              
          {
   "volume":{
      "display_name":"vol-002",
      "display_description":"This is yet, another volume.",
      "metadata":{
         "contents":"junk"
      }
   }
}

        

 

Example 2.10. Update Volume: JSON Response

          {
    "volume": {
        "attachments": [],
        "availability_zone": "nova",
        "bootable": "false",
        "created_at": "2013-02-20T07:36:44.000000",
        "display_description": "This is yet, another volume.",
        "display_name": "vol-002",
        "id": "2402b902-0b7a-458c-9c07-7435a826f794",
        "metadata": {
            "tier": "1"
        },
        "size": 1,
        "snapshot_id": null,
        "source_volid": null,
        "status": "available",
        "volume_type": "None"
    }
}

        

Returns status code 200 on success

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page