GetOrganizationQuotaUsage
API Request
URLs
GET zstack/v1/iam2/organizations/quota/{uuid}/usages
Headers
Authorization: OAuth the-session-uuid
Curl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/iam2/organizations/quota/9636f37046a63657b26cb28ed8cbc38a/usages
Request Parameters
Name | Type | Location | Description | Valid Value | Starting Version |
---|---|---|---|---|---|
uuid | String | url | The resource UUID. | 4.3.6 | |
systemTags | List | query | Optional. The system tags. | 4.3.6 | |
userTags | List | query | Optional. The user tags. | 4.3.6 |
API Response
Sample
Response
{
"usages": [
{
"name": "testquota",
"total": 20.0,
"used": 10.0
}
]
}
Name | Type | Description | Starting Version |
---|---|---|---|
success | boolean | 4.3.6 | |
usages | List | See usages. | 4.3.6 |
error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 4.3.6 |
#usages
Name | Type | Description | Starting Version |
---|---|---|---|
name | String | The resource name. | 4.3.6 |
total | Long | The total quota. | 4.3.6 |
used | Long | The used quota. | 4.3.6 |
#error
Name | Type | Description | Starting Version |
---|---|---|---|
code | String | The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. | 4.3.6 |
description | String | The brief description of the error. | 4.3.6 |
details | String | The details about the error. | 4.3.6 |
elaboration | String | The reserved field. Default value: null. | 4.3.6 |
opaque | LinkedHashMap | The reserved field. Default value: null. | 4.3.6 |
cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 4.3.6 |
SDK Sample
Java
SDK
GetOrganizationQuotaUsageAction action = new GetOrganizationQuotaUsageAction();
action.uuid = "9636f37046a63657b26cb28ed8cbc38a";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetOrganizationQuotaUsageAction.Result res = action.call();
Python
SDK
GetOrganizationQuotaUsageAction action = GetOrganizationQuotaUsageAction()
action.uuid = "9636f37046a63657b26cb28ed8cbc38a"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetOrganizationQuotaUsageAction.Result res = action.call()