incubator-libcloud mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sengor <seng...@gmail.com>
Subject [libcloud] Custom API queries
Date Thu, 13 Jan 2011 04:16:05 GMT
Hi guys,

Is it safe enough (long term interface wise) to utilise this mechanism
for sending custom queries to cloud provider APIs?

Example:
>>> from libcloud.types import Provider
>>> from libcloud.providers import get_driver
>>> from libcloud.drivers import ibm_sbc
>>> d=get_driver(Provider.IBM)
>>> c=d("username", "password")
>>> c.connection.request(ibm_sbc.REST_BASE+'/keys').body
'<?xml version="1.0"...>'

Where '/keys' could be an arbitrary REST API call.

Thank you.

-- 
sengork

Mime
View raw message