search-admin Endpoints
All endpoints for the search-admin API group. Great for feeding into an LLM context.
/v1/search-admin/connection
Check OpenSearch Connection
Checks the connection status to the OpenSearch cluster. - **Requires admin privileges.**
Responses
200Successful Response
{}404Not found
/v1/search-admin/index/app-indexes
List Application Indexes
Retrieves a list of all application-specific index names (prefixed with 'vs_') currently in the OpenSearch cluster. - **Requires admin privileges.**
Responses
200Successful Response
{}404Not found
/v1/search-admin/index/all-system
List All System Indexes
Retrieves a list of ALL index names currently in the OpenSearch cluster, including protected system indexes. - **Requires admin privileges.**
Responses
200Successful Response
{}404Not found
/v1/search-admin/flush-db
Flush Application Indexes
**DANGEROUS OPERATION.** Deletes all application-specific ('vs_*') indexes. This is intended for resetting the testing environment. - **Requires admin privileges.**
Responses
200Successful Response
{}404Not found
/v1/search-admin/index/docs
Trigger Documentation Indexing
Manually triggers the OpenSearch indexing task for documentation site data. - **run_async**: If `true`, the task runs in the background and the API returns a task ID. If `false` (default), the API waits for the task to complete and returns the full result. - **Requires admin privileges.**
Parameters
index_name
run_async
Responses
200Successful Response
{}404Not found
422Validation Error
{
"$ref": "#/components/schemas/HTTPValidationError"
}/v1/search-admin/index/{index_name}
Create Index
Creates a new application-specific ('vs_*') index in OpenSearch. - **index_name**: The base name of the index to create (e.g., 'my_index'). - **settings**: (Optional) A JSON body with index settings. - **Requires admin privileges.**
Parameters
index_name*
Request Body
{
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Settings"
}
}
}
}Responses
200Successful Response
{}404Not found
422Validation Error
{
"$ref": "#/components/schemas/HTTPValidationError"
}/v1/search-admin/index/{index_name}
Get Index Information
Retrieves information for a specific application-specific ('vs_*') index. - **index_name**: The base name of the index to retrieve. - **Requires admin privileges.**
Parameters
index_name*
Responses
200Successful Response
{}404Not found
422Validation Error
{
"$ref": "#/components/schemas/HTTPValidationError"
}/v1/search-admin/index/{index_name}
Delete Index
Deletes a specific application-specific ('vs_*') index. - **index_name**: The base name of the index to delete. - **Requires admin privileges.**
Parameters
index_name*
Responses
200Successful Response
{}404Not found
422Validation Error
{
"$ref": "#/components/schemas/HTTPValidationError"
}/v1/search-admin/index/{index_name}/documents
Get All Documents in Index
Retrieves all documents from a specific application-specific ('vs_*') index. Mainly for debugging to verify index contents. - **index_name**: The base name of the index to query. - **limit**: The maximum number of documents to return. - **Requires admin privileges.**
Parameters
index_name*
limit
Responses
200Successful Response
{}404Not found
422Validation Error
{
"$ref": "#/components/schemas/HTTPValidationError"
}/v1/search-admin/index/{index_name}/settings
Update Index Settings
Updates the settings of an existing application-specific ('vs_*') index. - **index_name**: The base name of the index to update. - **settings**: A JSON body with the settings to update. - **Requires admin privileges.**
Parameters
index_name*
Request Body
{
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Settings"
}
}
}
}Responses
200Successful Response
{}404Not found
422Validation Error
{
"$ref": "#/components/schemas/HTTPValidationError"
}