• SAP HANA

saphana
  1. Help Center
  2. SAP HANA
  3. User Guide (API)
  4. Preparing Resources
  5. Quota Confirmation
  6. Storage Resources

Storage Resources

API Format

Method

URI

Description

GET

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

Queries the quota of a tenant

Restrictions

None

Expansion

None

Request Parameters

Parameter

Type

Mandatory or Not

Description

usage

Boolean

No

Whether to query the used quota of a tenant

True indicates that the used quota is queried. Otherwise, the used quota is not queried.

Response Parameters

Parameter

Type

Mandatory or Not

Description

volumes

Int

Yes

Number of volumes

snapshots

Int

Yes

Number of snapshots

gigabytes

Int

Yes

Total size of the snapshots and volumes

volumes_TYPE

Int

Yes

Number of volumes reserved for a volume type

snapshots_TYPE

Int

Yes

Number of snapshots reserved for a volume type

gigabytes_TYPE

Int

Yes

Volume size reserved for a volume type

id

String

Yes

Tenant ID

backups

Int

Yes

Number of backups

backup_gigabytes

Int

Yes

Backup capacity of a tenant

Request Example

GET /v2/5dd743c7ac1448948fe1ed331007229b/os-quota-class-sets/5dd743c7ac1448948fe1ed331007229b

Response Example

{
   "quota_set": {
      "snapshots_name_xx4type": -1,
      "volumes_name_xx4type1": -1,
      "gigabytes_name_xx4type1": -1,
      "gigabytes": 1000,
      "backup_gigabytes": 1000,
      "snapshots": 10,
      "volumes_name_xx4type": -1,
      "gigabytes_name_xx4type": -1,
      "volumes": 2000,
      "snapshots_name_xx4type1": -1,
      "backups": 10,
      "id":"5dd743c7ac1448948fe1ed331007229b"
     }
}

After obtaining the response parameters, you need to calculate whether the computing and storage resources are sufficient. For the computing resources, check the ECS quantity, used vCPU cores, and used memory capacity. For the storage resources, check the number and capacity of the EVS disks. The number of used resources cannot exceed the quantity specified in the quota.