[api-ref]Fix values of service-status in list-hosts
In "List all hosts for a project", service-status should take the values of ['available', 'unavailable'], (service-state takes the value of ['enabled', 'disabled']), and because os-services API uses service_status which requires returning `enabled` and `disabled`, we need add a new parameter host_service_status for os-hosts API. https://docs.openstack.org/api-ref/block-storage/v3/index.html#list-all-hosts-for-a-project partially-implements: blueprint volume-response-schema-validation Change-Id: Idde4a63f00862599a13bcfcdadc1d4459f27d3a4
This commit is contained in:
parent
f0dddd6a13
commit
d4f1e57257
@ -41,7 +41,7 @@ Response Parameters
|
||||
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- service-status: service_status
|
||||
- service-status: host_service_status
|
||||
- service: host_service
|
||||
- zone: availability_zone_3
|
||||
- service-state: service_state
|
||||
|
@ -687,6 +687,12 @@ host_service:
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
host_service_status:
|
||||
description: |
|
||||
The status of the service. One of ``available`` or ``unavailable``.
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
id:
|
||||
description: |
|
||||
The UUID of the volume transfer.
|
||||
@ -1539,7 +1545,7 @@ service_state:
|
||||
type: string
|
||||
service_status:
|
||||
description: |
|
||||
The status of the service. One of ``available`` or ``unavailable``.
|
||||
The status of the service. One of ``enabled`` or ``disabled``.
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
|
@ -42,7 +42,7 @@ Response Parameters
|
||||
.. rest_parameters:: parameters.yaml
|
||||
|
||||
- hosts: hosts
|
||||
- service-status: service_status
|
||||
- service-status: host_service_status
|
||||
- service: host_service
|
||||
- zone: availability_zone_required
|
||||
- service-state: service_state
|
||||
|
@ -1355,6 +1355,12 @@ host_service:
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
host_service_status:
|
||||
description: |
|
||||
The status of the service. One of ``available`` or ``unavailable``.
|
||||
in: body
|
||||
required: true
|
||||
type: string
|
||||
hosts:
|
||||
description: |
|
||||
A OpenStack Block Storage host.
|
||||
|
Loading…
Reference in New Issue
Block a user