All Products
Search
Document Center

OpenSearch:GetAdvanceConfig

Last Updated:Jul 16, 2024

Queries the information about an advanced configuration.

Operation description

Method

GET

URI

/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}

Debugging

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

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /openapi/ha3/instances/{instanceId}/advanced-configs/{configName}

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

ha-cn-18qug6zlc1r
typestringNo
  • The type of the advanced configuration. Valid values: -ONLINE: online configuration
  • -ONLINE_CAVA: online Cava configuration
  • -ONLINE_PLUGIN: online plug-in configuration
  • -ONLINE_QUERY: query configuration
  • -OFFLINE_DICT: offline dictionary configuration
  • -OFFLINE_TABLE: offline table configuration
  • -OFFLINE_COMMON: offline configuration
  • -OFFLINE_PLUGIN: offline plug-in configuration
  • -OFFLINE_INDEX: index configuration
ONLINE
configNamestringYes

The name of the advanced configuration.

ha-cn-18qug6zlc1r_offline_adv_edit

Sample requests

GET  /openapi/ha3/instances/ose-test1/advanced-configs/my_config_name

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

requestIdstring

The ID of the request.

E45380E8-994A-5402-9806-F114B3295FCF
resultobject

The result.

updateTimelong

The time when the advanced configuration was updated.

""
descstring

The description of the advanced configuration.

close alarm, chiji id 37080
filesarray<object>

The files.

object

An array of files.

namestring

The file name.

ha-cn-2r42ostoc01_qrs
fullPathNamestring

The file path.

""
isDirboolean

Indicates whether the file is a directory.

True
isTemplateboolean

Indicates whether the file is a container.

True
contentstring

The content of the advanced configuration that is returned.

{\"url\":\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\"}
contentTypestring

The type of the configuration content. Valid values: FILE, GIT, HTTP, and ODPS.

FILE
namestring

The name of the advanced configuration.

ha-cn-0ju2s170b03_qrs
statusstring

The status of the advanced configuration. Valid values: drafting: The advanced configuration is in the draft state. used: The advanced configuration is being used. unused: The advanced configuration is not used. trash: The advanced configuration is being deleted.

0,1,3,6,8

Sample responses

Success responses

{
  "requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",
  "result": {
    "name": "my_index",
    "status": "drafting",
    "updateTime": 1631070464000,
    "desc":"test",
    "files": [
      {
        "fullPathName": "/",
        "isDir": true,
        "isTemplate": true,
        "name": "cava"
      },
      {
        "fullPathName": "/",
        "isDir": true,
        "isTemplate": true,
        "name": "cava"
      }
    ]    
  }
}

Examples

Sample success responses

JSONformat

{
  "requestId": "E45380E8-994A-5402-9806-F114B3295FCF",
  "result": {
    "updateTime": 0,
    "desc": "close alarm, chiji id 37080",
    "files": [
      {
        "name": "ha-cn-2r42ostoc01_qrs",
        "fullPathName": "\"\"",
        "isDir": true,
        "isTemplate": true
      }
    ],
    "content": "{\\\"url\\\":\\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\\"}",
    "contentType": "FILE",
    "name": "ha-cn-0ju2s170b03_qrs",
    "status": "0,1,3,6,8"
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
2022-01-12Add OperationView Change Details