[Openstack] question about OpenStack Python glance API -- list share image by tenant.

zhihao wang wangzhihaocom at hotmail.com
Fri Sep 22 17:30:52 UTC 2017


Hi Abhishek


thanks no, i did not try this


But I am looking for the python API to do this maybe user glacnce python client, or horizon python client?, not the CLI,,

Any idea?

Thanks for your help
Wally
________________________________
From: Kekane, Abhishek <Abhishek.Kekane at nttdata.com>
Sent: September 22, 2017 6:59 AM
To: zhihao wang; openstack-dev-request at lists.openstack.org; openstack
Subject: RE: question about OpenStack Python glance API -- list share image by tenant.


Hi Zhihao,



Have you tried, glance image-list –visibility=shared



Hope this will help.



Thank you,



Abhishek Kekane



From: zhihao wang [mailto:wangzhihaocom at hotmail.com]
Sent: Thursday, September 21, 2017 4:08 AM
To: openstack-dev-request at lists.openstack.org; openstack
Subject: [Openstack] Fw: question about OpenStack Python glance API -- list share image by tenant.





Deal all



I have a question about the openstack python glance client api



I want to get the list of all the shared image by tenant , but don't know how to get the list..



I can only find out this, list sharing,  but when i use tenant, it did not work, showed some error "No tenant_id" attribute...

List Sharings¶<https://docs.openstack.org/python-glanceclient/latest/reference/apiv2.html#list-sharings>

Describe sharing permissions by image or tenant:

glance.image_members.list(image_id)



Just like below in horizon, I want to get the share image with the tenant,..

Can anyone know how to get it using python api?

[cid:image001.png at 01D3339E.7BE411B0]



Please help



Thanks

Wally

______________________________________________________________________
Disclaimer: This email and any attachments are sent in strictest confidence
for the sole use of the addressee and may contain legally privileged,
confidential, and proprietary data. If you are not the intended recipient,
please advise the sender by replying promptly to this email and then delete
and destroy this email and any attachments without any further use, copying
or forwarding.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170922/f56f1cb7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 5251 bytes
Desc: image001.png
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170922/f56f1cb7/attachment.png>


More information about the Openstack mailing list