All Products
Search
Document Center

OpenSearch:DescribeApps

Last Updated:Mar 11, 2025

Queries the version list of an OpenSearch application.

Operation description

  • When you create a standard application, a new version of the application is created if the specified application name already exists.
  • When you create a version of an existing application, you must specify the autoSwitch and realtimeShared parameters.
  • When you create a version of an existing application, the value of the quota parameter is the same as that of the quota parameter in the previous version of the application.
  • When you create a version of an existing application, the modification of the value of the quota parameter does not take effect.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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:ListApplist
*App
acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}
    none
none

Request syntax

GET /v4/openapi/app-groups/{appGroupIdentity}/apps HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
appGroupIdentitystringYes

my_app_group_name

my_app_group_name

Response parameters

ParameterTypeDescriptionExample
object
requestIdstring

The ID of the request.

77CAA411-0010-4DB9-82E2-1C384E590AFF
resultarray<object>

The response parameters.

resultobject

The version information. For more information, see App .

idstring

The group ID.

100302881
isCurrentboolean

Indicates whether the version is an online version.

12333
clusterNamestring

The cluster name.

vpc_sh_domain_1
autoSwitchboolean

Indicates whether the version is automatically switched to an online version.

true
typestring

The type of the application. Valid values:

  • standard: a standard edition application.
  • advance: an advanced edition application of an old version. New versions are not supported for this edition.
  • enhanced: an advanced edition application of a new version.
enhanced
descriptionstring

The description.

""
statusstring

The status of the version. Valid values:

  • ok: The version is normal.
  • stopped: The version is suspended.
  • frozen: The version is frozen.
  • initializing: The version is being initialized.
  • unavailable: The version is invalid.
  • data_waiting: Data is to be initialized.
  • data_preparing: Data is being initialized.
normal
schemaobject

The application schema.

tablesobject

The table schema.

indexesobject

The index schema.

filterFieldsarray

The attribute fields.

filterFieldsstring

The attribute field.

id
searchFieldsobject

The index fields.

routeFieldstring

The level-1 routing field.

field1
routeFieldValuesarray

The hot values of the level-1 routing field.

routeFieldValuesstring

The hot value of the level-1 routing field.

routeFieldValues
secondRouteFieldstring

The level-2 routing field. This parameter is returned if the routeFieldValues parameter is returned. By default, the wide-table primary key field is used as the level-2 routing field.

field2
ttlFieldobject

The document clearing configurations.

namestring

The document clearing field.

text1
ttllong

The TTL. Unit: milliseconds.

1000
indexSortConfigarray<object>

The sort configurations.

indexSortConfigobject

The sort configurations.

fieldstring

The sort field.

field1
directionstring

The sort method. Valid values:

  • ASC
  • DESC
DESC
namestring

The name of the wide table.

test
progressPercentinteger

The progress of data import, in percentage. For example, a value of 83 indicates 83%.

100
fetchFieldsarray

The default display fields.

fetchFieldsstring

The default display field.

{}
quotaobject

The quota information.

specstring

The specifications. 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
qpsinteger

The number of search requests per second. You are charged based on the number of search requests per second in the earlier billing model.

5
docSizeinteger

The storage capacity. Unit: GB.

1
computeResourceinteger

The computing resources. Unit: logical computing unit (LCU).

20
domainobject

The type of the industry. Valid values:

  • GENERAL
  • ECOMMERCE
  • IT_CONTENT
categorystring

The type of the edition. Valid values: standard, advance, and enhanced. A value of standard indicates a standard edition. A value of advance indicates an advanced edition which is of an old version. New version is not supported for this edition. A value of enhanced indicates an advanced edition which is of a new version.

-
namestring

The name (in English).

test
functionsobject

The search results.

servicearray

Feature 1.

servicestring

Feature 1.

-
qparray

Information 1.

qpstring

Information 1.

spellcheck
algoarray

Structure 1.

algostring

Structure 1.

pop
schemasarray<object>

