-
Notifications
You must be signed in to change notification settings - Fork 27
Rackspace Cloud Block Storage Code Samples
#CloudBlockStorageProvider
Here we will provide samples for basic operation on CloudFilesProvider
.
CloudBlockStorageProvider
requires we pass in CloudIdentity
.
We can create CloudIdentity
by passing any 2 combination. Username/Password or Username/APIKey.
var cloudIdentity = new CloudIdentity() { Username = "username", Password = "password" };
or
var cloudIdentity = new CloudIdentity() { APIKey = "apikey", Username = "username" };
For more information on IdentityProvider
There are 2 ways to pass in the identity credentials to CloudBlockStorageProvider
:
-
In the constructor.
-
Into each method individually.
Our samples below will assume the identity has been passed into the constructor.
##Volumes
var provider = new CloudBlockStorageProvider(); bool volumeCreatedResponse = provider.CreateVolume(100, "Test Volume Description", "Test Volume", null, "SATA", null, cloudIdentity);
var provider = new CloudBlockStorageProvider(); IEnumerable volumeListResponse = provider.ListVolumes(null, cloudIdentity);
Coming Soon
Coming Soon
Coming Soon
Coming Soon
Coming Soon
##Volume Types
Coming Soon
Coming Soon
##Snapshots
Coming Soon
Coming Soon
Coming Soon
Coming Soon
Coming Soon
Coming Soon
Coming Soon