forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com> Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
11 KiB
11 KiB
Querying the DeH Quota of a Tenant
Function
This API is used to query the DeH quota of a tenant.
URI
GET /v1.0/{project_id}/quota-sets/{tenant_id}
Table 1 describes the parameters.
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining Required Information. |
tenant_id |
String |
Yes |
Specifies the tenant ID. You can obtain the value from the DeH console or using the API in Querying DeHs. |
Request
You can add the resource parameter to the URI. For example:
/v1.0/{project_id}/quota-sets/{tenant_id}?resource={resource}
Parameter |
Location |
Type |
Mandatory |
Description |
---|---|---|---|---|
resource |
query |
String |
No |
Specifies the resource type. |
Response
Parameter |
Type |
Description |
---|---|---|
quota_set |
Array of objects |
Specifies the quota set of a DeH. For details, see Table 4. |
Example Request
GET https://{Endpoint}/v1.0/9c53a566cb3443ab910cf0daebca90c4/quota-sets/45df5566cb3443ab910cf0daebcapoi8
Example Response
{ "quota_set": [ { "used": 0, "resource": "c4", "hard_limit": 5 }, { "used": 0, "resource": "m4", "hard_limit": 5 }] }
Status Code
See Status Codes.
Parent topic: Quota Configuration