3.32.2. Update quotas

 
MethodURIDescription
PUT/v2/{tenant_id}/os-quota-sets/{tenant_id}

Updates quotas for a tenant.

Normal response codes: 200

 3.32.2.1. Request

This table shows the URI parameters for the update quotas request:

NameTypeDescription

{tenant_id}

​String

The ID for the tenant or project in a multi-tenancy cloud.

{tenant_id}

​String

The ID for the tenant for which you want to show quotas. This ID is different from the first tenant ID that you specify in the URI: That ID is for the admin tenant.

 

Example 3.272. Update quotas response: JSON

{
    "quota_set": {
        "security_groups": 45
    }
}

 

Example 3.273. Show quotas response: XML

<?xml version='1.0' encoding='UTF-8'?>
<quota_set id="fake_tenant">
  <security_groups>45</security_groups>
</quota_set>

This operation does not require a request body.

 3.32.2.2. Response

 

Example 3.274. Update quota response: JSON

{
    "quota_set": {
        "cores": 20,
        "fixed_ips": -1,
        "floating_ips": 10,
        "injected_file_content_bytes": 10240,
        "injected_file_path_bytes": 255,
        "injected_files": 5,
        "instances": 10,
        "key_pairs": 100,
        "metadata_items": 128,
        "ram": 51200,
        "security_group_rules": 20,
        "security_groups": 45
    }
}

 

Example 3.275. Update quota response: XML

<?xml version='1.0' encoding='UTF-8'?>
<quota_set>
  <cores>20</cores>
  <fixed_ips>-1</fixed_ips>
  <floating_ips>10</floating_ips>
  <injected_file_content_bytes>10240</injected_file_content_bytes>
  <injected_file_path_bytes>255</injected_file_path_bytes>
  <injected_files>5</injected_files>
  <instances>10</instances>
  <key_pairs>100</key_pairs>
  <metadata_items>128</metadata_items>
  <ram>51200</ram>
  <security_group_rules>20</security_group_rules>
  <security_groups>45</security_groups>
</quota_set>

This operation does not return a response body.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...