How to connect to Rackspace Cloud Files via ServiceNET

If you are a Rackspace customer and you are are planning to use Rackspace Cloud Files via it’s internal network (ServiceNet) so you don’t get billed for the bandwidth going over Cloud Files this is how you can do.

The first thing is to make sure with your support team if your servers are connected to ServiceNet and if you have that connection then there is a small change to do in your code.

The second thing is to use the just released 1.5.0 version on GitHUB for PHP :

http://github.com/rackspace/php-cloudfiles/tree/1.5.0

and for python :

http://github.com/rackspace/python-cloudfiles/tree/1.5.0

(you need to click on the download link at the top to download the tarball of the release).

Afer this is just a matter to set the argument servicenet=True, for example in PHP :

$user='username';
$api_key='theapi_key';
 
$auth = new CF_Authentication($user, $api_key);
$auth->authenticate();
$conn = new CF_Connection($auth, $servicenet=true);

In Python you can do like this :

username='username'
api_key='api_key'
 
cnx = cloudfiles.get_connection(username, api_key, servicenet=True)
This entry was posted in Programming, Python, Rackspace. Bookmark the permalink.

4 Responses to How to connect to Rackspace Cloud Files via ServiceNET

  1. Pingback: Akari (akari) 's status on Wednesday, 14-Oct-09 01:10:47 UTC - Identi.ca

  2. Pingback: Accessing to Rackspace Cloud Files via servicenet (update) @ Chmouel Blog

  3. Ben says:

    I think this feature may have been broken somewhere between 1.5.0 and 1.7.0. Created an issue at github: http://github.com/rackspace/php-cloudfiles/issues#issue/6

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>