All Products
Search
Document Center

OpenSearch:DescribeApp

Last Updated:Sep 15, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Queries the information about a version of an OpenSearch application.

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:DescribeAppget
*App
acs:opensearch:{#regionId}:{#accountId}:app-groups/{#AppGroupId}
    none
none

Request syntax

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

Request parameters

ParameterTypeRequiredDescriptionExample
appGroupIdentitystringYes

The name of the application

my_app_group_name
appIdintegerYes

The version ID.

110116134

Response parameters

ParameterTypeDescriptionExample
object

The response body.

requestIdstring

The request ID.

33477D76-C380-1D84-A4AD-043F52876CB1
resultobject

The version information.

idstring

The version ID.

100303063
isCurrentboolean

Indices whether the version is an online version.

True
clusterNamestring

The cluster name.

-
autoSwitchboolean

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

true
typestring

The edition type. 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 of the version.

-
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.
ok
schemaobject

The schema of the application.

tablesobject

The table schema.

{ "primaryTable": true, "name": "main", "fields": { "id": { "name": "id", "type": "LITERAL", "primaryKey": true }, "title": { "name": "title", "type": "TEXT", "primaryKey": false }, "buy": { "name": "buy", "type": "INT", "primaryKey": false }, "cate_id": { "name": "cate_id", "type": "INT", "primaryKey": false }, "cate_name": { "name": "cate_name", "type": "LITERAL", "primaryKey": false } } }
indexesobject

The index schema.

filterFieldsarray

The attribute fields.

filterFieldsstring

The attribute field.

id
searchFieldsobject

The index fields.

{ "fields": ["title"], "analyzer": "chn_standard" }
routeFieldstring

The name of 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 name of the level-2 routing field. This parameter takes effect only when the routeFieldValues parameter is configured. 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.

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 fields.

{}
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 industry type. 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

The description of each feature.

servicestring

Feature 1.

-
qparray

The information about the layout.

qpstring

Information 1.

-
algoarray

The structure of the algorithm.

algostring

Structure 1.

-
schemasarray<object>

The multi-table schema.

schemasobject

The single-table schema.

tablesobject

The table schema.

{ "primaryTable": true, "name": "main", "fields": { "id": { "name": "id", "type": "LITERAL", "primaryKey": true }, "title": { "name": "title", "type": "TEXT", "primaryKey": false }, "buy": { "name": "buy", "type": "INT", "primaryKey": false }, "cate_id": { "name": "cate_id", "type": "INT", "primaryKey": false }, "cate_name": { "name": "cate_name", "type": "LITERAL", "primaryKey": false } } }
indexesobject

The index schema.

filterFieldsarray

The attribute fields.

filterFieldsstring

The attribute field.

field1
searchFieldsobject

The index fields.

{ "fields": ["title"], "analyzer": "chn_standard" }
routeFieldstring

The name of 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 name of the level-2 routing field. This parameter takes effect only when the routeFieldValues parameter is configured. 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): custom formula.

STRING
namestring

The name of the rough sort expression.

test
descriptionstring

The description.

abc
activeboolean

Indicates whether the expression is the default one.

False
metaany

The information about the expression. The information can be of the array or string type.

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 contains 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 the 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.

{ "id": "id" }
pluginsobject

The plug-ins that are used for data processing.

name:

  • JsonKeyValueExtractor
  • MultiValueSpliter
  • KeyValueExtractor
  • StringCatenateExtractor
  • HTMLTagRemover

parameters:

  • JsonKeyValueExtractor
  • MultiValueSpliter
  • KeyValueExtractor
  • StringCatenateExtractor
  • HTMLTagRemover
{ "name": "JsonKeyValueExtractor", "parameters": { "key": "my_field" } }
keyFieldstring

The primary key.

id
schemaNamestring

The name of the wide table.

name
parametersobject

The information about the data source.

{ "instanceId": "rds-instance-id", "dbName": "my_db", "dbTableName": "my_table", "dbUser": "my", "dbPassword": "my_passwd", "filter":"", "autoSync": true }
summariesarray<object>

The summary configurations of search results.

summariesobject

The summary configurations of search results.

namestring

The group name.

default
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 industry type. Valid values:

  • GENERAL
  • ECOMMERCE
  • IT_CONTENT
