[Ovirt-devel] [PATCH 4/5] Find hardware_pool by path; search by parent_id

Daniel P. Berrange berrange at redhat.com
Wed Aug 13 12:34:42 UTC 2008

On Wed, Aug 06, 2008 at 05:00:18PM -0700, David Lutterkort wrote:
> Get individual hardware pool with a path, e.g. with a GET to
>   /ovirt/hardware_pools?path=/default/foo/bar
> Get children of a hardware pool from
>   /ovirt/hardware_pools?parent_id=1
> Get specific child with
>   /ovirt/hardware_pools?parent_id=1&name=foo

Guess I have similar questions about the URI syntax here as the previous
mail. Should we be encoding the name of the object as a parameter, vs
part of the URI path ? I've always thought of the URI path as providing
lookup for the object, and the parameters as filters/modifiers for the
data returned / action performed

|: 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