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

Kekane, Abhishek Abhishek.Kekane at nttdata.com
Fri Sep 22 06:59:57 UTC 2017


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/15621f1c/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/15621f1c/attachment.png>


More information about the Openstack mailing list