summaryrefslogtreecommitdiff
path: root/api-ref
diff options
context:
space:
mode:
authorKevin_Zheng <zhengzhenyu@huawei.com>2017-06-13 14:53:51 +0800
committerZhenyu Zheng <zhengzhenyu@huawei.com>2017-06-13 08:19:31 +0000
commitebb245edc234ffbc136286329bbf973296224ccf (patch)
tree2a2a7a0f8347365f294d9aa0b6e684e28b6b341a /api-ref
parent3a5d592e607176f4159ff65b6df0e2b552156aaf (diff)
downloadnova-ebb245edc234ffbc136286329bbf973296224ccf.tar.gz
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
Diffstat (limited to 'api-ref')
-rw-r--r--api-ref/source/os-services.inc8
-rw-r--r--api-ref/source/parameters.yaml12
2 files changed, 20 insertions, 0 deletions
diff --git a/api-ref/source/os-services.inc b/api-ref/source/os-services.inc
index 058fcd1980..c0efc0904d 100644
--- a/api-ref/source/os-services.inc
+++ b/api-ref/source/os-services.inc
@@ -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
--------
diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml
index 85ad55a3ca..11efb2c3b0 100644
--- a/api-ref/source/parameters.yaml
+++ b/api-ref/source/parameters.yaml
@@ -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.