[openstack-dev] Writing Openstack Nova API extensions

Trinath Somanchi trinath.somanchi at gmail.com
Wed Sep 26 15:30:36 UTC 2012

Hi kevin-

Thanks a lot lot for the reply....

I have some basic doubts.

1. What are Controller and Resource extensions? How do they differ?

2. How do client requests differ for these type of extensions? Can you give
some examples on this.

Please help me understand the same...

Thanks a lot more for help.

On Sep 26, 2012 8:26 PM, "Kevin L. Mitchell" <kevin.mitchell at rackspace.com>

> On Wed, 2012-09-26 at 10:37 +0530, Trinath Somanchi wrote:
> > But I execute the URL as
> > "GET
> "
> As you have declared the ResourceExtension, the URL that maps to the
> metadetail method would be, I believe, more like this:
> <tenant>/servers/server_actions/metadetail
> You might try that and see if that gets you any closer to your goal.
> What I would suggest trying for the ResourceExtension declaration would
> be something more like ResourceExtension('metadetail',
> ServerMetaDetailController(), parent=dict(…)) and implementing the
> index() method to report your metadetail call.
> (Also, it's probably a bad idea to use "server_actions.py" to contain
> your extension code, since that duplicates the name of an existing
> extension.  Probably not a problem for PoC code as you're trying to
> figure out how extensions work, but when you get ready for production,
> make sure your names make sense and are distinct…)
> --
> Kevin L. Mitchell <kevin.mitchell at rackspace.com>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20120926/5af7a4a7/attachment.html>

More information about the OpenStack-dev mailing list