← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1543791] [NEW] Nova API doc for listing servers is missing metadata filter

 

You have been subscribed to a public bug:

I am using Nova v2.1 (Liberty). The documentation for listing servers
only covers a portion of the supported filter options. I don't know what
they all should be but I've found that 'metadata' is one of them. :-)

List Servers Doc: http://developer.openstack.org/api-ref-
compute-v2.1.html#listServers

Here is the filter method for listing servers where you can see the supported filters:
https://github.com/openstack/nova/blob/098d4ad487f8431b82d776629f15d13142d42789/nova/compute/api.py#L2027

The query below searches for servers with the metadata "foo=bar", and is
URL encoded:

curl -X "GET"
"http://api.openstacknetsdk.org:8774/v2.1/cae3d055dc5e4828adc4fdfe341168f7/servers/detail?metadata=%7B%22foo%22:%22bar%22%7D";

Without the encoding the query looks like this:

servers/detail?metadata={"foo":"bar"}

I haven't tried any other filters found in that method but they may be
ip (fixed_ip) and system_metadata.

** Affects: nova
     Importance: Undecided
     Assignee: Sharat Sharma (sharat-sharma)
         Status: In Progress


** Tags: nova
-- 
Nova API doc for listing servers is missing metadata filter
https://bugs.launchpad.net/bugs/1543791
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova).