Retrieves a list of advanced configurations.
Operation description
Method
GET
URI
/openapi/ha3/instances/{instanceId}/advanced-configs?type=online
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:ListAdvanceConfigs |
list |
*Instance
|
None | None |
Request syntax
GET /openapi/ha3/instances/{instanceId}/advanced-configs HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
ha-cn-pl32rf0**** |
| type |
string |
No |
The type of the advanced configuration. Valid values: - online - offline (default) |
online |
| dataSourceName |
string |
No |
The data source name. |
ha-cn-pl32rf0****_test_api |
| indexName |
string |
No |
The index name. |
test_api |
| newMode |
boolean |
No |
Specifies whether to use the new version of the page. |
true |
| pageNumber |
string |
No |
The page number. The default value is 1. |
1 |
| pageSize |
string |
No |
The number of entries to return on each page. The default value is 10. |
10 |
Request example
GET /openapi/ha3/instances/ose-test1/advanced-configs
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
4FB0325E-8C37-5525-96AC-0333523170A3 |
| result |
array<object> |
The returned result. |
|
|
object |
A list of advanced configurations. |
||
| updateTime |
integer |
The update time. |
1631070464000 |
| desc |
string |
The description. |
Custom Description |
| files |
array<object> |
A list of files. |
|
|
object |
The file information. |
||
| name |
string |
The file name. |
file_name_1 |
| fullPathName |
string |
The absolute path. |
/path/wpd/nae |
| isDir |
boolean |
Specifies whether the file is a directory. Valid values: - `true` - `false` |
true |
| isTemplate |
boolean |
Specifies whether the file is a template. Valid values: - `true` - `false` |
true |
| content |
string |
The configuration content. This parameter is returned for HTTP and Git requests. |
{\"url\":\"http://xxxxxx.aliyuncs.com/outnet_hz/packages/xxxxx/opensearch_offline_plugins_xxxxx.tar\"} |
| contentType |
string |
The type of the configuration content. Valid values: FILE, GIT, HTTP, and ODPS. |
FILE |
| name |
string |
The name of the advanced configuration. |
my_index |
| status |
string |
The status of the advanced configuration. Valid values: - `drafting`: The configuration is a draft. - `used`: The configuration is in use. - `unused`: The configuration is not in use. - `trash`: The configuration is being deleted. |
drafting |
| creator |
string |
The ID of the user who created the configuration. |
123456 |
| advanceConfigType |
string |
|
ONLINE |
Response example
Successful response
{
"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
}
]
}
]
}
Examples
Success response
JSON format
{
"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"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.