Add missing query filter params for GET /os-services API

The GET /os-services API takes "host" and "binary" query filter
parameters:

https://github.com/openstack/nova/blob/3a5d592e607176f4159ff65b6df0e2b552156aaf/nova/api/openstack/compute/services.py#L54-L58

And novaclient exposes those filters:

https://docs.openstack.org/cli-reference/nova.html#nova-service-list

But they aren't documented in the API reference:

https://developer.openstack.org/api-ref/compute/?expanded=list-compute-services-detail#list-compute-services

Change-Id: I0ed35404d93475538326d3020754a6f97f25d08c
Closes-bug: #1697563
This commit is contained in:
Kevin_Zheng
2017-06-13 14:53:51 +08:00
committed by Zhenyu Zheng
parent 3a5d592e60
commit ebb245edc2
2 changed files with 20 additions and 0 deletions
+8
View File
@@ -26,6 +26,14 @@ Normal response codes: 200
Error response codes: unauthorized(401), forbidden(403)
Request
-------
.. rest_parameters:: parameters.yaml
- binary: binary_query
- host: host_query_service
Response
--------
+12
View File
@@ -322,6 +322,12 @@ availability_zone_query_server:
in: query
required: false
type: string
binary_query:
description: |
Filter the service list result by binary name of the service.
in: query
required: false
type: string
changes-since:
description: |
Filters the response by a date and time when the image last changed status.
@@ -486,6 +492,12 @@ host_query_server:
in: query
required: false
type: string
host_query_service:
description: |
Filter the service list result by the host name.
in: query
required: false
type: string
hostname_query_server:
description: |
Filter the server list result by the host name of server.