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
|
||||
|
||||
- status: status
|
||||
- user_id: user_id
|
||||
- description: description
|
||||
- description: description_6
|
||||
- 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
|
||||
- project_id: project_id
|
||||
- name: name
|
||||
- tenant_id: tenant_id
|
||||
- name: name_15
|
||||
- id: consistencygroup_id_1
|
||||
|
||||
Request Example
|
||||
---------------
|
||||
@ -84,6 +93,11 @@ Request Example
|
||||
.. literalinclude:: ./samples/consistency-group-create-request.json
|
||||
:language: javascript
|
||||
|
||||
Response Example
|
||||
----------------
|
||||
|
||||
.. literalinclude:: ./samples/consistency-group-create-response.json
|
||||
:language: javascript
|
||||
|
||||
Show consistency group details
|
||||
==============================
|
||||
|
@ -1612,6 +1612,18 @@ volume_types:
|
||||
in: body
|
||||
required: true
|
||||
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:
|
||||
description: |
|
||||
A list of ``volume`` objects.
|
||||
|
@ -2,13 +2,7 @@
|
||||
"consistencygroup": {
|
||||
"name": "firstcg",
|
||||
"description": "first consistency group",
|
||||
"volume_types": [
|
||||
"type1",
|
||||
"type2"
|
||||
],
|
||||
"user_id": "6f519a48-3183-46cf-a32f-41815f814546",
|
||||
"project_id": "6f519a48-3183-46cf-a32f-41815f815555",
|
||||
"availability_zone": "az0",
|
||||
"status": "creating"
|
||||
"volume_types": "type1,type2",
|
||||
"availability_zone": "az0"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,11 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user