Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding documentation to README.md for Cloud BlockStorage

  • Loading branch information...
commit 85d450c07086805cd1fd61c25a1af9488783c464 1 parent 43e5406
@kenperkins authored
Showing with 18 additions and 0 deletions.
  1. +18 −0 README.md
View
18 README.md
@@ -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`
Please sign in to comment.
Something went wrong with that request. Please try again.