ListDateSourceGenerations - 获取数据源的历史回流信息

更新时间: 2023-05-31 11:24:27

获取数据源的历史回流信息。

接口说明

方法

GET

URI

/openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/generations?domainName={domainName}

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/generations

请求参数

名称类型必填描述示例值
instanceIdstring

实例id。

ha-cn-7mz2ttxta01
dataSourceNamestring

数据源名称。

ha-cn-0ju2s170b03_test_api2
validStatusboolean

有效状态(默认为true)

  1. true 返回Task执行完成且未过期的generation
  2. false 返回所有generation
true
domainNamestring

数据源部署机房

bj_vpc_domain_1

请求示例

GET /openapi/ha3/instances/ha3_instances_id/data-sources/my_data_source/generations??domainName=pre_domain_1

返回参数

名称类型描述示例值
object
requestIdstring

id of request

022F36C7-9FB4-5D67-BEBC-3D14B0984463
resultobject []

List

generationlong

generation 主键

1626143930
createTimelong

build index 开始时间

1626143673
statusstring

状态

STOPPED
buildDeployIdinteger

buildDeployId

122
partitionobject

Key 索引名称 value 分片数量

integer

分片数

1
timestamplong

增量时间戳

1626143673
dataDumpRootstring

dump表索引文件存储地址

""

返回示例

{
  "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
  "result": [
    {
      "generationId":1626143930,
      "timestamp":16261436737,
      "createTime":1626143673,
      "status":"STOPPED",
      "partition":{
        "index1":1
      },
      "buildDeployId":122
    },{
      "generationId":1626143930,
      "timestamp":16261435453,
      "createTime":1626143673,
      "status":"STOPPED",
      "partition":{
        "index1":1
      },
      "buildDeployId":122
    }
  ]
}

示例

正常返回示例

JSON格式

{
  "requestId": "022F36C7-9FB4-5D67-BEBC-3D14B0984463",
  "result": [
    {
      "generation": 1626143930,
      "createTime": 1626143673,
      "status": "STOPPED",
      "buildDeployId": 122,
      "partition": {
        "key": 1
      },
      "timestamp": 1626143673,
      "dataDumpRoot": "\"\""
    }
  ]
}

错误码

访问错误中心查看更多错误码。

阿里云首页 智能开放搜索 OpenSearch 相关技术圈