[Ovirt-devel] [PATCH 3/5] API for Hardware Pools

Daniel P. Berrange berrange at redhat.com
Wed Aug 13 12:22:51 UTC 2008


On Wed, Aug 06, 2008 at 05:00:17PM -0700, David Lutterkort wrote:
> - List and filter HW pools by name
> - CRUD of individual HW pool
> - Hosts and storgae pools for a HW pool are accessible as nested resources, e.g.
>   /ovirt/hardware_pools/1/hosts?hostname=myhost.example.com

IMHO, a parameter like 'hostname' which is always require should
be encoded as part of the URL path

    /ovirt/hardware_pools/1/hosts/myhost.example.com

Has the nice side effect of making 'wget' usage easier because
you don't need to quote to get around shell metacharacter
expansion problems when using '?' and '&'

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the ovirt-devel mailing list