The schema of an OpenSearch application object returned in API responses.
Example
{
"id": "100302881",
"name": "lsh_test_1",
"currentVersion": "100302903",
"switchedTime": 1590486386,
"quota": {
"docSize": 1,
"computeResource": 20,
"spec": "opensearch.share.common"
},
"chargingWay": 1,
"type": "enhanced",
"versions": [
"100302903",
"100303063"
],
"projectId": "",
"chargeType": "POSTPAY",
"expireOn": "",
"instanceId": "",
"commodityCode": "opensearch",
"processingOrderId": "",
"firstRankAlgoDeploymentId": 0,
"secondRankAlgoDeploymentId": 0,
"pendingSecondRankAlgoDeploymentId": 0,
"description": "",
"produced": 1,
"lockedByExpiration": 0,
"hasPendingQuotaReviewTask": 0,
"created": 1590139542,
"updated": 1590978265,
"status": "normal",
"lockMode": "Unlock"
}Structure
| Field | Type | Description |
|---|---|---|
id | String | The ID of the application. |
name | String | The name of the application. |
currentVersion | String | The ID of the current online version. |
switchedTime | Integer | The Unix timestamp when the current online version was published. |
quota | Object | The quota information for the application. For more information, see Quota. |
chargingWay | Integer | The billable item. Valid values: 1 (computing resources) and 2 (queries per second, QPS). |
type | String | The application type. Valid values: standard (standard application), advance (advanced application, previous type; new applications cannot use this type), and enhanced (advanced application, current type). |
versions | Array | The version IDs of the application. |
projectId | String | The name of the A/B test group. Empty if the application is not part of an A/B test. |
chargeType | String | The billing method. Valid values: POSTPAY (pay-as-you-go) and PREPAY (subscription). |
expireOn | String | The expiration time of the application, in the format yyyy-mm-dd hh:mm:ss. Empty for pay-as-you-go applications. |
instanceId | String | The ID of the instance. |
commodityCode | String | The service code. |
processingOrderId | String | The ID of the pending order for the instance. Empty if there is no pending order. |
firstRankAlgoDeploymentId | Integer | The ID of the deployed rough sort expression. |
secondRankAlgoDeploymentId | Integer | The ID of the deployed fine sort expression. |
pendingSecondRankAlgoDeploymentId | Integer | The ID of the fine sort expression currently being deployed. |
description | String | The description of the application. |
produced | Integer | Whether the order is complete. Valid values: 0 (in progress) and 1 (complete). |
hasPendingQuotaReviewTask | Integer | The quota approval status. Valid values: 0 (approved) and 1 (pending approval). |
created | Integer | The Unix timestamp when the application was created. |
updated | Integer | The Unix timestamp when the application was last updated. |
status | String | The status of the application. Valid values: producing (being created), review_pending (creation pending approval), config_pending (pending configuration), normal (running), and frozen (frozen). |
lockMode | String | The lock mode of the instance. Valid values: Unlock (not locked), LockByExpiration (automatically locked after expiration), and ManualLock (manually locked). |
该文章对您有帮助吗?