获取高级配置列表。
接口说明
方法
GET
URI
/openapi/ha3/instances/{instanceId}/advanced-configs?type=online
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
searchengine:ListAdvanceConfigs |
list |
*Instance
|
无 | 无 |
请求语法
GET /openapi/ha3/instances/{instanceId}/advanced-configs HTTP/1.1
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
instanceId |
string |
是 |
实例 ID |
ha-cn-pl32rf0**** |
type |
string |
否 |
高级配置类型: - online - offline(默认) |
online |
dataSourceName |
string |
否 |
数据源名称。 |
ha-cn-pl32rf0****_test_api |
indexName |
string |
否 |
索引名称 |
test_api |
newMode |
boolean |
否 |
是否为新版本控制台页面 |
true |
pageNumber |
string |
否 |
指定页码,默认为:1 |
1 |
pageSize |
string |
否 |
指定每页展示条数,默认为 10。 |
10 |
请求示例
GET /openapi/ha3/instances/ose-test1/advanced-configs
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
|||
requestId |
string |
请求 ID。 |
4FB0325E-8C37-5525-96AC-0333523170A3 |
result |
array<object> |
返回结果。 |
|
object |
高级配置列表 |
||
updateTime |
integer |
更新时间 |
1631070464000 |
desc |
string |
描述 |
Custom Description |
files |
array<object> |
文件名列表 |
|
object |
文件信息。 |
||
name |
string |
文件名称 |
file_name_1 |
fullPathName |
string |
绝对路径 |
/path/wpd/nae |
isDir |
boolean |
是否为目录。取值:-true:是-false:否 |
true |
isTemplate |
boolean |
是否是模板。取值:-true:是-false:否 |
true |
content |
string |
配置内容 http,git 请求时不为空 |
{\"url\":\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\"} |
contentType |
string |
配置内容的类型(FILE, GIT, HTTP, ODPS) |
FILE |
name |
string |
高级配置名称 |
my_index |
status |
string |
高级配置状态 drafting: 草稿 used: 使用中 unused: 未使用 trash: 删除中 |
drafting |
creator |
string |
创建者 userid。 |
123456 |
advanceConfigType |
string |
|
ONLINE |
返回示例
正确返回
{
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result": [
{
"name": "my_index",
"status": "drafting",
"updateTime": 1631070464000,
"desc":"test",
"files":[
{
"name": "file_name_1",
"fullPathName": "/path/wpd/nae",
"isDir": true,
"isTemplate": true
}
]
},
{
"name": "my_index2",
"status": "drafting",
"updateTime": 1631070464000,
"desc":"test",
"files":[
{
"name": "file_name_1",
"fullPathName": "/path/wpd/nae",
"isDir": true,
"isTemplate": true
}
]
}
]
}
示例
正常返回示例
JSON
格式
{
"requestId": "4FB0325E-8C37-5525-96AC-0333523170A3",
"result": [
{
"updateTime": 1631070464000,
"desc": "Custom Description",
"files": [
{
"name": "file_name_1",
"fullPathName": "/path/wpd/nae",
"isDir": true,
"isTemplate": true
}
],
"content": "{\\\"url\\\":\\\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\\\"}",
"contentType": "FILE",
"name": "my_index",
"status": "drafting",
"creator": "123456",
"advanceConfigType": "ONLINE"
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。