de29398128
As of API version 2.60, a project_id is no longer needed in the API URLs. Fix the docs to indicate that. Also fix up a few quota parameters that use project_id in a different place in the API path. Change-Id: I24b32c8521805a7d67d512d36d644c0f07c532ea Implements: bp remove-project-id-from-urls Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
131 lines
3.0 KiB
ReStructuredText
131 lines
3.0 KiB
ReStructuredText
.. -*- rst -*-
|
|
|
|
===============
|
|
Quota class set
|
|
===============
|
|
|
|
Quota classes can be shown and updated for a project.
|
|
|
|
.. important::
|
|
Share replicas and replica gigabytes were added to quota management
|
|
APIs in API version 2.53.
|
|
|
|
|
|
Show quota classes for a project
|
|
================================
|
|
|
|
.. rest_method:: GET /v2/quota-class-sets/{quota_class_name}
|
|
|
|
Shows quota class set for a project. If no specific value for the quota class
|
|
resource exists, then the default value will be reported.
|
|
|
|
Response codes
|
|
--------------
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
- 200
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
- 403
|
|
- 404
|
|
|
|
Request
|
|
-------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- project_id: project_id_path
|
|
- quota_class_name: quota_class_name
|
|
|
|
|
|
Response Parameters
|
|
-------------------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- quota_class_set: quota_class_set
|
|
- share_groups: maxTotalShareGroups
|
|
- gigabytes: maxTotalShareGigabytes
|
|
- share_group_snapshots: maxTotalShareGroupSnapshots
|
|
- snapshots: maxTotalShareSnapshots
|
|
- snapshot_gigabytes: maxTotalSnapshotGigabytes
|
|
- shares: maxTotalShares
|
|
- id: quota_class_id
|
|
- share_networks: maxTotalShareNetworks
|
|
- share_replicas: maxTotalShareReplicas
|
|
- replica_gigabytes: maxTotalReplicaGigabytes
|
|
|
|
Response Example
|
|
----------------
|
|
|
|
.. literalinclude:: ./samples/quota-classes-show-response.json
|
|
:language: javascript
|
|
|
|
|
|
Update quota classes for a project
|
|
==================================
|
|
|
|
.. rest_method:: PUT /v2/quota-class-sets/{quota_class_name}
|
|
|
|
Updates quota class set for a project. If the ``quota_class_name`` key does not
|
|
exist, then the API will create one.
|
|
|
|
Response codes
|
|
--------------
|
|
|
|
.. rest_status_code:: success status.yaml
|
|
|
|
- 200
|
|
|
|
.. rest_status_code:: error status.yaml
|
|
|
|
- 400
|
|
- 403
|
|
- 404
|
|
|
|
Request
|
|
-------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- project_id: project_id_path
|
|
- quota_class_name: quota_class_name
|
|
- shares: maxTotalSharesOptional
|
|
- snapshots: maxTotalShareSnapshotsOptional
|
|
- gigabytes: maxTotalShareGigabytesOptional
|
|
- snapshot-gigabytes: maxTotalSnapshotGigabytesOptional
|
|
- share-networks: maxTotalShareNetworksOptional
|
|
- share-replicas: maxTotalShareReplicasOptional
|
|
- replica-gigabytes: maxTotalReplicaGigabytesOptional
|
|
|
|
Request Example
|
|
---------------
|
|
|
|
.. literalinclude:: ./samples/quota-classes-update-request.json
|
|
:language: javascript
|
|
|
|
|
|
Response Parameters
|
|
-------------------
|
|
|
|
.. rest_parameters:: parameters.yaml
|
|
|
|
- quota_class_set: quota_class_set
|
|
- share_groups: maxTotalShareGroups
|
|
- gigabytes: maxTotalShareGigabytes
|
|
- share_group_snapshots: maxTotalShareGroupSnapshots
|
|
- snapshots: maxTotalShareSnapshots
|
|
- snapshot_gigabytes: maxTotalSnapshotGigabytes
|
|
- shares: maxTotalShares
|
|
- share_networks: maxTotalShareNetworks
|
|
- share_replicas: maxTotalShareReplicas
|
|
- replica_gigabytes: maxTotalReplicaGigabytes
|
|
|
|
Response Example
|
|
----------------
|
|
|
|
.. literalinclude:: ./samples/quota-classes-update-response.json
|
|
:language: javascript
|