<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi <span style="color: rgb(31, 73, 125); font-family: Calibri, sans-serif; font-size: 14.6667px;">Abhishek </span></p>
<p><span style="color: rgb(31, 73, 125); font-family: Calibri, sans-serif; font-size: 14.6667px;"><br>
</span></p>
<p><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size: 14.6667px;">thanks no, i did not try this</span></font></p>
<p><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size: 14.6667px;"><br>
</span></font></p>
<p><font color="#1f497d" face="Calibri, sans-serif"><span style="font-size: 14.6667px;">But I am looking for the python API to do this maybe user glacnce python client, or horizon python client?, not the CLI,,</span></font></p>
<div><br>
</div>
Any idea?
<div><br>
Thanks for your help
<div>Wally<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Kekane, Abhishek <Abhishek.Kekane@nttdata.com><br>
<b>Sent:</b> September 22, 2017 6:59 AM<br>
<b>To:</b> zhihao wang; openstack-dev-request@lists.openstack.org; openstack<br>
<b>Subject:</b> RE: question about OpenStack Python glance API -- list share image by tenant.</font>
<div> </div>
</div>
<div>
<div style="">
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Hi Zhihao,</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Have you tried, glance image-list –visibility=shared</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Hope this will help.</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Thank you,</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Abhishek Kekane</span></p>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif""> zhihao wang [mailto:wangzhihaocom@hotmail.com]
<br>
<b>Sent:</b> Thursday, September 21, 2017 4:08 AM<br>
<b>To:</b> openstack-dev-request@lists.openstack.org; openstack<br>
<b>Subject:</b> [Openstack] Fw: question about OpenStack Python glance API -- list share image by tenant.</span></p>
</div>
</div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
 </p>
<div id="divtagdefaultwrapper">
<p><span style="font-family:"Calibri","sans-serif"; color:black"> </span></p>
<div>
<div>
<div id="divtagdefaultwrapper">
<p><span style="font-family:"Calibri","sans-serif"; color:black">Deal all</span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black">I have a question about the openstack python glance client api</span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black">I want to get the list of all the shared image by tenant , but don't know how to get the list..</span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black">I can only find out this, list sharing,  but when i use tenant, it did not work, showed some error "No tenant_id" attribute...</span></p>
<h2 style="margin-bottom: 7.5pt; margin-right: 0in; margin-left: 0in; font-size: 18pt; font-family: "Times New Roman", serif; font-weight: bold;">
<span style="font-size:22.5pt; font-family:"Calibri","sans-serif"; color:#2A4E68; font-weight:normal">List Sharings<a href="https://docs.openstack.org/python-glanceclient/latest/reference/apiv2.html#list-sharings" title="Permalink to this headline" style="color: blue; text-decoration: underline;"><span style="color:white">¶</span></a></span></h2>
<p style="margin-bottom:7.5pt"><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#333333">Describe sharing permissions by image
</span><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:red">or tenant:</span><span style="font-size:10.5pt; font-family:"Calibri","sans-serif"; color:#333333"></span></p>
<div>
<div>
<div style="border:solid #CCCCCC 1.0pt; padding:15.0pt 23.0pt 15.0pt 23.0pt; background:#333333">
<pre style="background: rgb(51, 51, 51); word-break: break-all; border: none; padding: 0in; word-wrap: break-word; border-radius: 4px; overflow: auto; margin: 0in 0in 0.0001pt; font-size: 10pt; font-family: "Courier New";"><span style=""><span style="font-family:"Menlo","serif"; color:#D0D0D0">glance</span></span><span style=""><span style="font-family:"Menlo","serif"; color:#D0D0D0">.</span></span><span style=""><span style="font-family:"Menlo","serif"; color:#D0D0D0">image_members</span></span><span style=""><span style="font-family:"Menlo","serif"; color:#D0D0D0">.</span></span><span style=""><span style="font-family:"Menlo","serif"; color:#D0D0D0">list</span></span><span class="p"><span style="font-family:"Menlo","serif"; color:#D0D0D0">(</span></span><span style=""><span style="font-family:"Menlo","serif"; color:#D0D0D0">image_id</span></span><span class="p"><span style="font-family:"Menlo","serif"; color:#D0D0D0">)</span></span><span style="font-family:"Menlo","serif"; color:white"></span></pre>
</div>
</div>
</div>
<p style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-family:"Calibri","sans-serif"; color:black">  </span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black">Just like below in horizon, I want to get the share image with the tenant,..</span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black">Can anyone know how to get it using python api?</span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black"><img naturalheight="210" naturalwidth="151" border="0" width="151" height="210" id="img754387" tabindex="0" style="user-select: none;" src="cid:image001.png@01D3339E.7BE411B0"></span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black">Please help</span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black"> </span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black">Thanks</span></p>
<p><span style="font-family:"Calibri","sans-serif"; color:black">Wally</span></p>
</div>
</div>
</div>
</div>
</div>
<br clear="both">
______________________________________________________________________<br>
Disclaimer: This email and any attachments are sent in strictest confidence<br>
for the sole use of the addressee and may contain legally privileged,<br>
confidential, and proprietary data. If you are not the intended recipient,<br>
please advise the sender by replying promptly to this email and then delete<br>
and destroy this email and any attachments without any further use, copying<br>
or forwarding.<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>