Hi-<div><br></div><div>I have written an Resource extension, with parent member and collection as server.</div><div><br></div><div>below is the Serve_actions class.</div><div><br></div><div><div>class Server_actions(extensions.ExtensionDescriptor):</div>
<div>    def get_resources(self):</div><div>        resources = []</div><div>        resource = extensions.ResourceExtension('server_actions',</div><div>                                                 ServerActionsController(),</div>
<div>                                                 member_actions={"metadetail":"GET"},</div><div>                                                 parent=dict(member_name='server', collection_name='servers'))</div>
<div>        resources.append(resource)</div><div>        return resources</div><div>                           </div></div><div>Here, the parent is the Server expert controller and the extension is the Resource extension.</div>
<div><br></div><div>But I execute the URL as "GET <a href="http://10.232.90.82:8774/v2/e216fcb54dc944a8ab16e4e325299643/servers/metadetail?key=Created+By&value=TestApp.py">http://10.232.90.82:8774/v2/e216fcb54dc944a8ab16e4e325299643/servers/metadetail?key=Created+By&value=TestApp.py</a>"</div>
<div><br></div><div>I see that the API, is not mapping the URI to the newly created extension which handles the "metadetail" request. </div><div><br></div><div>In the logs, 'wsgiorg.routing_args': (<routes.util.URLGenerator object at 0x38a5050>, {<b>'action': u'show'</b>, 'controller': <nova.api.openstack.wsgi.Resource object at 0x2bb6810>, 'project_id': u'e216fcb54dc944a8ab16e4e325299643', 'id': u'metadetail'}), actions is reported as "Show" rather than "metadetail".</div>
<div><br></div><div>Can any one guide me on where I was wrong in my new extension implementation.</div><div><br></div><div>Thanking you for the help in advance.</div><div><br></div><div><br></div><div><br clear="all"><div>
<br></div>-- <br>Regards,<br>----------------------------------------------<br>Trinath Somanchi,<div>+91 9866 235 130</div><br>
</div>