<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:Menlo;
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
h2
{mso-style-priority:9;
mso-style-link:"Heading 2 Char";
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:18.0pt;
font-family:"Times New Roman","serif";
font-weight:bold;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.Heading2Char
{mso-style-name:"Heading 2 Char";
mso-style-priority:9;
mso-style-link:"Heading 2";
font-family:"Cambria","serif";
color:#4F81BD;
font-weight:bold;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.n
{mso-style-name:n;}
span.o
{mso-style-name:o;}
span.p
{mso-style-name:p;}
span.EmailStyle24
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Zhihao,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Have you tried, glance image-list –visibility=shared<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hope this will help.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank you,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Abhishek Kekane<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><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.<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div id="divtagdefaultwrapper">
<p><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<div>
<div>
<div id="divtagdefaultwrapper">
<p><span style="font-family:"Calibri","sans-serif";color:black">Deal all<o:p></o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black">I have a question about the openstack python glance client api<o:p></o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></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..<o:p></o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></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...<o:p></o:p></span></p>
<h2 style="mso-margin-top-alt:15.0pt;margin-right:0in;margin-bottom:7.5pt;margin-left:0in">
<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"><span style="color:white">¶</span></a><o:p></o:p></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"><o:p></o:p></span></p>
<div>
<div>
<div style="mso-element:para-border-div;border:solid #CCCCCC 1.0pt;padding:15.0pt 23.0pt 15.0pt 23.0pt;background:#333333">
<pre style="margin-bottom:7.5pt;background:#333333;word-break:break-all;border:none;padding:0in;word-wrap:break-word;border-radius:4px;overflow:auto"><span class="n"><span style="font-family:"Menlo","serif";color:#D0D0D0">glance</span></span><span class="o"><span style="font-family:"Menlo","serif";color:#D0D0D0">.</span></span><span class="n"><span style="font-family:"Menlo","serif";color:#D0D0D0">image_members</span></span><span class="o"><span style="font-family:"Menlo","serif";color:#D0D0D0">.</span></span><span class="n"><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 class="n"><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"><o:p></o:p></span></pre>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">
<o:p></o:p></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,..<o:p></o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black">Can anyone know how to get it using python api?<o:p></o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black"><img border="0" width="151" height="210" id="img754387" src="cid:image001.png@01D3339E.7BE411B0"><o:p></o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black">Please help<o:p></o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black">Thanks<o:p></o:p></span></p>
<p><span style="font-family:"Calibri","sans-serif";color:black">Wally<o:p></o:p></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>
</body>
</html>