diff --git a/api-ref/source/quotas.inc b/api-ref/source/quotas.inc old mode 100644 new mode 100755 index a80f01ebb4..5849500307 --- a/api-ref/source/quotas.inc +++ b/api-ref/source/quotas.inc @@ -95,7 +95,7 @@ Update a resource quota .. rest_method:: PATCH /v1/quotas/{project_id}/{resource} -Update resource quota for the given projec id. +Update resource quota for the given project id. Response Codes -------------- @@ -122,3 +122,30 @@ Response Example .. literalinclude:: samples/quota-update-resp.json :language: javascript + +Delete a resource quota +============================ + +.. rest_method:: DELETE /v1/quotas/{project_id}/{resource} + +Delete a resource quota for the given project id. + +Response Codes +-------------- + +.. rest_status_code:: success status.yaml + + - 204 + +.. rest_status_code:: error status.yaml + + - 400 + - 401 + - 403 + - 404 + +Request Example +---------------- + +.. literalinclude:: samples/quota-delete-req.json + :language: javascript \ No newline at end of file diff --git a/api-ref/source/samples/quota-delete-req.json b/api-ref/source/samples/quota-delete-req.json new file mode 100755 index 0000000000..e16a93bfb4 --- /dev/null +++ b/api-ref/source/samples/quota-delete-req.json @@ -0,0 +1,4 @@ +{ + "project_id": "aa5436ab58144c768ca4e9d2e9f5c3b2", + "resource": "Cluster" +} \ No newline at end of file diff --git a/api-ref/source/samples/quota-update-req.json b/api-ref/source/samples/quota-update-req.json old mode 100644 new mode 100755 index 8d83881311..c5f941c938 --- a/api-ref/source/samples/quota-update-req.json +++ b/api-ref/source/samples/quota-update-req.json @@ -1,3 +1,5 @@ { + "project_id": "aa5436ab58144c768ca4e9d2e9f5c3b2", + "resource": "Cluster", "hard_limit": 10 } \ No newline at end of file