Permalink
Browse files

Adding documentation to README.md for Cloud BlockStorage

  • Loading branch information...
1 parent 43e5406 commit 85d450c07086805cd1fd61c25a1af9488783c464 Ken Perkins committed Jan 31, 2013
Showing with 18 additions and 0 deletions.
  1. +18 −0 README.md
View
@@ -91,6 +91,24 @@ client.createLoadBalancer({
```
+### Create and attach a Cloud BlockStorage Volume
+```Javascript
+client.getServer(serverId, function(err, server) {
+ client.createVolume({
+ display_name: 'my new volume ' + serverId,
+ size: 100,
+ volume_type: rackspace.VolumeType.SATA
+ }, function(err, volume) {
+ server.attachVolume({
+ volumeId: volume.id,
+ device: '/dev/xvdb'
+ }, function(err, result) {
+ // Use your Volume Here
+ });
+ });
+});
+```
+
## Run Tests
All rackspace-openstack tests are available by running `make test`

0 comments on commit 85d450c

Please sign in to comment.