The single-table schema.

schemasobject

The single-table schema.

tablesobject

The table schema.

indexesobject

The index schema.

filterFieldsarray

The attribute fields.

filterFieldsstring

The attribute field.

field1
searchFieldsobject

The index fields.

routeFieldstring

The level-1 routing field.

field1
routeFieldValuesarray

The hot values of the level-1 routing field.

routeFieldValuesstring

The hot value of the level-1 routing field.

routeFieldValues
secondRouteFieldstring

The level-2 routing field. This parameter is returned if the routeFieldValues parameter is returned. By default, the wide-table primary key field is used as the level-2 routing field.

field2
ttlFieldobject

The document clearing configurations.

namestring

The document time field.

fIeld1
ttllong

The TTL. Unit: milliseconds.

1000
indexSortConfigarray<object>

The sort configurations.

indexSortConfigobject

The sort configurations.

fieldstring

The sort field.

fIeld1
directionstring

The sort method. Valid values:

  • ASC
  • DESC
DESC
namestring

The name of the wide table.

main
firstRanksarray<object>

The configurations of rough sort.

firstRanksobject

The configurations of rough sort.

typestring

The expression type. Valid values:

STRUCT: The content of the expression is a structure. STRING (default): a custom formula.

STRING
namestring

The name of the rough sort expression.

test
descriptionstring

The description.

Description
activeboolean

Indicates whether the expression is the default one.

False
metaany

The information about the expression. The information is displayed in the array or string format.

String :"random()*100+now()"; Array: [ { "attribute": "static_bm25()", "arg": "", "weight": 10 } ]
secondRanksarray<object>

The configurations of fine sort.

secondRanksobject

The configurations of fine sort.

metaany

The fine sort expression. You can define an expression that consists of fields, feature functions, and mathematical functions to implement complex sort logic.

"cate_id > 0 and cate_id < 1000"
namestring

The name of the fine sort expression.

default
descriptionstring

The description.

Description
activeboolean

Indicates whether the expression is the default one.

False
dataSourcesarray<object>

The configurations of data sources.

dataSourcesobject

The configurations of the data source.

tableNamestring

The name of the table in the application.

main
typestring

The type of the data source. Valid values:

  • rds
  • odps
  • opensearch
  • polardb
rds
fieldsarray<object>

The information about field mappings.

fieldsobject

The information about field mappings.

pluginsobject

The plug-ins that are used for data processing.

name:

  • JsonKeyValueExtractor
  • MultiValueSpliter
  • KeyValueExtractor
  • StringCatenateExtractor
  • HTMLTagRemover

parameters:

  • JsonKeyValueExtractor
  • MultiValueSpliter
  • KeyValueExtractor
  • StringCatenateExtractor
  • HTMLTagRemover
keyFieldstring

The primary key.

id
schemaNamestring

The name of the wide table.

name
parametersobject

The information about the data source.

summariesarray<object>

The search result summary configurations.

summariesobject

The search result summary configurations.

namestring

The group name.

fefault
metaarray<object>

The summary configurations.

metaobject

The summary configurations.

fieldstring

The field.

field1
leninteger

The length of the segment. Valid values: 1 to 300.

50
elementstring

The element that is used for highlighting.

em
ellipsisstring

The connector that is used to connect segments.

...
snippetstring

The number of segments. Valid values: 1 to 5.

5
queryProcessorsarray<object>

The query intent understanding configurations.

queryProcessorsobject

The query intent understanding configurations.

namestring

The rule name.

test
domainstring

The type of the industry. Valid values:

  • GENERAL
  • ECOMMERCE
  • IT_CONTENT
GENERAL
categorystring

The industry category.

""
processorsarray<object>

The features.

processorsobject

The feature.

indexesarray

The indexes.

indexesstring

The index.

default
activeboolean

Indicates whether the rule is the default one.

False
clusterobject

The capability opening configurations.

maxTimeoutMSinteger

The timeout period. Unit: milliseconds.

