File: quota.rst

package info (click to toggle)
python-openstackclient 2.3.0-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 3,376 kB
  • sloc: python: 39,869; makefile: 158; sh: 40
file content (164 lines) | stat: -rw-r--r-- 3,385 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
=====
quota
=====

Resource quotas appear in multiple APIs, OpenStackClient presents them as a single object with multiple properties.

Compute v2, Block Storage v1

quota set
---------

Set quotas for project

.. program:: quota set
.. code:: bash

    os quota set
        # Compute settings
        [--cores <num-cores>]
        [--fixed-ips <num-fixed-ips>]
        [--floating-ips <num-floating-ips>]
        [--injected-file-size <injected-file-bytes>]
        [--injected-files <num-injected-files>]
        [--instances <num-instances>]
        [--key-pairs <num-key-pairs>]
        [--properties <num-properties>]
        [--ram <ram-mb>]

        # Block Storage settings
        [--gigabytes <new-gigabytes>]
        [--snapshots <new-snapshots>]
        [--volumes <new-volumes>]
        [--volume-type <volume-type>]

        <project>

Set quotas for class

.. code:: bash

    os quota set
        --class
        # Compute settings
        [--cores <num-cores>]
        [--fixed-ips <num-fixed-ips>]
        [--floating-ips <num-floating-ips>]
        [--injected-file-size <injected-file-bytes>]
        [--injected-files <num-injected-files>]
        [--instances <num-instances>]
        [--key-pairs <num-key-pairs>]
        [--properties <num-properties>]
        [--ram <ram-mb>]

        # Block Storage settings
        [--gigabytes <new-gigabytes>]
        [--snapshots <new-snapshots>]
        [--volumes <new-volumes>]

        <class>

.. option:: --class

    Set quotas for ``<class>``

.. option:: --properties <new-properties>

    New value for the properties quota

.. option:: --ram <new-ram>

    New value for the ram quota

.. option:: --secgroup-rules <new-secgroup-rules>

    New value for the secgroup-rules quota

.. option:: --instances <new-instances>

    New value for the instances quota

.. option:: --key-pairs <new-key-pairs>

    New value for the key-pairs quota

.. option:: --fixed-ips <new-fixed-ips>

    New value for the fixed-ips quota

.. option:: --secgroups <new-secgroups>

    New value for the secgroups quota

.. option:: --injected-file-size <new-injected-file-size>

    New value for the injected-file-size quota

.. option:: --floating-ips <new-floating-ips>

    New value for the floating-ips quota

.. option:: --injected-files <new-injected-files>

    New value for the injected-files quota

.. option:: --cores <new-cores>

    New value for the cores quota

.. option:: --injected-path-size <new-injected-path-size>

    New value for the injected-path-size quota

.. option:: --gigabytes <new-gigabytes>

    New value for the gigabytes quota

.. option:: --volumes <new-volumes>

    New value for the volumes quota

.. option:: --snapshots <new-snapshots>

    New value for the snapshots quota

.. option:: --volume-type <volume-type>

    Set quotas for a specific <volume-type>

quota show
----------

Show quotas for project

.. program:: quota show
.. code:: bash

    os quota show
        [--default]
        <project>


.. option:: --default

    Show default quotas for :ref:`\<project\> <quota_show-project>`

.. _quota_show-project:
.. describe:: <project>

    Show quotas for class

.. code:: bash

    os quota show
        --class
        <class>

.. option:: --class

    Show quotas for :ref:`\<class\> <quota_show-class>`

.. _quota_show-class:
.. describe:: <class>

    Class to show