index_set_readonly
Set an index to read-only mode or remove read-only status to prepare for operations like cloning, splitting, or shrinking indexes in Easysearch.
Instructions
设置索引为只读(clone/split/shrink 的前置条件)
参数:
index: 索引名称
readonly: True 设为只读,False 取消只读
示例:
index_set_readonly("my-index", True) # 设为只读
index_set_readonly("my-index", False) # 取消只读
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"index": "<index>"
},
"name": "index_set_readonly"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| readonly | No |