"Fossies" - the Fresh Open Source Software Archive

Member "zun-4.0.0/api-ref/source/quota_classes.inc" (16 Oct 2019, 1816 Bytes) of package /linux/misc/openstack/zun-4.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) fasm source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "quota_classes.inc" see the Fossies "Dox" file reference documentation.

    1 .. -*- rst -*-
    2 
    3 =====================
    4  Manage Quota Classes
    5 =====================
    6 
    7 Get, updates quota classes
    8 
    9 Create or Update Quotas for Quota Class
   10 =======================================
   11 
   12 .. rest_method:: PUT /v1/quota_classes/{quota_class_name}
   13 
   14 Update the quotas for the Quota Class. If the requested Quota Class is not
   15 found in the DB, then the API will create the one.
   16 
   17 Response Codes
   18 --------------
   19 
   20 .. rest_status_code:: success status.yaml
   21 
   22    - 200
   23 
   24 .. rest_status_code:: error status.yaml
   25 
   26    - 400
   27    - 401
   28    - 403
   29 
   30 Request
   31 -------
   32 
   33 .. rest_parameters:: parameters.yaml
   34 
   35    - quota_class_name: quota_class_name
   36    - containers: container-request
   37    - memory: memory-request
   38    - cpu: cpu-request
   39    - disk: disk-request
   40 
   41 Request Example
   42 ---------------
   43 
   44 .. literalinclude:: samples/quota-classes-update-req.json
   45    :language: javascript
   46 
   47 Response
   48 --------
   49 
   50 .. rest_parameters:: parameters.yaml
   51 
   52    - containers: container-response
   53    - memory: memory-response
   54    - cpu: cpu-response
   55    - disk: disk-response
   56 
   57 Response Example
   58 ----------------
   59 
   60 .. literalinclude:: samples/quota-classes-update-resp.json
   61    :language: javascript
   62 
   63 List quotas for Quota Class
   64 ===========================
   65 
   66 .. rest_method:: GET /v1/quota_classes/{quota_class_name}
   67 
   68 List quotas for Quota Class
   69 
   70 Response Codes
   71 --------------
   72 
   73 .. rest_status_code:: success status.yaml
   74 
   75    - 200
   76 
   77 .. rest_status_code:: error status.yaml
   78 
   79    - 401
   80    - 403
   81 
   82 Request
   83 -------
   84 
   85 .. rest_parameters:: parameters.yaml
   86 
   87    - quota_class_name: quota_class_name
   88 
   89 Response
   90 --------
   91 
   92 .. rest_parameters:: parameters.yaml
   93 
   94    - containers: container-response
   95    - memory: memory-response
   96    - cpu: cpu-response
   97    - disk: disk-response
   98 
   99 Response Example
  100 ----------------
  101 
  102 .. literalinclude:: samples/quota-classes-get-resp.json
  103    :language: javascript