Setting domain quotas

Cores and RAM

PUT /v2.1/{authorized_project_id}/os-quota-sets/{domain_id}?domain=True

Request

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

Response

{
  "quota_set": {
    <...>
    "ram": 61440,
    <...>
    "cores": 30,
    <...>
  }
}

Storage limits of storage policies

PUT /v3/{authorized_project_id}/os-quota-sets/{domain_id}?domain=True

Request

# curl -ks -X PUT -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' -d '
{
  "quota_set": {
    "gigabytes_default": 1024,
    "gigabytes_policy1": 512,
    "backup_gigabytes": 200
  }
}' https://<node_IP_addr>:8776/v3/f5d834d636c642c7bfe8af86139c6f26/os-quota-sets/0ed0dac39ba14e89b7d2b8cb7d5337f7?domain=True

Response

{
  "quota_set": {
    <...>
    "backup_gigabytes": 200,
    "gigabytes_default": 1024,
    <...>
    "gigabytes_policy1": 512
  }
}