Add api-ref about quotas-delete
1.Add api-ref about quotas-delete; 2.Update sample of quotas-update. Closes-Bug:#1698111 Change-Id: I435a80da7efe9c898782b8eab8744db80928c9c1
This commit is contained in:
parent
e94bc1f5c9
commit
8241fd8e7a
29
api-ref/source/quotas.inc
Normal file → Executable file
29
api-ref/source/quotas.inc
Normal file → Executable file
@ -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
|
4
api-ref/source/samples/quota-delete-req.json
Executable file
4
api-ref/source/samples/quota-delete-req.json
Executable file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"project_id": "aa5436ab58144c768ca4e9d2e9f5c3b2",
|
||||
"resource": "Cluster"
|
||||
}
|
2
api-ref/source/samples/quota-update-req.json
Normal file → Executable file
2
api-ref/source/samples/quota-update-req.json
Normal file → Executable file
@ -1,3 +1,5 @@
|
||||
{
|
||||
"project_id": "aa5436ab58144c768ca4e9d2e9f5c3b2",
|
||||
"resource": "Cluster",
|
||||
"hard_limit": 10
|
||||
}
|
Loading…
Reference in New Issue
Block a user