Fixed request/response parameters in doc
user_id, project_id and status were listed as request parameters when they are actually response parameters. Change-Id: I5ff464c6aae853929b2b10ba62898913977016b0 Closes-Bug: 1603177
This commit is contained in:
parent
376c3ddfd2
commit
f794629360
@ -69,14 +69,23 @@ Request
|
|||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
- status: status
|
- description: description_6
|
||||||
- user_id: user_id
|
|
||||||
- description: description
|
|
||||||
- availability_zone: availability_zone
|
- availability_zone: availability_zone
|
||||||
|
- volume_types: volume_types_2
|
||||||
|
- name: name_15
|
||||||
|
|
||||||
|
Response
|
||||||
|
--------
|
||||||
|
|
||||||
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
|
- status: status_1
|
||||||
|
- description: description_11
|
||||||
|
- availability_zone: availability_zone
|
||||||
|
- created_at: created_at
|
||||||
- volume_types: volume_types
|
- volume_types: volume_types
|
||||||
- project_id: project_id
|
- name: name_15
|
||||||
- name: name
|
- id: consistencygroup_id_1
|
||||||
- tenant_id: tenant_id
|
|
||||||
|
|
||||||
Request Example
|
Request Example
|
||||||
---------------
|
---------------
|
||||||
@ -84,6 +93,11 @@ Request Example
|
|||||||
.. literalinclude:: ./samples/consistency-group-create-request.json
|
.. literalinclude:: ./samples/consistency-group-create-request.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
|
Response Example
|
||||||
|
----------------
|
||||||
|
|
||||||
|
.. literalinclude:: ./samples/consistency-group-create-response.json
|
||||||
|
:language: javascript
|
||||||
|
|
||||||
Show consistency group details
|
Show consistency group details
|
||||||
==============================
|
==============================
|
||||||
|
@ -1612,6 +1612,18 @@ volume_types:
|
|||||||
in: body
|
in: body
|
||||||
required: true
|
required: true
|
||||||
type: array
|
type: array
|
||||||
|
volume_types_2:
|
||||||
|
description: |
|
||||||
|
The list of volume types separated by commas. In an environment with
|
||||||
|
multiple-storage back ends, the scheduler determines where to send
|
||||||
|
the volume based on the volume type. For information about how to
|
||||||
|
use volume types to create multiple-storage back ends, see
|
||||||
|
`Configure multiple-storage back ends
|
||||||
|
<http://docs.openstack.org/admin-
|
||||||
|
guide/blockstorage_multi_backend.html>`_.
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
volumes:
|
volumes:
|
||||||
description: |
|
description: |
|
||||||
A list of ``volume`` objects.
|
A list of ``volume`` objects.
|
||||||
|
@ -2,13 +2,7 @@
|
|||||||
"consistencygroup": {
|
"consistencygroup": {
|
||||||
"name": "firstcg",
|
"name": "firstcg",
|
||||||
"description": "first consistency group",
|
"description": "first consistency group",
|
||||||
"volume_types": [
|
"volume_types": "type1,type2",
|
||||||
"type1",
|
"availability_zone": "az0"
|
||||||
"type2"
|
|
||||||
],
|
|
||||||
"user_id": "6f519a48-3183-46cf-a32f-41815f814546",
|
|
||||||
"project_id": "6f519a48-3183-46cf-a32f-41815f815555",
|
|
||||||
"availability_zone": "az0",
|
|
||||||
"status": "creating"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
{
|
{
|
||||||
"consistencygroup": {
|
"consistencygroup": {
|
||||||
"id": "6f519a48-3183-46cf-a32f-41815f816666",
|
"status": "error",
|
||||||
|
"description": "first consistency group",
|
||||||
|
"availability_zone": "az0",
|
||||||
|
"created_at": "2016-08-19T19:32:19.000000",
|
||||||
|
"volume_types": ["type1", "type2"],
|
||||||
|
"id": "63d1a274-de38-4384-a97e-475306777027",
|
||||||
"name": "firstcg"
|
"name": "firstcg"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user