<div dir="ltr"><div>I forgot to say that the project is indicated in: </div><div>| Owner | 0351a1f666684f0fbd29548fb6f73eed |</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-16 3:33 GMT+02:00 Carlos Miguel Hernández Romero <span dir="ltr"><<a href="mailto:miguel2hermanas@gmail.com" target="_blank">miguel2hermanas@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks for answer.<br><div><div>My problem is I want to know the Python API which is the OpenStack project an image. </div>
<div>I get everything but that project belongs:</div></div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:13px">
url = '/v2/images/0d7c09eb-d100-4a13-84e7-fdda2f50bfd3'<br></div><div style="font-family:arial,sans-serif;font-size:13px">print glance.images.http_client.json_request('GET', url)<br></div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">(<httplib.HTTPResponse instance at 0x37a8e60>, {u'status': u'active', u'name': u'imagen_prueba2', u'tags': [], u'container_format': u'bare', u'created_at': u'2014-04-15T16:31:16Z', u'disk_format': u'qcow2', u'updated_at': u'2014-04-15T16:31:18Z', u'visibility': u'private', u'id': u'0d7c09eb-d100-4a13-84e7-fdda2f50bfd3', u'protected': False, u'min_ram': 0, u'file': u'/v2/images/0d7c09eb-d100-4a13-84e7-fdda2f50bfd3/file', u'checksum': u'd972013792949d0d3ba628fbe8685bce', u'min_disk': 0, u'schema': u'/v2/schemas/image', u'self': u'/v2/images/0d7c09eb-d100-4a13-84e7-fdda2f50bfd3', u'size': 13147648})</div>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">from the command if I have the project:</div><div><div class=""><div style="font-family:arial,sans-serif;font-size:13px">
vagrant@precise64:~/devstack$ glance image-show 'a8ddca2e-f004-4329-a9d6-83fd8d0589de'</div><div style="font-family:arial,sans-serif;font-size:13px">+-----------------------+--------------------------------------+</div>
<div style="font-family:arial,sans-serif;font-size:13px">| Property | Value |</div><div style="font-family:arial,sans-serif;font-size:13px">+-----------------------+--------------------------------------+</div>
<div style="font-family:arial,sans-serif;font-size:13px">| Property 'kernel_id' | ab2c6e53-34f3-4a2a-829c-4b69a40e1f0b |</div><div style="font-family:arial,sans-serif;font-size:13px">| Property 'ramdisk_id' | 64148dd3-0d94-4331-80c3-17e3be60ecab |</div>
<div style="font-family:arial,sans-serif;font-size:13px">| checksum | f8a2eeee2dc65b3d9b6e63678955bd83 |</div><div style="font-family:arial,sans-serif;font-size:13px">| container_format | ami |</div>
<div style="font-family:arial,sans-serif;font-size:13px">| created_at | 2014-04-15T12:37:40 |</div><div style="font-family:arial,sans-serif;font-size:13px">| deleted | False |</div>
<div style="font-family:arial,sans-serif;font-size:13px">| disk_format | ami |</div><div style="font-family:arial,sans-serif;font-size:13px">| id | a8ddca2e-f004-4329-a9d6-83fd8d0589de |</div>
<div style="font-family:arial,sans-serif;font-size:13px">| is_public | True |</div><div style="font-family:arial,sans-serif;font-size:13px">| min_disk | 0 |</div>
<div style="font-family:arial,sans-serif;font-size:13px">| min_ram | 0 |</div><div style="font-family:arial,sans-serif;font-size:13px">| name | cirros-0.3.1-x86_64-uec |</div>
<div style="font-family:arial,sans-serif;font-size:13px">| owner | 0351a1f666684f0fbd29548fb6f73eed |</div><div style="font-family:arial,sans-serif;font-size:13px">| protected | False |</div>
<div style="font-family:arial,sans-serif;font-size:13px">| size | 25165824 |</div><div style="font-family:arial,sans-serif;font-size:13px">| status | active |</div>
<div style="font-family:arial,sans-serif;font-size:13px">| updated_at | 2014-04-15T12:37:41 |</div><div style="font-family:arial,sans-serif;font-size:13px">+-----------------------+--------------------------------------+</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div></div><div><font face="arial, sans-serif">How do I get to know which project belongs from OpenStack API Python?</font><br></div></div><div>
<font face="arial, sans-serif">Best Regards!</font><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-04-16 2:45 GMT+02:00 严超 <span dir="ltr"><<a href="mailto:yanchao727@gmail.com" target="_blank">yanchao727@gmail.com</a>></span>:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><font size="4">I dont get it. What's your issue?<br></font></div><div><font size="4"><br>#glance image-list <br>
</font></div><div><font size="4">Can list all the images in one project.</font><br></div>
<div class="gmail_extra"><br clear="all"><div><div><font size="4"><i><b>Best Regards!<br></b></i></font></div><div><font size="4"><i><b>Chao Yan<br></b></i></font></div><div><font face="comic sans ms, sans-serif" size="4"><b><i></i></b></font></div>
<div dir="ltr"><font face="comic sans ms, sans-serif" size="4"><b><i><font>--------------<br>My twitter:Andy Yan @yanchao727<br>--------------</font><br></i></b></font></div></div>
<br><br><div class="gmail_quote">2014-04-16 1:18 GMT+08:00 Carlos Miguel Hernández Romero <span dir="ltr"><<a href="mailto:miguel2hermanas@gmail.com" target="_blank">miguel2hermanas@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div>
<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">I want to know using the Python API OpenStack project that has images or vice versa , that project has an image .</div><div style="font-family:arial,sans-serif;font-size:13px">
>From the command line gives you the information :</div><div style="font-family:arial,sans-serif;font-size:13px"><div>vagrant@precise64:~/devstack$ glance image-show 'a8ddca2e-f004-4329-a9d6-83fd8d0589de'</div><div>
+-----------------------+--------------------------------------+</div><div>| Property | Value |</div><div>+-----------------------+--------------------------------------+</div>
<div>
| Property 'kernel_id' | ab2c6e53-34f3-4a2a-829c-4b69a40e1f0b |</div><div>| Property 'ramdisk_id' | 64148dd3-0d94-4331-80c3-17e3be60ecab |</div><div>| checksum | f8a2eeee2dc65b3d9b6e63678955bd83 |</div>
<div>| container_format | ami |</div><div>| created_at | 2014-04-15T12:37:40 |</div><div>| deleted | False |</div>
<div>| disk_format | ami |</div><div>| id | a8ddca2e-f004-4329-a9d6-83fd8d0589de |</div><div>| is_public | True |</div>
<div>| min_disk | 0 |</div><div>| min_ram | 0 |</div><div>| name | cirros-0.3.1-x86_64-uec |</div>
<div>| owner | 0351a1f666684f0fbd29548fb6f73eed |</div><div>| protected | False |</div><div>| size | 25165824 |</div>
<div>| status | active |</div><div>| updated_at | 2014-04-15T12:37:41 |</div><div>+-----------------------+--------------------------------------+</div>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>But since the API can not I get python or with nova nor glance . I get all the data unless it is associated project .</div>
<div>Can anyone help me out ?</div><div><br></div><div>Greetings and thanks</div></div></div>
<br></div></div>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>