Hi Zhihao,
Have you tried, glance image-list -visibility=shared
Hope this will help.
Thank you,
Abhishek Kekane
From: zhihao wang [mailto:wangzhihao...@hotmail.com]
Sent: Thursday, September 21, 2017 4:08 AM
To: openstack-dev-requ...@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@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.
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack