[Openstack] Get tenant by name

李旦 lidan17 at jd.com
Fri Jan 9 02:33:49 UTC 2015


 Hi,

Maybe you need:
curl -i -X GET http://IPAddr:35357/v2.0/tenants?{name=XXXX} -H "User-Agent: python-keystoneclient" -H "X-Auth-Token: XXXXXXXXXXXXXXXXXXXXXX"

Hope this helps.

Best Regards,
Daniel

From: Peter Scott<mailto:Peter.J.Scott at jpl.nasa.gov>
Date: 2015-01-09 09:42
To: openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Subject: [Openstack] Get tenant by name

Hello.  The v2.0 API documentation at
http://developer.openstack.org/api-ref-identity-v2.html says that it is
possible to look up a tenant by name.  It comes right after the "list
all tenants" call and looks the same, although if I understand it
correctly it takes a request body with a 'name' parameter.

However, I can't find any Python support for that lookup nor a curl
example.  Can someone supply either a curl example or a python call that
looks up a tenant by name please?

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150109/b46f23c9/attachment.html>


More information about the Openstack mailing list