← Back to team overview

openstack team mailing list archive

Re: Create tenant with RESTful api

 

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@xxxxxxxxx> wrote:

> Because I am using PHP, so I am making the requests with REST.
>
>
> 2012/12/14 Matt Joyce <matt.joyce@xxxxxxxxxxxxxxxx>
>
>> Is there a reason you are not using the keystone client api?
>>
>> On Fri, Dec 14, 2012 at 10:58 AM, Guillermo Alvarado <
>> guillermoalvarado89@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~openstack
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References