UpdateOrganizationQuota
API Request
URLs
GET zstack/v1/iam2/Organization/quotas/actions
Headers
Authorization: OAuth the-session-uuid
Body
Note: In
the preceding sample, both systemTags and userTags are optional.
These two fields can be included in the body structure.
{
"updateOrganizationQuota": {
"identityUuid": "3e083dfff99b309bb15e848f7acef41b",
"name": "quota",
"value": 100.0
},
"systemTags": [],
"userTags": []
}

Curl
Sample
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"updateOrganizationQuota":{"identityUuid":"3e083dfff99b309bb15e848f7acef41b","name":"quota","value":100.0}}' http://localhost:8080/zstack/v1/iam2/Organization/quotas/actions
Request Parameters
Name | Type | Location | Description | Valid Value | Starting Version |
---|---|---|---|---|---|
identityUuid | String | body (contained in the updateOrganizationQuota structure) | The identity UUID. | 4.3.6 | |
name | String | body (contained in the updateOrganizationQuota structure) | The quota name. | 4.3.6 | |
value | long | body (contained in the updateOrganizationQuota structure) | The modified value. | 4.3.6 | |
systemTags | List | body | Optional. The system tags. | 4.3.6 | |
userTags | List | body | Optional. The user tags. | 4.3.6 |
API Response
Sample
Response
{
"inventory": {
"name": "quota",
"identityUuid": "09081c19d997357ca8f07b4c44ddc640",
"value": 20.0
}
}
Name | Type | Description | Starting Version |
---|---|---|---|
success | boolean | 4.3.6 | |
inventory | QuotaInventory | Seeinventory. | 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 |
#inventory
Name | Type | Description | Starting Version |
---|---|---|---|
name | String | The resource name. | 4.3.6 |
identityUuid | String | The identity UUID. | 4.3.6 |
identityType | String | The identity type. | 4.3.6 |
value | Long | The default quota. | 4.3.6 |
lastOpDate | Timestamp | The last update time. | 4.3.6 |
createDate | Timestamp | The creation time. | 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
UpdateOrganizationQuotaAction action = new UpdateOrganizationQuotaAction();
action.identityUuid = "3e083dfff99b309bb15e848f7acef41b";
action.name = "quota";
action.value = 100.0;
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
UpdateOrganizationQuotaAction.Result res = action.call();
Python
SDK
UpdateOrganizationQuotaAction action = UpdateOrganizationQuotaAction()
action.identityUuid = "3e083dfff99b309bb15e848f7acef41b"
action.name = "quota"
action.value = 100.0
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
UpdateOrganizationQuotaAction.Result res = action.call()