forked from openstacknetsdk/openstack.net
-
Notifications
You must be signed in to change notification settings - Fork 27
Rackspace Cloud Block Storage Code Samples
jasonmitschke edited this page Apr 12, 2013
·
8 revisions
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.