2016-09-17 01:12:40 -04:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
Quality of service (QoS) specifications (qos-specs)
|
|
|
|
===================================================
|
|
|
|
|
|
|
|
Administrators only, depending on policy settings.
|
|
|
|
|
|
|
|
Creates, lists, shows details for, associates, disassociates, sets
|
|
|
|
keys, unsets keys, and deletes quality of service (QoS)
|
|
|
|
specifications.
|
|
|
|
|
|
|
|
|
|
|
|
Disassociate a QoS specification from all associations
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
.. rest_method:: GET /v3/{project_id}/qos-specs/{qos_id}/disassociate_all
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
- 202
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
- project_id: project_id_path
|
2016-09-17 01:12:40 -04:00
|
|
|
- qos_id: qos_id
|
|
|
|
|
|
|
|
|
|
|
|
Unset keys in a QoS specification
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
.. rest_method:: PUT /v3/{project_id}/qos-specs/{qos_id}/delete_keys
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
Unsets keys in 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-09-17 01:12:40 -04:00
|
|
|
|
2018-06-22 01:05:08 +08:00
|
|
|
- 202
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
- project_id: project_id_path
|
2016-09-17 01:12:40 -04:00
|
|
|
- qos_id: qos_id
|
2017-08-29 16:07:03 -05:00
|
|
|
- keys: keys
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
2019-09-26 17:04:43 +05:30
|
|
|
.. literalinclude:: ./samples/qos/qos-unset-request.json
|
2016-09-17 01:12:40 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Get all associations for a QoS specification
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
.. rest_method:: GET /v3/{project_id}/qos-specs/{qos_id}/associations
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
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-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
- project_id: project_id_path
|
2016-09-17 01:12:40 -04:00
|
|
|
- qos_id: qos_id
|
|
|
|
|
|
|
|
|
2017-08-29 16:07:03 -05:00
|
|
|
Response
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2018-09-20 16:40:03 +08:00
|
|
|
- qos_associations: qos_associations
|
|
|
|
- type: qos_association_type
|
|
|
|
- id: qos_association_id
|
|
|
|
- name: qos_association_name
|
2017-08-29 16:07:03 -05:00
|
|
|
|
|
|
|
|
2016-09-17 01:12:40 -04:00
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2019-09-26 17:04:43 +05:30
|
|
|
.. literalinclude:: ./samples/qos/qos_show_response.json
|
2016-09-17 01:12:40 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Associate QoS specification with a volume type
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
.. rest_method:: GET /v3/{project_id}/qos-specs/{qos_id}/associate
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
- 202
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
- project_id: project_id_path
|
2016-09-17 01:12:40 -04:00
|
|
|
- qos_id: qos_id
|
2017-08-29 16:07:03 -05:00
|
|
|
- vol_type_id: vol_type_id_query
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Disassociate QoS specification from a volume type
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
.. rest_method:: GET /v3/{project_id}/qos-specs/{qos_id}/disassociate
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
- 202
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
- project_id: project_id_path
|
2016-09-17 01:12:40 -04:00
|
|
|
- qos_id: qos_id
|
2017-08-29 16:07:03 -05:00
|
|
|
- vol_type_id: vol_type_id_query
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Show a QoS specification details
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
.. rest_method:: GET /v3/{project_id}/qos-specs/{qos_id}
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
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-09-17 01:12:40 -04:00
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
- 200
|
2017-08-29 16:07:03 -05:00
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
.. rest_status_code:: error ../status.yaml
|
|
|
|
|
|
|
|
- 400
|
|
|
|
- 401
|
|
|
|
- 403
|
|
|
|
- 404
|
|
|
|
- 405
|
|
|
|
- 413
|
|
|
|
- 503
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
- project_id: project_id_path
|
2016-09-17 01:12:40 -04:00
|
|
|
- qos_id: qos_id
|
|
|
|
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- qos_specs: qos_specs
|
|
|
|
- specs: specs
|
2017-08-29 16:07:03 -05:00
|
|
|
- consumer: consumer
|
2018-10-30 11:03:09 +05:30
|
|
|
- name: name_qos_spec
|
|
|
|
- id: id_qos_spec
|
|
|
|
- links: links_qos
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2019-09-26 17:04:43 +05:30
|
|
|
.. literalinclude:: ./samples/qos/qos-show-response.json
|
2016-09-17 01:12:40 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Set keys in a QoS specification
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
.. rest_method:: PUT /v3/{project_id}/qos-specs/{qos_id}
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
Sets keys in 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-09-17 01:12:40 -04:00
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
- 200
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
- project_id: project_id_path
|
2016-09-17 01:12:40 -04:00
|
|
|
- qos_id: qos_id
|
2017-08-29 16:07:03 -05:00
|
|
|
- qos_specs: qos_specs
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
2019-09-26 17:04:43 +05:30
|
|
|
.. literalinclude:: ./samples/qos/qos-update-request.json
|
2016-09-17 01:12:40 -04:00
|
|
|
:language: javascript
|
|
|
|
|
2017-08-29 16:07:03 -05:00
|
|
|
Response
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- qos_specs: qos_specs
|
|
|
|
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2019-09-26 17:04:43 +05:30
|
|
|
.. literalinclude:: ./samples/qos/qos-update-response.json
|
2016-09-17 01:12:40 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Delete a QoS specification
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
.. rest_method:: DELETE /v3/{project_id}/qos-specs/{qos_id}
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
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-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
- project_id: project_id_path
|
2016-09-17 01:12:40 -04:00
|
|
|
- qos_id: qos_id
|
2018-10-30 11:03:09 +05:30
|
|
|
- force: force_del_qos
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Create a QoS specification
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
.. rest_method:: POST /v3/{project_id}/qos-specs
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
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-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
- project_id: project_id_path
|
2017-08-29 16:07:03 -05:00
|
|
|
- qos_specs: qos_specs
|
2018-10-30 11:03:09 +05:30
|
|
|
- name: name_qos_spec
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
2019-09-26 17:04:43 +05:30
|
|
|
.. literalinclude:: ./samples/qos/qos-create-request.json
|
2016-09-17 01:12:40 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- qos_specs: qos_specs
|
2018-10-30 11:03:09 +05:30
|
|
|
- name: name_qos_spec
|
|
|
|
- links: links_qos
|
|
|
|
- id: id_qos_spec
|
2016-09-17 01:12:40 -04:00
|
|
|
- consumer: consumer
|
|
|
|
- specs: specs
|
|
|
|
|
|
|
|
|
2018-09-20 16:40:03 +08:00
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2019-09-26 17:04:43 +05:30
|
|
|
.. literalinclude:: ./samples/qos/qos-create-response.json
|
2018-09-20 16:40:03 +08:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
2016-09-17 01:12:40 -04:00
|
|
|
List QoS Specifications
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
.. rest_method:: GET /v3/{project_id}/qos-specs
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
.. rest_status_code:: error ../status.yaml
|
2017-08-29 16:07:03 -05:00
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
- 300
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
- project_id: project_id_path
|
2017-08-29 16:07:03 -05:00
|
|
|
- sort: sort
|
2016-09-17 01:12:40 -04:00
|
|
|
- limit: limit
|
|
|
|
- marker: marker
|
|
|
|
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- qos_specs: qos_specs
|
2017-08-29 16:07:03 -05:00
|
|
|
- specs: specs
|
2016-09-17 01:12:40 -04:00
|
|
|
- consumer: consumer
|
2018-10-30 11:03:09 +05:30
|
|
|
- id: id_qos_spec
|
|
|
|
- name: name_qos_spec
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2019-09-26 17:04:43 +05:30
|
|
|
.. literalinclude:: ./samples/qos/qos-list-response.json
|
2016-09-17 01:12:40 -04:00
|
|
|
:language: javascript
|