python-openstackclient/doc/source/command-objects/quota.rst
Xi Yang 54b0ef3358 Use Block Storage instead of Volume
Volume is better to be replaced by Block Storage in the
doc.

Change-Id: I736669ee01c7385b6e701cb20f4334eff1c49286
2015-11-27 17:56:10 +08:00

3.3 KiB

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

quota set

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

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>

--class

Set quotas for <class>

--properties <new-properties>

New value for the properties quota

--ram <new-ram>

New value for the ram quota

--secgroup-rules <new-secgroup-rules>

New value for the secgroup-rules quota

--instances <new-instances>

New value for the instances quota

--key-pairs <new-key-pairs>

New value for the key-pairs quota

--fixed-ips <new-fixed-ips>

New value for the fixed-ips quota

--secgroups <new-secgroups>

New value for the secgroups quota

--injected-file-size <new-injected-file-size>

New value for the injected-file-size quota

--floating-ips <new-floating-ips>

New value for the floating-ips quota

--injected-files <new-injected-files>

New value for the injected-files quota

--cores <new-cores>

New value for the cores quota

--injected-path-size <new-injected-path-size>

New value for the injected-path-size quota

--gigabytes <new-gigabytes>

New value for the gigabytes quota

--volumes <new-volumes>

New value for the volumes quota

--snapshots <new-snapshots>

New value for the snapshots quota

--volume-type <volume-type>

Set quotas for a specific <volume-type>

quota show

Show quotas for project

quota show

os quota show
    [--default]
    <project>

--default

Show default quotas for \<project\> <quota_show-project>

Show quotas for class

os quota show
    --class
    <class>

--class

Show quotas for \<class\> <quota_show-class>

Class to show