forked from docs/doc-exports
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
13 KiB
13 KiB
Querying Resource Quotas
Function
This API is used to query resource quotas in a project.
- Before calling an API, you need to understand the API in Authentication.
- Before calling this API, obtain the required region and endpoint.
URI
- Parameter description
Table 1 Parameter description Name
Mandatory
Description
project_id
Yes
Specifies the project ID of a tenant in a region.
For details about how to obtain the project ID, see Obtaining a Project ID.
Request
- Pequest parameters
Table 2 Request header parameters Parameter
Mandatory
Type
Description
X-Auth-Token
Yes
String
Specifies the user token.
The user token is a response to the API used to obtain a user token.
- URI Example
GET https://rds.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/quotas
Response
- Normal Response
Table 3 Parameters Parameter
Type
Description
quotas
Object
Specifies the objects in the quota list.
For details, see Table 4.
Table 4 quotas field data structure description Parameter
Type
Description
resources
Array of objects
Indicates the resource list objects.
For details, see Table 5.
- Example normal response
{ "quotas" : { "resources" : [ { "quota" : 100, "used" : 1, "type" : "instance" } ] } } - Abnormal Response
For details, see Abnormal Request Results.
Status Code
- Normal
- Abnormal
For details, see Status Codes.
Error Code
For details, see Error Codes.
Parent topic: Quota Management