2.12. Setting project quotas¶
2.12.1. Cores and RAM¶
2.12.1.1. 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
2.12.1.2. Response¶
{
"quota_set": {
<...>
"ram": 65536,
<...>
"cores": 12,
<...>
}
}
2.12.2. Storage limits of storage policies¶
2.12.2.1. 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
2.12.2.2. Response¶
{
"quota_set": {
<...>
"gigabytes_default": 128,
<...>
"gigabytes_policy1": 64
}
}
2.12.3. Floating IPs¶
2.12.3.1. Request¶
# curl -ks -X PUT -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' -d '
{
"quota": {
"floatingip": 16
}
}' https://<node_IP_addr>:9696/v2.0/quotas/afe9d74ab80149a2aa3d5fbf2a4f3c92
2.12.3.2. Response¶
{
"quota": {
<...>
"floatingip": 16,
<...>
}
}
2.12.4. Load balancers¶
The add-on service must be installed.
2.12.4.1. 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
2.12.4.2. Response¶
{
"quota": {
"load_balancer": 12,
<...>
}
}
2.12.5. Kubernetes clusters¶
The add-on service must be installed.
2.12.5.1. 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
2.12.5.2. Response¶
{
"resource": "Cluster",
<...>
"hard_limit": 6,
<...>
}
2.12.6. Placements¶
The add-on service must be installed. Specify the microversion in the header, e.g., OpenStack-API-Version: placement 1.32
.
2.12.6.1. 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
2.12.6.2. Response¶
Does not return a response body if successful.
Version 4.0.0 — Sep 29, 2020