Add params for v3 API volume-type-create
In api-ref/source/v3/volumes-v3-type.inc, the api for type-create is missing request params, So the patch is to add the missing param as well as the sample JSON files. Change-Id: Iac982462ea0afe8e388d9f6e26b89c01e9c46a8c
This commit is contained in:
parent
870b9edac9
commit
c07d3018eb
@ -629,6 +629,12 @@ description_14:
|
|||||||
in: body
|
in: body
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
description_15:
|
||||||
|
description: |
|
||||||
|
The volume type description.
|
||||||
|
in: body
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
description_2:
|
description_2:
|
||||||
description: |
|
description: |
|
||||||
The description of the consistency group.
|
The description of the consistency group.
|
||||||
@ -1526,6 +1532,12 @@ os-volume-replication:extended_status_1:
|
|||||||
in: body
|
in: body
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
os-volume-type-access:is_public:
|
||||||
|
description: |
|
||||||
|
Make type accessible to the public.
|
||||||
|
in: body
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
pool_name:
|
pool_name:
|
||||||
description: |
|
description: |
|
||||||
The name of the storage pool.
|
The name of the storage pool.
|
||||||
|
@ -2,9 +2,6 @@
|
|||||||
"volume_type": {
|
"volume_type": {
|
||||||
"name": "vol-type-001",
|
"name": "vol-type-001",
|
||||||
"description": "volume type 0001",
|
"description": "volume type 0001",
|
||||||
"os-volume-type-access:is_public": true,
|
"is_public": true,
|
||||||
"extra_specs": {
|
|
||||||
"capabilities": "gpu"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
11
api-ref/source/v3/samples/volume-type-create-response.json
Normal file
11
api-ref/source/v3/samples/volume-type-create-response.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"volume_type": {
|
||||||
|
"name": "test_type",
|
||||||
|
"extra_specs": {},
|
||||||
|
"os-volume-type-access:is_public": true,
|
||||||
|
"is_public": true,
|
||||||
|
"id": "6d0ff92a-0007-4780-9ece-acfe5876966a",
|
||||||
|
"description": "test_type_desc"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -245,6 +245,9 @@ Request
|
|||||||
|
|
||||||
- volume_type: volume_type
|
- volume_type: volume_type
|
||||||
- project_id: project_id_path
|
- project_id: project_id_path
|
||||||
|
- name: name_7
|
||||||
|
- is_public: is_public
|
||||||
|
- description: description_15
|
||||||
|
|
||||||
Request Example
|
Request Example
|
||||||
---------------
|
---------------
|
||||||
@ -263,12 +266,13 @@ Response Parameters
|
|||||||
- description: description
|
- description: description
|
||||||
- volume_type: volume_type
|
- volume_type: volume_type
|
||||||
- name: name
|
- name: name
|
||||||
|
- id: id
|
||||||
|
- os-volume-type-access:is_public: os-volume-type-access:is_public
|
||||||
|
|
||||||
Response Example
|
Response Example
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
.. literalinclude:: ./samples/volume-type-show-response.json
|
.. literalinclude:: ./samples/volume-type-create-response.json
|
||||||
:language: javascript
|
:language: javascript
|
||||||
|
|
||||||
Show an encryption type
|
Show an encryption type
|
||||||
|
Loading…
Reference in New Issue
Block a user