Setting project quotas

Cores and RAM

PUT /v2.1/{authorized_project_id}/os-quota-sets/{project_id}

Request

# curl -ks -X PUT -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' -d '
{
  "quota_set": {
    "ram": 65536,
    "cores": 12
  }
}' https://<node_IP_addr>:8774/v2.1/f5d834d636c642c7bfe8af86139c6f26/os-quota-sets/afe9d74ab80149a2aa3d5fbf2a4f3c92

Response

{
  "quota_set": {
    <...>
    "ram": 65536,
    <...>
    "cores": 12,
    <...>
  }
}

Storage limits of storage policies

PUT /v3/{authorized_project_id}/os-quota-sets/{project_id}

Request

# curl -ks -X PUT -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' -d '
{
  "quota_set": {
    "gigabytes_default": 128,
    "gigabytes_policy1": 64
  }
}' https://<node_IP_addr>:8776/v3/f5d834d636c642c7bfe8af86139c6f26/os-quota-sets/afe9d74ab80149a2aa3d5fbf2a4f3c92

Response

{
  "quota_set": {
    <...>
    "gigabytes_default": 128,
    <...>
    "gigabytes_policy1": 64
  }
}

Floating IPs and VPN connections

PUT /v2.0/quotas/{project_id}

Request

# curl -ks -X PUT -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' -d '
{
   "quota": {
     "floatingip": 16,
     "ipsec_site_connection": 10
   }
}' https://<node_IP_addr>:9696/v2.0/quotas/afe9d74ab80149a2aa3d5fbf2a4f3c92

Response

{
  "quota": {
    <...>
    "floatingip": 16,
    <...>
    "ipsec_site_connection": 10,
    <...>
  }
}

Load balancers

PUT /v2/lbaas/quotas/{project_id}

The add-on service must be installed.

Request

# curl -ks -X PUT -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' -d '
{
  "quota": {
    "load_balancer": 12
  }
}' https://<node_IP_addr>:9888/v2/lbaas/quotas/afe9d74ab80149a2aa3d5fbf2a4f3c92

Response

{
  "quota": {
    "load_balancer": 12,
    <...>
  }
}

Kubernetes clusters

PUT /v1/quotas/{project_id}/Cluster

The add-on service must be installed.

Request

# curl -ks -X PATCH -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' -d '
{
  "project_id": "afe9d74ab80149a2aa3d5fbf2a4f3c92",
  "resource": "Cluster",
  "hard_limit": 6
}' https://<node_IP_addr>:9513/v1/quotas/afe9d74ab80149a2aa3d5fbf2a4f3c92/Cluster

Response

{
  "resource": "Cluster",
   <...>
  "hard_limit": 6,
   <...>
}

Placements

PUT /quotas/{project_id}

The add-on service must be installed. Specify the microversion in the header, e.g., OpenStack-API-Version: placement 1.32.

Request

# curl -ks -X PUT -H 'Content-Type: application/json' -H 'OpenStack-API-Version: placement 1.32' -H 'X-Auth-Token: gAAAAA<...>' -d ' 
{
  "quotas": {
    "CUSTOM_HCI_122E856B9E9C4D80A0F8C21591B5AFCB": 8
  }
}' https://<node_IP_addr>:8780/quotas/afe9d74ab80149a2aa3d5fbf2a4f3c92

Response

Does not return a response body if successful.