Ask Your Question

Need REST API to attach volume to a instance

asked 2015-04-28 07:18:56 -0600

Suji gravatar image

Hi all,

I'm doing automation using SOAP UI, using this tool I'm trying to automate the testcase to attach volume to a instance through REST API. But I didn't get the proper REST API to attach volume to a instance.

If any one knows the proper REST API and reference links for this. Please post it here.

Thanks in advance,

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2015-04-28 14:01:26 -0600

You can actually run all the Openstack CLI's in debug mode to see the cURL commands it's executing.

for example you could run nova --debug volume-attach $UUIDofServer $UUIDofVolume auto and see what API calls it's making then just translate the HTTP Verbs, Body and syntax to your REST API client.

[root@node-3 ~]# nova help volume-attach
usage: nova volume-attach <server> <volume> [<device>]

Attach a volume to a server.

Positional arguments:
  <server>  Name or ID of server.
  <volume>  ID of the volume to attach.
  <device>  Name of the device e.g. /dev/vdb. Use "auto" for autoassign (if
edit flag offensive delete link more


Thanks a lot ..:)

Suji gravatar imageSuji ( 2015-04-29 03:46:46 -0600 )edit

answered 2015-04-28 08:31:23 -0600

Here what you are searching for...

edit flag offensive delete link more


Thank you..

Suji gravatar imageSuji ( 2015-04-29 03:47:01 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-04-28 07:18:56 -0600

Seen: 648 times

Last updated: Apr 28 '15