获取集群可回滚的索引信息。
接口说明
方法
GET
URI
/openapi/ha3/instances/{instanceId}/clusters/{clusterName}/index-version
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
searchengine:GetIndexVersion |
get |
*Instance
|
无 | 无 |
请求语法
GET /openapi/ha3/instances/{instanceId}/clusters/{clusterName}/index-version HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| instanceId |
string |
是 |
实例 ID |
ha-cn-pl32rf0**** |
| clusterName |
string |
是 |
集群名称 |
vpc_hz_domain_1 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
示例
请求示例
GET /openapi/ha3/instances/ha3_instance_id_1/clusters/cluster1/index-version
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| requestId |
string |
请求 ID。 |
E7B7D598-B080-5C8E-AA35-D43EC0D5F886 |
| result |
object |
集群列表 |
|
| cluster |
string |
集群名称 |
hz_pre_vpc_domain_1 |
| indexVersions |
array<object> |
索引版本列表 |
|
|
object |
索引版本信息 |
||
| indexName |
string |
索引表名称 |
test_api |
| versions |
array |
索引版本 |
|
|
integer |
索引版本 |
1630353700 |
|
| buildDeployId |
string |
离线部署 id |
2648 |
| currentVersion |
integer |
当前在线版本号 |
1 |
返回示例
正确返回
{
"requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",
"result": {
"cluster": "ea119cloud",
"indexVersions": [
{
"versions": [
1630527077,
1630440554
],
"currentVersion":1630527077,
"indexName": "ihome_lapp_content_filter_param_index",
"buildDeployId": "2837"
},
{
"versions": [
1630353700
],
"currentVersion":1630353700,
"indexName": "ihome_lapp_case_tab_filter",
"buildDeployId": "2829"
}
]
}
}
示例
正常返回示例
JSON格式
{
"requestId": "E7B7D598-B080-5C8E-AA35-D43EC0D5F886",
"result": {
"cluster": "hz_pre_vpc_domain_1",
"indexVersions": [
{
"indexName": "test_api",
"versions": [
1630353700
],
"buildDeployId": "2648",
"currentVersion": 1
}
]
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。