2016-05-13 00:33:12 +05:30
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
Quota sets extension (os-quota-sets)
|
|
|
|
====================================
|
|
|
|
|
|
|
|
Administrators only, depending on policy settings.
|
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
Shows, updates, and deletes quotas for a project.
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Show quotas
|
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/{admin_project_id}/os-quota-sets/{project_id}
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
Shows quotas for a project.
|
2016-05-13 00:33:12 +05:30
|
|
|
|
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
|
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
- project_id: quotas_project_id
|
|
|
|
- admin_project_id: admin_project_id
|
2016-05-13 00:33:12 +05:30
|
|
|
- usage: usage
|
|
|
|
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- quota_set: quota_set
|
2018-01-25 11:38:19 +08:00
|
|
|
- id: project_id
|
2018-10-03 16:59:28 +05:30
|
|
|
- volumes: volumes_number
|
|
|
|
- volumes_{volume_type}: volumes_number_for_type
|
|
|
|
- snapshots: snapshots_number
|
|
|
|
- snapshots_{volume_type}: snapshots_number_for_type
|
|
|
|
- backups: backups_number
|
|
|
|
- groups: groups_number
|
|
|
|
- per_volume_gigabytes: per_volume_gigabytes
|
|
|
|
- gigabytes: gigabytes
|
|
|
|
- gigabytes_{volume_type}: gigabytes_for_type
|
|
|
|
- backup_gigabytes: backup_gigabytes
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/quotas-show-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Update quotas
|
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/{admin_project_id}/os-quota-sets/{project_id}
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
Updates quotas for a project.
|
2016-05-13 00:33:12 +05:30
|
|
|
|
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
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
- admin_project_id: admin_project_id
|
2018-10-03 16:59:28 +05:30
|
|
|
- project_id: quotas_project_id
|
|
|
|
- quota_set: quota_set
|
|
|
|
- volumes: volumes_number
|
|
|
|
- volumes_{volume_type}: volumes_number_for_type
|
|
|
|
- snapshots: snapshots_number
|
|
|
|
- snapshots_{volume_type}: snapshots_number_for_type
|
|
|
|
- backups: backups_number
|
|
|
|
- groups: groups_number
|
2018-05-29 20:01:03 +08:00
|
|
|
- per_volume_gigabytes: per_volume_gigabytes
|
2018-10-03 16:59:28 +05:30
|
|
|
- gigabytes: gigabytes
|
|
|
|
- gigabytes_{volume_type}: gigabytes_for_type
|
|
|
|
- backup_gigabytes: backup_gigabytes
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/quotas-update-request.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- quota_set: quota_set
|
2018-10-03 16:59:28 +05:30
|
|
|
- volumes: volumes_number
|
|
|
|
- volumes_{volume_type}: volumes_number_for_type
|
|
|
|
- snapshots: snapshots_number
|
|
|
|
- snapshots_{volume_type}: snapshots_number_for_type
|
|
|
|
- backups: backups_number
|
|
|
|
- groups: groups_number
|
|
|
|
- per_volume_gigabytes: per_volume_gigabytes
|
|
|
|
- gigabytes: gigabytes
|
|
|
|
- gigabytes_{volume_type}: gigabytes_for_type
|
|
|
|
- backup_gigabytes: backup_gigabytes
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/quotas-update-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Delete quotas
|
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/{admin_project_id}/os-quota-sets/{project_id}
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
Deletes quotas for a project so the quotas revert to default values.
|
2016-05-13 00:33:12 +05:30
|
|
|
|
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
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
- project_id: quotas_project_id
|
|
|
|
- admin_project_id: admin_project_id
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/quotas-delete-response.json
|
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
Get default quotas
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2019-02-19 16:51:56 -06:00
|
|
|
.. rest_method::
|
|
|
|
GET /v2/{admin_project_id}/os-quota-sets/{project_id}/defaults
|
2016-05-13 00:33:12 +05:30
|
|
|
|
2017-09-27 14:51:10 +08:00
|
|
|
Gets default quotas for a project.
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
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: quotas_project_id
|
|
|
|
- admin_project_id: admin_project_id
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- quota_set: quota_set
|
2018-01-25 11:38:19 +08:00
|
|
|
- id: project_id
|
2018-10-03 16:59:28 +05:30
|
|
|
- volumes: volumes_number
|
|
|
|
- volumes_{volume_type}: volumes_number_for_type
|
|
|
|
- snapshots: snapshots_number
|
|
|
|
- snapshots_{volume_type}: snapshots_number_for_type
|
|
|
|
- backups: backups_number
|
|
|
|
- groups: groups_number
|
|
|
|
- per_volume_gigabytes: per_volume_gigabytes
|
|
|
|
- gigabytes: gigabytes
|
|
|
|
- gigabytes_{volume_type}: gigabytes_for_type
|
|
|
|
- backup_gigabytes: backup_gigabytes
|
2016-05-13 00:33:12 +05:30
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. literalinclude:: ./samples/quotas-show-defaults-response.json
|
|
|
|
:language: javascript
|