2016-05-13 00:33:12 +05:30
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
Quality of service (QoS) specifications (qos-specs)
|
|
|
|
===================================================
|
|
|
|
|
2016-09-08 22:33:18 -05:00
|
|
|
Administrators only.
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Creates, lists, shows details for, associates, disassociates, sets
|
|
|
|
keys, unsets keys, and deletes quality of service (QoS)
|
|
|
|
specifications.
|
|
|
|
|
|
|
|
|
|
|
|
Disassociate QoS specification from all associations
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
.. rest_method:: GET /v2/{project_id}/qos-specs/{qos_id}/disassociate_all
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Disassociates a QoS specification from all associations.
|
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
Response codes
|
2018-03-13 15:57:54 -05:00
|
|
|
--------------
|
2018-03-01 09:11:44 -06:00
|
|
|
|
|
|
|
.. rest_status_code:: success ../status.yaml
|
|
|
|
|
|
|
|
- 200
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
- project_id: project_id_path
|
2016-05-13 00:33:12 +05:30
|
|
|
- qos_id: qos_id
|
|
|
|
|
|
|
|
|
|
|
|
Unset keys in QoS specification
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
.. rest_method:: PUT /v2/{project_id}/qos-specs/{qos_id}/delete_keys
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Unsets keys in a QoS specification.
|
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
Response codes
|
2018-03-13 15:57:54 -05:00
|
|
|
--------------
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
.. rest_status_code:: success ../status.yaml
|
|
|
|
|
|
|
|
- 200
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- keys: keys
|
2017-09-27 14:51:10 +08:00
|
|
|
- project_id: project_id_path
|
2016-05-13 00:33:12 +05:30
|
|
|
- qos_id: qos_id
|
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/qos-unset-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/qos-unset-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Get all associations for QoS specification
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
.. rest_method:: GET /v2/{project_id}/qos-specs/{qos_id}/associations
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Lists all associations for a QoS specification.
|
|
|
|
|
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
Response codes
|
2018-03-13 15:57:54 -05:00
|
|
|
--------------
|
2018-03-01 09:11:44 -06:00
|
|
|
|
|
|
|
.. rest_status_code:: success ../status.yaml
|
|
|
|
|
|
|
|
- 200
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
- project_id: project_id_path
|
2016-05-13 00:33:12 +05:30
|
|
|
- qos_id: qos_id
|
|
|
|
|
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/qos-show-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Associate QoS specification with volume type
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
.. rest_method:: GET /v2/{project_id}/qos-specs/{qos_id}/associate
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Associates a QoS specification with a volume type.
|
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
Response codes
|
2018-03-13 15:57:54 -05:00
|
|
|
--------------
|
2018-03-01 09:11:44 -06:00
|
|
|
|
|
|
|
.. rest_status_code:: success ../status.yaml
|
|
|
|
|
|
|
|
- 200
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
- project_id: project_id_path
|
2016-05-13 00:33:12 +05:30
|
|
|
- qos_id: qos_id
|
2017-05-26 09:23:23 -04:00
|
|
|
- vol_type_id: vol_type_id
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Disassociate QoS specification from volume type
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
.. rest_method:: GET /v2/{project_id}/qos-specs/{qos_id}/disassociate
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Disassociates a QoS specification from a volume type.
|
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
Response codes
|
2018-03-13 15:57:54 -05:00
|
|
|
--------------
|
2018-03-01 09:11:44 -06:00
|
|
|
|
|
|
|
.. rest_status_code:: success ../status.yaml
|
|
|
|
|
|
|
|
- 200
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
- project_id: project_id_path
|
2016-05-13 00:33:12 +05:30
|
|
|
- qos_id: qos_id
|
2017-05-26 09:23:23 -04:00
|
|
|
- vol_type_id: vol_type_id
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Show QoS specification details
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
.. rest_method:: GET /v2/{project_id}/qos-specs/{qos_id}
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Shows details for a QoS specification.
|
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
Response codes
|
2018-03-13 15:57:54 -05:00
|
|
|
--------------
|
2018-03-01 09:11:44 -06:00
|
|
|
|
|
|
|
.. rest_status_code:: success ../status.yaml
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
- 200
|
2017-09-03 18:13:01 -05:00
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
.. rest_status_code:: error ../status.yaml
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
|
|
|
- 404
|
|
|
|
- 405
|
|
|
|
- 413
|
|
|
|
- 503
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
- project_id: project_id_path
|
2016-05-13 00:33:12 +05:30
|
|
|
- qos_id: qos_id
|
|
|
|
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-11-19 14:12:11 +08:00
|
|
|
- name: name_4
|
|
|
|
- links: links_2
|
|
|
|
- id: id_3
|
2016-05-13 00:33:12 +05:30
|
|
|
- qos_specs: qos_specs
|
|
|
|
- consumer: consumer
|
|
|
|
- specs: specs
|
|
|
|
|
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/qos-show-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Set keys in QoS specification
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
.. rest_method:: PUT /v2/{project_id}/qos-specs/{qos_id}
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Sets keys in a QoS specification.
|
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
Response codes
|
2018-03-13 15:57:54 -05:00
|
|
|
--------------
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
.. rest_status_code:: success ../status.yaml
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
- 200
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- qos_specs: qos_specs
|
|
|
|
- specs: specs
|
2017-09-27 14:51:10 +08:00
|
|
|
- project_id: project_id_path
|
2016-05-13 00:33:12 +05:30
|
|
|
- qos_id: qos_id
|
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/qos-update-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/qos-update-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Delete QoS specification
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
.. rest_method:: DELETE /v2/{project_id}/qos-specs/{qos_id}
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Deletes a QoS specification.
|
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
Response codes
|
2018-03-13 15:57:54 -05:00
|
|
|
--------------
|
2018-03-01 09:11:44 -06:00
|
|
|
|
|
|
|
.. rest_status_code:: success ../status.yaml
|
|
|
|
|
|
|
|
- 202
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
- project_id: project_id_path
|
2016-05-13 00:33:12 +05:30
|
|
|
- qos_id: qos_id
|
|
|
|
- force: force
|
|
|
|
|
|
|
|
|
|
|
|
Create QoS specification
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
.. rest_method:: POST /v2/{project_id}/qos-specs
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Creates a QoS specification.
|
|
|
|
|
|
|
|
Specify one or more key and value pairs in the request body.
|
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
Response codes
|
2018-03-13 15:57:54 -05:00
|
|
|
--------------
|
2018-03-01 09:11:44 -06:00
|
|
|
|
|
|
|
.. rest_status_code:: success ../status.yaml
|
|
|
|
|
|
|
|
- 202
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- qos_specs: qos_specs
|
|
|
|
- consumer: consumer
|
2017-11-19 14:12:11 +08:00
|
|
|
- name: name_4
|
2017-09-27 14:51:10 +08:00
|
|
|
- project_id: project_id_path
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/qos-create-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-11-19 14:12:11 +08:00
|
|
|
- name: name_4
|
|
|
|
- links: links_2
|
|
|
|
- id: id_3
|
2016-05-13 00:33:12 +05:30
|
|
|
- qos_specs: qos_specs
|
|
|
|
- consumer: consumer
|
|
|
|
- specs: specs
|
|
|
|
|
|
|
|
|
|
|
|
List QoS specs
|
2018-08-15 08:18:28 -05:00
|
|
|
~~~~~~~~~~~~~~
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
.. rest_method:: GET /v2/{project_id}/qos-specs
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Lists quality of service (QoS) specifications.
|
|
|
|
|
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
Response codes
|
2018-03-13 15:57:54 -05:00
|
|
|
--------------
|
2018-03-01 09:11:44 -06:00
|
|
|
|
|
|
|
.. rest_status_code:: success ../status.yaml
|
|
|
|
|
|
|
|
- 200
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
- project_id: project_id_path
|
2016-05-13 00:33:12 +05:30
|
|
|
- sort_key: sort_key
|
|
|
|
- sort_dir: sort_dir
|
|
|
|
- limit: limit
|
|
|
|
- marker: marker
|
|
|
|
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- specs: specs
|
|
|
|
- qos_specs: qos_specs
|
|
|
|
- consumer: consumer
|
2017-11-19 14:12:11 +08:00
|
|
|
- id: id_3
|
|
|
|
- name: name_4
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/qos-list-response.json
|
|
|
|
:language: javascript
|