All Products
Search
Document Center

OpenSearch:ModifyAppGroupQuota

Last Updated:Mar 15, 2024

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
opensearch:ModifyAppGroup
  • AppGroup
    acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}
    none
none

Request syntax

PUT /v4/openapi/app-groups/{appGroupIdentity}/quota

Request parameters

ParameterTypeRequiredDescriptionExample
appGroupIdentitystringYes

The name of the application.

my_app_group_name
dryRunbooleanNo

Specifies whether to verify the application before modification. Valid values: true and false.

false
bodyQuotaNo

The request body.

Response parameters

ParameterTypeDescriptionExample
object
requestIdstring

The ID of the request.

0A6EB64B-B4C8-CF02-810F-E660812972FF
resultobject

The information about the application.

createdinteger

The timestamp when the application was created.

1590139542
currentVersionstring

The ID of the current online version.

100302903
pendingSecondRankAlgoDeploymentIdinteger

The ID of the fine sort expression that is being created.

0
typestring

The type of the application. Valid values:

  • standard: a standard application.
  • advance: an advanced application which is of an old application type. New applications cannot be of this type.
  • enhanced: an advanced application which is of a new application type.
enhanced
chargingWayinteger

The billing model. Valid values:

  • 1: computing resources
  • 2: queries per second (QPS)
1
lockModestring

The lock mode of the instance. Valid values:

  • Unlock: The instance is not locked.
  • LockByExpiration: The instance is automatically locked after it expires.
  • ManualLock: The instance is manually locked.
Unlock
statusstring

The status of the application. Valid values:

  • producing
  • review_pending
  • config_pending
  • normal
  • frozen
normal
updatedinteger

The timestamp when the application was last updated.

1590978265
chargeTypestring

The billing method of the application. Valid values:

  • POSTPAY: pay-as-you-go
  • PREPAY: subscription
POSTPAY
idstring

The ID of the application.

100302881
hasPendingQuotaReviewTaskinteger

The approval status of the quotas. Valid values:

  • 0: The quotas are approved.
  • 1: The quotas are being approved.
0
projectIdstring

The name of the A/B test group.

1000
secondRankAlgoDeploymentIdinteger

The ID of the created fine sort expression.

0
commodityCodestring

The code of the commodity.

opensearch
switchedTimeinteger

The timestamp when the current online version was published.

1590486386
expireOnstring

The expiration time.

1
descriptionstring

The description of the application.

1
firstRankAlgoDeploymentIdinteger

The ID of the created rough sort expression.

0
lockedByExpirationinteger

Indicates whether the instance is automatically locked after it expires.

0
producedinteger

Indicates whether the order is complete. Valid values:

  • 0: The order is in progress.
  • 1: The order is complete.
1
namestring

The name of the application.

lsh_test_1
processingOrderIdstring

The ID of the order that is not complete for the instance. For example, an order is one that is initiated to create the instance or change the quotas or billing method.

1
instanceIdstring

The ID of the instance.

1
quotaobject

The information about the quotas of the application.

specstring

The specifications of the application. Valid values:

  • opensearch.share.junior: basic
  • opensearch.share.common: shared general-purpose
  • opensearch.share.compute: shared computing
  • opensearch.share.storage: shared storage
  • opensearch.private.common: exclusive general-purpose
  • opensearch.private.compute: exclusive computing
  • opensearch.private.storage: exclusive storage
opensearch.share.common
docSizeinteger

The storage capacity. Unit: GB.

1
computeResourceinteger

The computing resources. Unit: logical computing units (LCUs).

20

Examples

Sample success responses

JSONformat

{
  "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
  "result": {
    "created": 1590139542,
    "currentVersion": "100302903",
    "pendingSecondRankAlgoDeploymentId": 0,
    "type": "enhanced",
    "chargingWay": 1,
    "lockMode": "Unlock",
    "status": "normal",
    "updated": 1590978265,
    "chargeType": "POSTPAY",
    "id": "100302881",
    "hasPendingQuotaReviewTask": 0,
    "projectId": "1000",
    "secondRankAlgoDeploymentId": 0,
    "commodityCode": "opensearch",
    "switchedTime": 1590486386,
    "expireOn": " 1",
    "description": " 1",
    "firstRankAlgoDeploymentId": 0,
    "lockedByExpiration": 0,
    "produced": 1,
    "name": "lsh_test_1",
    "processingOrderId": "1",
    "instanceId": "1",
    "quota": {
      "spec": "opensearch.share.common",
      "docSize": 1,
      "computeResource": 20
    }
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-05-24The request parameters of the API has changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: dryRun
    Added Input Parameters: body