libcloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <>
Subject Re: [libcloud] Custom API queries
Date Thu, 13 Jan 2011 05:30:31 GMT
On Wed, Jan 12, 2011 at 8:16 PM, Sengor <> wrote:
> 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.

It would be better to wrap most of these in ex_ prefix APIs on the
main driver object -- while I dont think there is a plan to rewrite
connection any time soon, relying on it seems very much like a
non-public API -- it would be best to just submit patches for adding
more things, see the rackspace or amazon drivers for example, they
have many extension apis.



View raw message