修改集群索引版本(索引回滚)。
接口说明
方法
PUT
URI
/openapi/ha3/instances/{instanceId}/clusters/{clusterName}/index-version
```。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
PUT /openapi/ha3/instances/{instanceId}/clusters/{clusterName}/index-version
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
instanceId | string | 是 | 实例ID | ha-cn-7mz2j2off06 |
clusterName | string | 否 | 集群名称 | vpc_hz_domain_2 |
body | object [] | 否 | 版本查询关键字,支持模糊匹配。 | {} |
indexName | string | 否 | 索引名称 | main_index |
version | string | 否 | 索引版本 | 1 |
buildDeployId | string | 否 | 产出索引的离线部署 | 277 |
请求示例
PUT /openapi/ha3/instances/ha3_instance_nameclusters/test_cluster/index-version
[
{
"indexName": "index1",
"version": "123456",
"buildDeployId": "20201010"
},
{
"indexName": "index1",
"version": "123456",
"buildDeployId": "20201010"
}
]
返回参数
示例
正常返回示例
JSON
格式
{
"requestId": "F43E8AB4-419C-5F4C-90D6-615590DFAA3C",
"result": {
"test": "test",
"test2": 1
}
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2022-01-12 | 新增 OpenAPI |