I'd first suggesting looking for an existing PHP binding (I'm not aware of one).<div><br></div><div>You can also simply try "keystone tenant-create" and emulate it's request if that's all you need. I's implementation is here:<div>
<br></div><div>  <a href="https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/v2_0/tenants.py">https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/v2_0/tenants.py</a></div>
<div><br></div><div>Alternatively, that portion of the API is defined here:</div><div><br></div><div>  <a href="https://github.com/openstack/identity-api/blob/master/openstack-identity-api/src/docbkx/extensions/OS-KSADM/OS-KSADM-admin.wadl#L135">https://github.com/openstack/identity-api/blob/master/openstack-identity-api/src/docbkx/extensions/OS-KSADM/OS-KSADM-admin.wadl#L135</a></div>
<div><br></div><div>You could also just make system calls from PHP, e.g. system("keystone tenant-create ...") or use popen()</div></div><div class="gmail_extra"><br clear="all"><div><div><br></div>-Dolph</div><br>

<br><br><div class="gmail_quote">On Fri, Dec 14, 2012 at 1:05 PM, Guillermo Alvarado <span dir="ltr"><<a href="mailto:guillermoalvarado89@gmail.com" target="_blank">guillermoalvarado89@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Because I am using PHP, so I am making the requests with REST.<div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">2012/12/14 Matt Joyce <span dir="ltr"><<a href="mailto:matt.joyce@cloudscaling.com" target="_blank">matt.joyce@cloudscaling.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there a reason you are not using the keystone client api?<br><br><div class="gmail_quote"><div><div>On Fri, Dec 14, 2012 at 10:58 AM, Guillermo Alvarado <span dir="ltr"><<a href="mailto:guillermoalvarado89@gmail.com" target="_blank">guillermoalvarado89@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi Everyone,<div><br></div><div><span dir="ltr" style="font-family:arial,sans-serif;font-size:13px">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...</span><br>



</div><div><br></div><div>Thanks in advance,</div><div>Best regards.</div>
<br></div></div>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div>