Ask Your Question
1

Is volume_type referring to its NAME or ID?

asked 2013-09-19 12:23:00 -0600

ben gravatar image

In the Cinder Bloack Storage specs, http://docs.openstack.org/api/openstack-block-storage/2.0/content/Create_Volume.html

the input to create volume REST call is: { "volume":{ "name":"vol-001", "description":"Another volume.", "size":30, "volume_type":"289da7f8-6440-407c-9fb4-7db01ec49164", "availability_zone":"us-east1", "metadata":{ "contents":"junk" } } }

Q: Is the value of the "volume_type" shown above example referring to the NAME ord ID of a Volume Type?. Rackspace seems to use VolumeType name: { "volume": { "display_name": "vol-001", "display_description": "Another volume.", "size": 100, "volume_type": "SATA", } }

see http://docs.rackspace.com/cbs/api/v1.0/cbs-devguide/content/POST_createVolume_v1__tenant_id__volumes_v1__tenant_id__volumes.html

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-09-20 10:23:24 -0600

Sirushti Murugesan gravatar image

Hi, Indeed the value of volume_type in that example is quite misleading. The purpose of volume_type is really just to distinguish the different storage volumes based on their characteristics. So it's neither a volume's NAME nor is it it's ID.

The ID and Name(if you'd specified any) are returned. You can find them in the response body.

Response Body:

{
   "volume":{
      "id":"6996b558-d633-4635-8116-adf14009fcc3",
       .
       .
       .
      "name":"vol-001"
   }
}
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-09-19 12:23:00 -0600

Seen: 74 times

Last updated: Sep 20 '13