diff --git a/api-ref/source/v3/parameters.yaml b/api-ref/source/v3/parameters.yaml index f328de97324..14d9f758c64 100644 --- a/api-ref/source/v3/parameters.yaml +++ b/api-ref/source/v3/parameters.yaml @@ -629,6 +629,12 @@ description_14: in: body required: false type: string +description_15: + description: | + The volume type description. + in: body + required: false + type: string description_2: description: | The description of the consistency group. @@ -1526,6 +1532,12 @@ os-volume-replication:extended_status_1: in: body required: false type: string +os-volume-type-access:is_public: + description: | + Make type accessible to the public. + in: body + required: false + type: boolean pool_name: description: | The name of the storage pool. diff --git a/api-ref/source/v3/samples/volume-type-create-request.json b/api-ref/source/v3/samples/volume-type-create-request.json index 13d86bfdf5b..94ab0449ef5 100644 --- a/api-ref/source/v3/samples/volume-type-create-request.json +++ b/api-ref/source/v3/samples/volume-type-create-request.json @@ -2,9 +2,6 @@ "volume_type": { "name": "vol-type-001", "description": "volume type 0001", - "os-volume-type-access:is_public": true, - "extra_specs": { - "capabilities": "gpu" - } + "is_public": true, } } diff --git a/api-ref/source/v3/samples/volume-type-create-response.json b/api-ref/source/v3/samples/volume-type-create-response.json new file mode 100644 index 00000000000..d2db3b09cf6 --- /dev/null +++ b/api-ref/source/v3/samples/volume-type-create-response.json @@ -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" + } +} + diff --git a/api-ref/source/v3/volumes-v3-types.inc b/api-ref/source/v3/volumes-v3-types.inc index a4e0ea69b08..26864d61f60 100644 --- a/api-ref/source/v3/volumes-v3-types.inc +++ b/api-ref/source/v3/volumes-v3-types.inc @@ -245,6 +245,9 @@ Request - volume_type: volume_type - project_id: project_id_path + - name: name_7 + - is_public: is_public + - description: description_15 Request Example --------------- @@ -263,12 +266,13 @@ Response Parameters - description: description - volume_type: volume_type - name: name - + - id: id + - os-volume-type-access:is_public: os-volume-type-access:is_public Response Example ---------------- -.. literalinclude:: ./samples/volume-type-show-response.json +.. literalinclude:: ./samples/volume-type-create-response.json :language: javascript Show an encryption type