Querying IEF Resource Quotas
Function
This API is used to query IEF resource quotas.
URI
GET /v2/{project_id}/edgemgr/quotas
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
types |
No |
String |
Resource type, including: |
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Message body type (format). The default value is application/json. |
X-Auth-Token |
Yes |
String |
User token. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. |
Response
Status code: 200
Parameter |
Type |
Description |
---|---|---|
quotas |
QuotaResourceList object |
Resource quotas. |
Parameter |
Type |
Description |
---|---|---|
resources |
Array of QuotaResource objects |
Resource list. |
Parameter |
Type |
Description |
---|---|---|
used |
Integer |
Number of created resources. |
min |
Integer |
Minimum number of resources that can be created. |
max |
Integer |
Maximum number of resources that can be created. |
quota |
Integer |
Resource quota limit. |
project_id |
String |
Project ID. |
type |
String |
Resource type, including: |
Example Request
None
Example Response
Status code: 200
Query succeeded.
{ "quotas" : { "resources" : [ { "used" : 7, "min" : -1, "max" : 1000000, "quota" : 50, "project_id" : "xxx", "type" : "edge_node" } ] } }
Status Codes
Status Code |
Description |
---|---|
200 |
Query succeeded. |
Error Codes
For details, 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