修改 OpenSearch 应用配额。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
opensearch:ModifyAppGroup |
update |
*AppGroup
|
无 | 无 |
请求语法
PUT /v4/openapi/app-groups/{appGroupIdentity}/quota HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| appGroupIdentity |
string |
是 |
应用名称 |
my_app_group_name |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| dryRun |
boolean |
否 |
是否校验入参数据合法性,默认 false。 取值:
|
false |
| body |
Quota |
否 |
请求体。 |
请求体
| 字段 | 类型 | 是否必要 | 示例值 | 描述 |
| docSize | Integer | 是 | 1 | 存储容量(单位:GB) 共享通用型(1~300G) |
| computeResource | Integer | 是 | 20 | 计算资源(单位:LCU) 共享通用型(20~5000LCU) |
| spec | String | 是 | "opensearch.share.common" | 规格 |
| orderType | String | 否 | "UPGRADE" | 变配类型 - UPGRADE 升配 - DOWNGRADE 降配 |
参考: Quota
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
响应体 |
||
| requestId |
string |
请求 ID |
0A6EB64B-B4C8-CF02-810F-E660812972FF |
| result |
object |
应用信息 |
|
| created |
integer |
创建时间戳 |
1590139542 |
| currentVersion |
string |
当前在线版本 |
100302903 |
| type |
string |
应用类型
|
enhanced |
| chargingWay |
integer |
计费类型
|
1 |
| lockMode |
string |
锁定状态
|
Unlock |
| status |
string |
应用状态
|
normal |
| updated |
integer |
更新时间戳 |
1590978265 |
| chargeType |
string |
付费类型
|
POSTPAY |
| id |
string |
应用 ID |
100302881 |
| hasPendingQuotaReviewTask |
integer |
是否配额审批中
|
0 |
| projectId |
string |
abtest project 名称 |
1000 |
| commodityCode |
string |
商品 CODE |
opensearch |
| switchedTime |
integer |
在线版本切换时间戳 |
1590486386 |
| expireOn |
string |
过期时间 |
1 |
| description |
string |
应用描述 |
1 |
| produced |
integer |
是否生产完成
|
1 |
| name |
string |
应用名称 |
lsh_test_1 |
| instanceId |
string |
实例 ID |
1 |
| quota |
object |
应用配额信息 |
|
| spec |
string |
规格
|
opensearch.share.common |
| docSize |
integer |
存储容量(单位:GB) |
1 |
| computeResource |
integer |
计算资源(单位:LCU) |
20 |
| engineType |
string |
引擎类型 枚举值:
|
ha3 |
| resourceGroupId |
string |
实例所属的资源组 ID。 |
rg-acfmoiyerh6nzly |
示例
正常返回示例
JSON格式
{
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result": {
"created": 1590139542,
"currentVersion": "100302903",
"type": "enhanced",
"chargingWay": 1,
"lockMode": "Unlock",
"status": "normal",
"updated": 1590978265,
"chargeType": "POSTPAY",
"id": "100302881",
"hasPendingQuotaReviewTask": 0,
"projectId": "1000",
"commodityCode": "opensearch",
"switchedTime": 1590486386,
"expireOn": " 1",
"description": " 1",
"produced": 1,
"name": "lsh_test_1",
"instanceId": "1",
"quota": {
"spec": "opensearch.share.common",
"docSize": 1,
"computeResource": 20
},
"engineType": "ha3",
"resourceGroupId": "rg-acfmoiyerh6nzly"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。