文档

ListDataSource - 获取指定实例的数据源列表

更新时间:

获取指定实例的数据源列表信息。

调试

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

授权信息

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

请求语法

GET /v2/openapi/instances/{instanceId}/dataSources

请求参数

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

实例 id。

airec-cn-o400whm78004

返回参数

名称类型描述示例值
object
resultobject []

数据源信息列表

gmtModifiedstring

最后修改数据源的 UTC 时间。

2018-12-07T02:24:26.000Z
gmtCreatestring

创建数据源的 UTC 时间。

2018-12-07T02:24:26.000Z
tableNamestring

智能推荐的实例的表名。

behavior
metaobject

数据源配置参数

bucketNamestring

oss 数据源的 bucketName 信息

airec
accessKeyIdstring

有访问 ODPS 权限的 accesskey ID。

xxx
typestring

数据源类型,当前只支持 ODPS。

ODPS
partitionstring

ODPS Partition。例如:ds=20180102

ds=20181122
timestamplong

ODPS 毫秒数据时间戳。例如:1544112000000

1544112000000
pathstring

oss 数据源的 path 信息

oss://xxx.xxx
tableNamestring

ODPS 的 table name。

test_maxcompute
projectNamestring

ODPS 的 project name。

openrec_gray
codestring

错误码

InternalServerError
requestIdstring

当前请求的 RequestID。

8F81A922-6C81-46D6-B78C-CC35E16B1691
messagestring

错误详情

An internal server error occurred

示例

正常返回示例

JSON格式

{
  "result": [
    {
      "gmtModified": "2018-12-07T02:24:26.000Z",
      "gmtCreate": "2018-12-07T02:24:26.000Z",
      "tableName": "behavior",
      "meta": {
        "bucketName": "airec",
        "accessKeyId": "xxx",
        "type": "ODPS",
        "partition": "ds=20181122",
        "timestamp": 1544112000000,
        "path": "oss://xxx.xxx",
        "tableName": "test_maxcompute",
        "projectName": "openrec_gray"
      }
    }
  ],
  "code": "InternalServerError",
  "requestId": "8F81A922-6C81-46D6-B78C-CC35E16B1691",
  "message": "An internal server error occurred"
}

错误码

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

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (0)
文档反馈