[Openstack] Create tenant with RESTful api

Dolph Mathews dolph.mathews at gmail.com
Fri Dec 14 19:12:34 UTC 2012


I'd first suggesting looking for an existing PHP binding (I'm not aware of
one).

You can also simply try "keystone tenant-create" and emulate it's request
if that's all you need. I's implementation is here:


https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/v2_0/tenants.py

Alternatively, that portion of the API is defined here:


https://github.com/openstack/identity-api/blob/master/openstack-identity-api/src/docbkx/extensions/OS-KSADM/OS-KSADM-admin.wadl#L135

You could also just make system calls from PHP, e.g. system("keystone
tenant-create ...") or use popen()


-Dolph



On Fri, Dec 14, 2012 at 1:05 PM, Guillermo Alvarado <
guillermoalvarado89 at gmail.com> wrote:

> Because I am using PHP, so I am making the requests with REST.
>
>
> 2012/12/14 Matt Joyce <matt.joyce at cloudscaling.com>
>
>> Is there a reason you are not using the keystone client api?
>>
>> On Fri, Dec 14, 2012 at 10:58 AM, Guillermo Alvarado <
>> guillermoalvarado89 at gmail.com> wrote:
>>
>>> Hi Everyone,
>>>
>>> Please, someone can give me information about how to create a tenant
>>> with a REST request. I am trying to develop a module to use my legacy
>>> billing software, so I need to create tenants, create a vm, terminate it
>>> and suspend it. I can achieve the later with the vm but I can not find how
>>> to make the request to create a tenant...
>>>
>>> Thanks in advance,
>>> Best regards.
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~openstack
>>> Post to     : openstack at lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20121214/53f6b764/attachment.html>


More information about the Openstack mailing list