2016-09-17 01:12:40 -04:00
|
|
|
.. -*- rst -*-
|
|
|
|
|
|
|
|
Quota sets extension (os-quota-sets)
|
|
|
|
====================================
|
|
|
|
|
|
|
|
Administrators only, depending on policy settings.
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
Shows, updates, and deletes quotas for a project.
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
Show quotas for a project
|
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/{admin_project_id}/os-quota-sets/{project_id}
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
Shows quotas for a project.
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
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
|
|
|
- admin_project_id: admin_project_id
|
2017-08-29 16:07:03 -05:00
|
|
|
- project_id: quotas_project_id
|
2016-09-17 01:12:40 -04:00
|
|
|
- usage: usage
|
|
|
|
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- quota_set: quota_set
|
2018-01-25 11:38:19 +08:00
|
|
|
- id: project_id
|
2017-06-14 12:02:12 +08:00
|
|
|
- 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-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2019-09-30 11:44:32 +05:30
|
|
|
.. literalinclude:: ./samples/quota_sets/quotas-show-response.json
|
2016-09-17 01:12:40 -04:00
|
|
|
:language: javascript
|
|
|
|
|
2017-07-31 17:52:11 +08:00
|
|
|
|
|
|
|
Show quota usage for a project
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2019-02-19 16:51:56 -06:00
|
|
|
.. rest_method::
|
|
|
|
GET /v3/{admin_project_id}/os-quota-sets/{project_id}?{usage}=True
|
2017-07-31 17:52:11 +08:00
|
|
|
|
|
|
|
Shows quota usage for a project.
|
|
|
|
|
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
|
2017-07-31 17:52:11 +08:00
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
- 200
|
2017-07-31 17:52:11 +08:00
|
|
|
|
|
|
|
|
|
|
|
Request
|
|
|
|
-------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- project_id: quotas_project_id
|
|
|
|
- admin_project_id: admin_project_id
|
|
|
|
- usage: usage
|
|
|
|
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- quota_set: quota_set
|
2018-01-25 11:38:19 +08:00
|
|
|
- id: project_id
|
2017-07-31 17:52:11 +08:00
|
|
|
- volumes: volumes_number_usage
|
|
|
|
- volumes_{volume_type}: volumes_number_for_type_usage
|
|
|
|
- snapshots: snapshots_number_usage
|
|
|
|
- snapshots_{volume_type}: snapshots_number_for_type_usage
|
|
|
|
- backups: backups_number_usage
|
|
|
|
- groups: groups_number_usage
|
|
|
|
- per_volume_gigabytes: per_volume_gigabytes_usage
|
|
|
|
- gigabytes: gigabytes_usage
|
|
|
|
- gigabytes_{volume_type}: gigabytes_for_type_usage
|
|
|
|
- backup_gigabytes: backup_gigabytes_usage
|
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2019-09-30 11:44:32 +05:30
|
|
|
.. literalinclude:: ./samples/quota_sets/quotas-show-usage-response.json
|
2017-07-31 17:52:11 +08:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
Update quotas for a project
|
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/{admin_project_id}/os-quota-sets/{project_id}
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
Updates quotas for a project.
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
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
|
|
|
- admin_project_id: admin_project_id
|
2017-06-14 12:02:12 +08:00
|
|
|
- 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
|
|
|
|
- per_volume_gigabytes: per_volume_gigabytes
|
|
|
|
- gigabytes: gigabytes
|
|
|
|
- gigabytes_{volume_type}: gigabytes_for_type
|
|
|
|
- backup_gigabytes: backup_gigabytes
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
Request Example
|
|
|
|
---------------
|
|
|
|
|
2019-09-30 11:44:32 +05:30
|
|
|
.. literalinclude:: ./samples/quota_sets/quotas-update-request.json
|
2016-09-17 01:12:40 -04:00
|
|
|
:language: javascript
|
|
|
|
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- quota_set: quota_set
|
2017-06-14 12:02:12 +08:00
|
|
|
- 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-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2019-09-30 11:44:32 +05:30
|
|
|
.. literalinclude:: ./samples/quota_sets/quotas-update-response.json
|
2016-09-17 01:12:40 -04:00
|
|
|
:language: javascript
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
Delete quotas for a project
|
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/{admin_project_id}/os-quota-sets/{project_id}
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
Deletes quotas for a project so the quotas revert to default values.
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2018-03-01 09:11:44 -06:00
|
|
|
Response codes
|
2018-03-13 15:57:54 -05:00
|
|
|
--------------
|
2016-09-17 01:12:40 -04: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
|
|
|
|
|
2016-12-02 12:17:08 +03:00
|
|
|
- project_id: quotas_project_id
|
2017-01-09 11:51:06 +08:00
|
|
|
- admin_project_id: admin_project_id
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
Get default quotas for a project
|
2017-02-02 15:56:50 -06:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2019-02-19 16:51:56 -06:00
|
|
|
.. rest_method::
|
|
|
|
GET /v3/{admin_project_id}/os-quota-sets/{project_id}/defaults
|
2016-09-17 01:12:40 -04:00
|
|
|
|
2017-01-09 11:51:06 +08:00
|
|
|
Gets default quotas for a project.
|
2016-09-17 01:12:40 -04:00
|
|
|
|
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-12-02 12:17:08 +03:00
|
|
|
- admin_project_id: admin_project_id
|
2016-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
|
|
|
|
Response Parameters
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
|
|
|
|
- quota_set: quota_set
|
2018-01-25 11:38:19 +08:00
|
|
|
- id: project_id
|
2017-06-14 12:02:12 +08:00
|
|
|
- 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-09-17 01:12:40 -04:00
|
|
|
|
|
|
|
Response Example
|
|
|
|
----------------
|
|
|
|
|
2019-09-30 11:44:32 +05:30
|
|
|
.. literalinclude:: ./samples/quota_sets/quotas-show-defaults-response.json
|
2016-09-17 01:12:40 -04:00
|
|
|
:language: javascript
|