Querying the Tenant Quotas
Function
This API is used to query quotas of a tenant.
URI
GET /v2/{project_id}/fgs/quotas
Parameter | Mandatory | Type | Description |
|---|---|---|---|
project_id | Yes | String | Tenant's project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
Request Parameters
Parameter | Mandatory | Type | Description |
|---|---|---|---|
X-Auth-Token | Yes | String | The user token. The token can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token. |
Content-Type | Yes | String | Message body type (format). |
Response Parameters
Status code: 200
Parameter | Type | Description |
|---|---|---|
quotas | ListQuotasResult object | Quota information. |
Parameter | Type | Description |
|---|---|---|
quota | Integer | Function quota. |
used | Integer | Used quota. |
type | String | Resource type. Enumerated values:
|
unit | String | Resource unit. For fgs_func_code_size, the unit is MB. In other scenarios, there is no unit. |
Status code: 400
Parameter | Type | Description |
|---|---|---|
error_code | String | Error code. |
error_msg | String | Error message. |
Status code: 401
Parameter | Type | Description |
|---|---|---|
error_code | String | Error code. |
error_msg | String | Error message. |
Status code: 403
Parameter | Type | Description |
|---|---|---|
error_code | String | Error code. |
error_msg | String | Error message. |
Status code: 500
Parameter | Type | Description |
|---|---|---|
error_code | String | Error code. |
error_msg | String | Error message. |
Example Request
This API is used to query the tenant quotas.
GET /v2/{project_id}/fgs/quotas Example Response
Status code: 200
Successfully queried.
{
"quotas" : {
"resources" : [ {
"quota" : 60,
"used" : 3,
"type" : "fgs_func_scale_down_timeout"
}, {
"quota" : 100,
"used" : 22,
"type" : "fgs_func_occurs"
}, {
"quota" : 100,
"used" : 22,
"type" : "fgs_func_pat_idle_time"
}, {
"quota" : 100,
"used" : 22,
"type" : "fgs_func_num"
}, {
"quota" : 10240,
"used" : 22,
"type" : "fgs_func_code_size",
"unit" : "MB"
}, {
"quota" : 512,
"used" : 22,
"type" : "fgs_workflow_num"
} ]
}
} Status Code
Status Code | Description |
|---|---|
200 | Successfully queried. |
400 | Bad request. |
401 | Unauthorized. |
403 | Forbidden. |
500 | Internal server error. |
Error Code
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot
