Listing project quotas

Cores and RAM

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

Request

# curl -ks -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:8774/v2.1/f5d834d636c642c7bfe8af86139c6f26/os-quota-sets/afe9d74ab80149a2aa3d5fbf2a4f3c92

Response

{
  "quota_set": {
    <...>
    "ram": 32768,
    <...>
    "cores": 8,
    <...>
  }
}

Storage limits of storage policies and volume backups

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

Request

# curl -ks -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:8776/v3/f5d834d636c642c7bfe8af86139c6f26/os-quota-sets/afe9d74ab80149a2aa3d5fbf2a4f3c92

Response

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

Floating IPs and VPN connections

GET /v2.0/quotas/{project_id}

Request

# curl -ks -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:9696/v2.0/quotas/afe9d74ab80149a2aa3d5fbf2a4f3c92

Response

{
  "quota": {
    <...>
    "floatingip": 24,
    <...>
    "ipsec_site_connection": -1,
    <...>
  }
}

Load balancers

GET /v2/lbaas/quotas/{project_id}

The add-on service must be installed.

Request

# curl -ks -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:9888/v2/lbaas/quotas/afe9d74ab80149a2aa3d5fbf2a4f3c92

Response

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

Kubernetes clusters

GET /v1/quotas/{project_id}/Cluster

The add-on service must be installed.

Request

# curl -ks -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:9513/v1/quotas/afe9d74ab80149a2aa3d5fbf2a4f3c92/Cluster

Response

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

Placements

GET /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 -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
-H 'OpenStack-API-Version: placement 1.32' \
https://<node_IP_addr>:8780/quotas/afe9d74ab80149a2aa3d5fbf2a4f3c92

Response

{
  "quotas": {
    "CUSTOM_HCI_122E856B9E9C4D80A0F8C21591B5AFCB": 16
  }
}