Querying Tenant Quotas
Function
Querying tenant quotas
URI
GET /v1/{project_id}/sfs-turbo/quotas
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
The project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
The account token. |
Content-Type |
Yes |
String |
The MIME type. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
X-request-id |
String |
The request ID. |
Parameter |
Type |
Description |
---|---|---|
quotas |
Array of QuotaResource objects |
Querying tenant quotas |
Parameter |
Type |
Description |
---|---|---|
type |
String |
The tenant quota type. shares indicates the file system quantity quota, and capacity indicates the file system capacity quota. Enumeration values:
|
used |
Integer |
The used quota. |
quota |
Integer |
The total quota. |
unit |
String |
The quota unit. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
X-request-id |
String |
The request ID. |
Parameter |
Type |
Description |
---|---|---|
errCode |
String |
The error code. |
errMsg |
String |
The error message. |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
X-request-id |
String |
The request ID. |
Parameter |
Type |
Description |
---|---|---|
errCode |
String |
The error code. |
errMsg |
String |
The error message. |
Example Requests
None
Example Responses
Status code: 200
Success
{ "quotas" : { "resources" : [ { "type" : "shares", "used" : 5, "quota" : 400 }, { "type" : "capacity", "used" : 0, "quota" : 20, "unit" : "GB" } ] } }
Status code: 400
Error response
{ "errCode" : "SFS.TURBO.0001", "errMsg" : "parameter error" }
Status code: 500
Error response
{ "errCode" : "SFS.TURBO.0005", "errMsg" : "Internal server error" }
Status Codes
Status Code |
Description |
---|---|
200 |
Success |
400 |
Error response |
500 |
Error response |
Error Codes
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