更新时间:2020-07-15 19:39
修改 opensearch 应用配额
PUT
/v4/openapi/app-groups/[appGroupIdentity]/quota
字段 | 类型 | 是否必要 | 示例值 | 描述 |
---|---|---|---|---|
appGroupIdentity | String | 是 | “my_app_group_name” | 应用名称 |
字段 | 类型 | 是否必要 | 示例值 | 描述 |
---|---|---|---|---|
docSize | Integer | 是 | 1 | 存储容量 (单位:GB) |
computeResource | Integer | 是 | 20 | 计算资源 (单位:LCU) |
spec | String | 是 | “opensearch.share.common” | 规格 |
orderType | String | 否 | “UPGRADE” | 变配类型 - UPGRADE 升配 - DOWNGRADE 降配 |
参考:Quota
字段 | 类型 | 描述 |
---|---|---|
requestId | String | 请求ID |
result | Object | 应用信息 参考:AppGroup |
PUT /v4/openapi/app-groups/os_function_test_v1/quota
{
"docSize": 1,
"computeResource": 20,
"spec": "opensearch.share.common"
}
正确返回
{
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result": {
"id": "110116134",
"name": "os_function_test_v1",
"currentVersion": "110116134",
"switchedTime": 0,
"quota": {
"docSize": 1,
"computeResource": 20,
"spec": "opensearch.share.common"
},
"chargingWay": 1,
"type": "enhanced",
"projectId": "",
"chargeType": "POSTPAY",
"expireOn": "",
"instanceId": "",
"commodityCode": "opensearch",
"processingOrderId": "",
"firstRankAlgoDeploymentId": 0,
"secondRankAlgoDeploymentId": 0,
"pendingSecondRankAlgoDeploymentId": 0,
"description": "",
"produced": 1,
"lockedByExpiration": 0,
"hasPendingQuotaReviewTask": 0,
"created": 1575442875,
"updated": 1578916076,
"status": "normal",
"lockMode": "Unlock"
}
}
错误返回
参考:响应结构
在文档使用中是否遇到以下问题
更多建议
匿名提交