GENERAL
categorystring

The industry category.

""
processorsarray<object>

The features.

processorsobject

The features.

{ "name": "stop_word", "useSystemDictionary": true, "interventionDictionary": "my_dict", "ignoreSpace": true }
indexesarray

Then index range.

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 industry model module.

\[ { "table": "table1", "fields": \[ { "name": "field1", "interpretation": "Title" }, { "name": "field2", "interpretation": "Number" } ] } ]
promptsarray<object>

The prompt configurations.

promptsobject

The prompt configurations.

{ "parameters" : \[ { "name" : "docs", "value" : "The way in which the content of documents is concatenated, such as '\<article>\n${doc}\n\</article>\n." } ], "messages":\[ { "role" : "role_name: specifies whether to specify only system, user, or assistant or specify a custom value.", "content" : "The content of the prompt configured by the user. ${parameter_key} can be used to specify the content that you want to dynamically replace. For more information about replacement rules, see the following instructions." } ] }

Examples

Sample success responses

JSONformat

{
  "requestId": "33477D76-C380-1D84-A4AD-043F52876CB1",
  "result": {
    "id": 100303063,
    "isCurrent": true,
    "clusterName": "-",
    "autoSwitch": true,
    "type": "enhanced",
    "description": "-",
    "status": "ok",
    "schema": {
      "tables": {
        "primaryTable": true,
        "name": "main",
        "fields": {
          "id": {
            "name": "id",
            "type": "LITERAL",
            "primaryKey": true
          },
          "title": {
            "name": "title",
            "type": "TEXT",
            "primaryKey": false
          },
          "buy": {
            "name": "buy",
            "type": "INT",
            "primaryKey": false
          },
          "cate_id": {
            "name": "cate_id",
            "type": "INT",
            "primaryKey": false
          },
          "cate_name": {
            "name": "cate_name",
            "type": "LITERAL",
            "primaryKey": false
          }
        }
      },
      "indexes": {
        "filterFields": [
          "id"
        ],
        "searchFields": {
          "fields": [
            "title"
          ],
          "analyzer": "chn_standard"
        }
      },
      "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": [
          "-"
        ],
        "algo": [
          "-"
        ]
      }
    },
    "schemas": [
      {
        "tables": {
          "primaryTable": true,
          "name": "main",
          "fields": {
            "id": {
              "name": "id",
              "type": "LITERAL",
              "primaryKey": true
            },
            "title": {
              "name": "title",
              "type": "TEXT",
              "primaryKey": false
            },
            "buy": {
              "name": "buy",
              "type": "INT",
              "primaryKey": false
            },
            "cate_id": {
              "name": "cate_id",
              "type": "INT",
              "primaryKey": false
            },
            "cate_name": {
              "name": "cate_name",
              "type": "LITERAL",
              "primaryKey": false
            }
          }
        },
        "indexes": {
          "filterFields": [
            "field1"
          ],
          "searchFields": {
            "fields": [
              "title"
            ],
            "analyzer": "chn_standard"
          }
        },
        "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": "abc",
        "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",
        "name": "default\n",
        "description": "Description",
        "active": true
      }
    ],
    "dataSources": [
      {
        "tableName": "main",
        "type": "rds",
        "fields": [
          {
            "id": "id"
          }
        ],
        "plugins": {
          "name": "JsonKeyValueExtractor",
          "parameters": {
            "key": "my_field"
          }
        },
        "keyField": "id",
        "schemaName": "name",
        "parameters": {
          "instanceId": "rds-instance-id",
          "dbName": "my_db",
          "dbTableName": "my_table",
          "dbUser": "my",
          "dbPassword": "my_passwd",
          "filter": "",
          "autoSync": true
        }
      }
    ],
    "summaries": [
      {
        "name": "default",
        "meta": [
          {
            "field": "field1",
            "len": 50,
            "element": "em",
            "ellipsis": "...",
            "snippet": 5
          }
        ]
      }
    ],
    "queryProcessors": [
      {
        "name": "test",
        "domain": "GENERAL",
        "category": "",
        "processors": [
          {
            "name": "stop_word",
            "useSystemDictionary": true,
            "interventionDictionary": "my_dict",
            "ignoreSpace": true
          }
        ],
        "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