Api-ref: fix v2/v3 hosts extension api doc
Supplement error response codes and fix parameters problem. Change-Id: Ia24c6980f437ab6838d64c345bc9c10a100762e1 Closes-Bug: #1715286
This commit is contained in:
parent
b587307b42
commit
baf811f20d
@ -1,7 +1,7 @@
|
|||||||
.. -*- rst -*-
|
.. -*- rst -*-
|
||||||
|
|
||||||
Hosts extension (os-hosts)
|
Hosts extension (os-hosts)
|
||||||
====================================
|
==========================
|
||||||
|
|
||||||
Administrators only, depending on policy settings.
|
Administrators only, depending on policy settings.
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ Lists, shows hosts.
|
|||||||
|
|
||||||
|
|
||||||
List all hosts
|
List all hosts
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
.. rest_method:: GET /v2/{admin_tenant_id}/os-hosts
|
.. rest_method:: GET /v2/{admin_tenant_id}/os-hosts
|
||||||
|
|
||||||
@ -17,6 +17,8 @@ Lists all hosts summary info that is not disabled.
|
|||||||
|
|
||||||
Normal response codes: 200
|
Normal response codes: 200
|
||||||
|
|
||||||
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
|
|
||||||
@ -34,7 +36,7 @@ Response Parameters
|
|||||||
- service: host_service
|
- service: host_service
|
||||||
- zone: availability_zone_3
|
- zone: availability_zone_3
|
||||||
- service-state: service_state
|
- service-state: service_state
|
||||||
- host_name: hostname
|
- host_name: host_name_1
|
||||||
- last-update: updated_at
|
- last-update: updated_at
|
||||||
|
|
||||||
Response Example
|
Response Example
|
||||||
@ -56,7 +58,7 @@ cinder-volume service has been disabled.
|
|||||||
|
|
||||||
Normal response codes: 200
|
Normal response codes: 200
|
||||||
|
|
||||||
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -74,8 +76,8 @@ Response
|
|||||||
- volume_count: total_count
|
- volume_count: total_count
|
||||||
- total_volume_gb: totalGigabytesUsed
|
- total_volume_gb: totalGigabytesUsed
|
||||||
- total_snapshot_gb: totalSnapshotsUsed
|
- total_snapshot_gb: totalSnapshotsUsed
|
||||||
- project: admin_tenant_id
|
- project: project_id_2
|
||||||
- host: host
|
- host: host_name_1
|
||||||
- snapshot_count: totalSnapshotsUsed
|
- snapshot_count: totalSnapshotsUsed
|
||||||
|
|
||||||
**Example Show Host Details**
|
**Example Show Host Details**
|
||||||
|
@ -678,6 +678,12 @@ host_name:
|
|||||||
in: body
|
in: body
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
host_name_1:
|
||||||
|
description: |
|
||||||
|
The name of the host that hosts the storage backend.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
host_service:
|
host_service:
|
||||||
description: |
|
description: |
|
||||||
The name of the service which is running on the host.
|
The name of the service which is running on the host.
|
||||||
@ -1343,6 +1349,13 @@ project_id_1:
|
|||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
project_id_2:
|
||||||
|
description: |
|
||||||
|
The UUID of the project which the host resource belongs to.
|
||||||
|
In the summary resource, the value is ``(total)``.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
properties:
|
properties:
|
||||||
description: |
|
description: |
|
||||||
The backend volume capabilities list, which is
|
The backend volume capabilities list, which is
|
||||||
@ -1475,13 +1488,13 @@ security_groups:
|
|||||||
type: integer
|
type: integer
|
||||||
service_state:
|
service_state:
|
||||||
description: |
|
description: |
|
||||||
The state of the service. One of ``available`` or ``unavailable``.
|
The state of the service. One of ``enabled`` or ``disabled``.
|
||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
service_status:
|
service_status:
|
||||||
description: |
|
description: |
|
||||||
The status of the service. One of ``enabled`` or ``disabled``.
|
The status of the service. One of ``available`` or ``unavailable``.
|
||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
.. -*- rst -*-
|
.. -*- rst -*-
|
||||||
|
|
||||||
Hosts extension (os-hosts)
|
Hosts extension (os-hosts)
|
||||||
====================================
|
==========================
|
||||||
|
|
||||||
Administrators only, depending on policy settings.
|
Administrators only, depending on policy settings.
|
||||||
|
|
||||||
@ -17,6 +17,8 @@ Lists all hosts summary info that is not disabled.
|
|||||||
|
|
||||||
Normal response codes: 200
|
Normal response codes: 200
|
||||||
|
|
||||||
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
|
|
||||||
@ -35,7 +37,7 @@ Response Parameters
|
|||||||
- service: host_service
|
- service: host_service
|
||||||
- zone: availability_zone_3
|
- zone: availability_zone_3
|
||||||
- service-state: service_state
|
- service-state: service_state
|
||||||
- host_name: hostname
|
- host_name: host_name_1
|
||||||
- last-update: updated_at
|
- last-update: updated_at
|
||||||
|
|
||||||
Response Example
|
Response Example
|
||||||
@ -57,7 +59,7 @@ cinder-volume service has been disabled.
|
|||||||
|
|
||||||
Normal response codes: 200
|
Normal response codes: 200
|
||||||
|
|
||||||
Error response codes: unauthorized(401), forbidden(403), itemNotFound(404)
|
Error response codes: badRequest(400), unauthorized(401), forbidden(403), itemNotFound(404)
|
||||||
|
|
||||||
Request
|
Request
|
||||||
-------
|
-------
|
||||||
@ -76,8 +78,8 @@ Response
|
|||||||
- volume_count: total_count
|
- volume_count: total_count
|
||||||
- total_volume_gb: totalGigabytesUsed
|
- total_volume_gb: totalGigabytesUsed
|
||||||
- total_snapshot_gb: totalSnapshotsUsed
|
- total_snapshot_gb: totalSnapshotsUsed
|
||||||
- project: admin_project_id
|
- project: project_id_2
|
||||||
- host: host
|
- host: host_name_1
|
||||||
- snapshot_count: totalSnapshotsUsed
|
- snapshot_count: totalSnapshotsUsed
|
||||||
|
|
||||||
Response Example
|
Response Example
|
||||||
|
@ -1212,6 +1212,12 @@ host_name:
|
|||||||
in: body
|
in: body
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
host_name_1:
|
||||||
|
description: |
|
||||||
|
The name of the host that hosts the storage backend.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
host_name_body:
|
host_name_body:
|
||||||
description: |
|
description: |
|
||||||
The name of the host.
|
The name of the host.
|
||||||
@ -2029,6 +2035,13 @@ project_id_1:
|
|||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
project_id_2:
|
||||||
|
description: |
|
||||||
|
The Project ID which the host resource belongs to.
|
||||||
|
In the summary resource, the value is ``(total)``.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
properties:
|
properties:
|
||||||
description: |
|
description: |
|
||||||
The backend volume capabilities list, which is
|
The backend volume capabilities list, which is
|
||||||
@ -2262,7 +2275,7 @@ service_key:
|
|||||||
type: string
|
type: string
|
||||||
service_state:
|
service_state:
|
||||||
description: |
|
description: |
|
||||||
The state of the service. One of ``available`` or ``unavailable``.
|
The state of the service. One of ``enabled`` or ``disabled``.
|
||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -2274,7 +2287,7 @@ service_state_1:
|
|||||||
type: string
|
type: string
|
||||||
service_status:
|
service_status:
|
||||||
description: |
|
description: |
|
||||||
The status of the service. One of ``enabled`` or ``disabled``.
|
The status of the service. One of ``available`` or ``unavailable``.
|
||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user