Skip to content

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:

  1. In the constructor.

  2. Into each method individually.

Our samples below will assume the identity has been passed into the constructor.

Clone this wiki locally