Queries the information about an advanced configuration.
Operation description
Method
GET
URI
/openapi/ha3/instances/{instanceId}/advanced-configs/{configName}
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:GetAdvanceConfig |
get |
*Instance
|
None | None |
Request syntax
GET /openapi/ha3/instances/{instanceId}/advanced-configs/{configName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
ha-cn-pl32rf0**** |
| configName |
string |
Yes |
The name of the advanced configuration. |
ha-cn-pl32rf0****_offline_adv_edit |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| type |
string |
No |
|
ONLINE |
Sample requests
GET /openapi/ha3/instances/ose-test1/advanced-configs/my_config_name
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| requestId |
string |
The ID of the request. |
E45380E8-994A-5402-9806-F114B3295FCF |
| result |
object |
The result. |
|
| updateTime |
integer |
The time when the advanced configuration was updated. |
2024-05-21 16:05:26 |
| desc |
string |
The description of the advanced configuration. |
Custom remarks |
| files |
array<object> |
The files. |
|
|
object |
An array of files. |
||
| name |
string |
The file name. |
ha-cn-pl32rf0****_qrs |
| fullPathName |
string |
The file path. |
/cluster |
| isDir |
boolean |
Indicates whether the file is a directory. |
true |
| isTemplate |
boolean |
Indicates whether the file is a container. |
true |
| content |
string |
The content of the advanced configuration that is returned. |
{\"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 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. |
used |
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
Success response
JSON format
{
"requestId": "E45380E8-994A-5402-9806-F114B3295FCF",
"result": {
"updateTime": 0,
"desc": "Custom remarks",
"files": [
{
"name": "ha-cn-pl32rf0****_qrs",
"fullPathName": "/cluster",
"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": "used"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.