750
maxQueryClauseLengthinteger

The maximum length of the query clause.

1024
interpretationsobject

The field model.

promptsarray<object>

The prompt configurations.

promptsobject

The prompt configurations.

Examples

Sample success responses

JSONformat

{
  "requestId": "77CAA411-0010-4DB9-82E2-1C384E590AFF",
  "result": [
    {
      "id": "100302881",
      "isCurrent": true,
      "clusterName": "vpc_sh_domain_1",
      "autoSwitch": true,
      "type": "enhanced",
      "description": "\"\"",
      "status": "normal",
      "schema": {
        "tables": {
          "test": "test",
          "test2": 1
        },
        "indexes": {
          "filterFields": [
            "id"
          ],
          "searchFields": {
            "test": "test",
            "test2": 1
          }
        },
        "routeField": "field1",
        "routeFieldValues": [
          "routeFieldValues"
        ],
        "secondRouteField": "field2\n",
        "ttlField": {
          "name": "text1\n",
          "ttl": 1000
        },
        "indexSortConfig": [
          {
            "field": "field1",
            "direction": "DESC"
          }
        ],
        "name": "test"
      },
      "progressPercent": 100,
      "fetchFields": [
        "{}"
      ],
      "quota": {
        "spec": "opensearch.share.common",
        "qps": 5,
        "docSize": 1,
        "computeResource": 20
      },
      "domain": {
        "category": "-",
        "name": "test",
        "functions": {
          "service": [
            "-"
          ],
          "qp": [
            "spellcheck"
          ],
          "algo": [
            "pop"
          ]
        }
      },
      "schemas": [
        {
          "tables": {
            "test": "test",
            "test2": 1
          },
          "indexes": {
            "filterFields": [
              "field1"
            ],
            "searchFields": {
              "test": "test",
              "test2": 1
            }
          },
          "routeField": "field1\n",
          "routeFieldValues": [
            "routeFieldValues"
          ],
          "secondRouteField": "field2",
          "ttlField": {
            "name": "fIeld1",
            "ttl": 1000
          },
          "indexSortConfig": [
            {
              "field": "fIeld1",
              "direction": "DESC"
            }
          ],
          "name": "main"
        }
      ],
      "firstRanks": [
        {
          "type": "STRING",
          "name": "test",
          "description": "Description\n",
          "active": true,
          "meta": "String :\"random()*100+now()\";\nArray: [\n    {\n      \"attribute\": \"static_bm25()\",\n      \"arg\": \"\",\n      \"weight\": 10\n    }\n  ]"
        }
      ],
      "secondRanks": [
        {
          "meta": "\"cate_id > 0 and cate_id < 1000\"\n",
          "name": "default\n",
          "description": "Description\n",
          "active": true
        }
      ],
      "dataSources": [
        {
          "tableName": "main",
          "type": "rds",
          "fields": [
            {
              "test": "test",
              "test2": 1
            }
          ],
          "plugins": {
            "test": "test",
            "test2": 1
          },
          "keyField": "id",
          "schemaName": "name",
          "parameters": {
            "test": "test",
            "test2": 1
          }
        }
      ],
      "summaries": [
        {
          "name": "fefault",
          "meta": [
            {
              "field": "field1",
              "len": 50,
              "element": "em",
              "ellipsis": "...",
              "snippet": "5"
            }
          ]
        }
      ],
      "queryProcessors": [
        {
          "name": "test",
          "domain": "GENERAL",
          "category": "\"\"",
          "processors": [
            {
              "test": "test",
              "test2": 1
            }
          ],
          "indexes": [
            "default"
          ],
          "active": true
        }
      ],
      "cluster": {
        "maxTimeoutMS": 750,
        "maxQueryClauseLength": 1024
      },
      "interpretations": {
        "test": "test",
        "test2": 1
      },
      "prompts": [
        {
          "test": "test",
          "test2": 1
        }
      ]
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-08-26The response structure of the API has changedView Change Details