<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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><br>
</p>
<div style="color: rgb(0, 0, 0);">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Deal all</p>
<p><br>
</p>
<p>I have a question about the openstack python glance client api</p>
<p><br>
</p>
<p>I want to get the list of all the shared image by tenant , but don't know how to get the list..</p>
<p><br>
</p>
<p>I can only find out this, list sharing,  but when i use tenant, it did not work, showed some error "No tenant_id" attribute...</p>
<p></p>
<h2 style="font-weight:lighter; line-height:1.1; color:rgb(42,78,104); margin-top:20px; margin-bottom:10px; font-size:30px">
List Sharings<a class="headerlink" href="https://docs.openstack.org/python-glanceclient/latest/reference/apiv2.html#list-sharings" title="Permalink to this headline" style="background-color:transparent; color:rgb(255,255,255)">¶</a></h2>
<p style="margin-right:0px; margin-bottom:10px; margin-left:0px; color:rgb(51,51,51); font-size:14px">
Describe sharing permissions by image <span style="color:rgb(255,0,0)">or tenant:</span></p>
<div class="highlight-default" style="color:rgb(51,51,51); font-size:14px">
<div class="highlight" style="">
<pre style="overflow:auto; font-family:Menlo,Monaco,Consolas,"Courier New",monospace; font-size:13px; padding:20px 30px; margin-top:0px; margin-bottom:10px; line-height:1.42857; color:rgb(255,255,255); word-break:break-all; word-wrap:break-word; background-color:rgb(51,51,51); border:1px solid rgb(204,204,204); border-radius:4px"><span style=""></span><span class="n" style="color:rgb(208,208,208)">glance</span><span class="o" style="color:rgb(208,208,208)">.</span><span class="n" style="color:rgb(208,208,208)">image_members</span><span class="o" style="color:rgb(208,208,208)">.</span><span class="n" style="color:rgb(208,208,208)">list</span><span class="p" style="color:rgb(208,208,208)">(</span><span class="n" style="color:rgb(208,208,208)">image_id</span><span class="p" style="color:rgb(208,208,208)">)</span></pre>
</div>
</div>
 
<p></p>
<p>Just like below in horizon, I want to get the share image with the tenant,..</p>
<p>Can anyone know how to get it using python api?</p>
<p><img naturalheight="210" naturalwidth="151" size="5251" id="img754387" tabindex="0" style="max-width: 99.9%; user-select: none;" src="cid:3f13f092-2295-4710-918f-8698b541475a"><br>
</p>
<p><br>
</p>
<p>Please help</p>
<p><br>
</p>
<p>Thanks</p>
<p>Wally</p>
</div>
</div>
</div>
</div>
</body>
</html>