• SAP HANA

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

Computing Resources

API Format

Method

URI

Description

GET

/v2/{tenant_id}/os-quota-sets/{tenant_id}?user_id={user_id}

Queries the project quota.

Restrictions

None

Expansion

This API provides the user_id parameter for obtaining the quota configuration of a specified user. Tenants can only query their own quotas.

Request Parameters

Parameter

Type

Mandatory or Not

Description

tenant_id

String

Yes

Tenant ID

If the specified tenant does not exist, the system default quota is returned.

user_id

String

No

User ID

If the specified user does not exist, the system default quota is returned.

Response Parameters

Parameter

Type

Mandatory or Not

Description

cores

Int

Yes

Number of vCPU cores

fixed_ips

Int

Yes

Number of fixed IP addresses

floating_ips

Int

Yes

Number of floating IP addresses

id

UUID

Yes

UUID of the project

injected_file_content_bytes

Int

Yes

Size of the injected file

injected_file_path_bytes

Int

Yes

Length of the injected file path

injected_files

Int

Yes

Number of injected files

instances

Int

Yes

Number of ECSs

key_pairs

Int

Yes

Number of key pairs

metadata_items

Int

Yes

Number of metadata items

ram

Int

Yes

Memory size (MB)

security_group_rules

Int

Yes

Number of security group rules

security_groups

Int

Yes

Number of security groups

server_groups

Int

Yes

Number of ECS groups

server_group_members

Int

Yes

Number of ECSs in a group

Request Example

GET /v2/d9ebe43510414ef590a4aa158605329e/os-quota-sets/d9ebe43510414ef590a4aa158605329e

Response Example

{
"quota_set": {
"cores": 20,
"fixed_ips": 40,
"floating_ips": 10,
"id": "d9ebe43510414ef590a4aa158605329e",
"injected_file_content_bytes": 10240,
"injected_file_path_bytes": 255,
"injected_files": 5,
"instances": 20,
"key_pairs": 100,
"metadata_items": 128,
"ram": 51200,
"security_group_rules": 20,
"security_groups": 50,
"server_group_members": 10,
 "server_groups": 10
                }
}