ListDataSource - 获取指定实例的数据源列表
获取指定实例的数据源列表信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
airec:ListDataSource |
get |
*Instance
|
无 | 无 |
请求语法
GET /v2/openapi/instances/{instanceId}/dataSources HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| instanceId |
string |
是 |
实例 id。 |
airec-cn-o400whm78004 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| result |
array<object> |
数据源信息列表 |
|
|
object |
|||
| gmtModified |
string |
最后修改数据源的 UTC 时间。 |
2018-12-07T02:24:26.000Z |
| gmtCreate |
string |
创建数据源的 UTC 时间。 |
2018-12-07T02:24:26.000Z |
| tableName |
string |
智能推荐的实例的表名。 |
behavior |
| meta |
object |
数据源配置参数 |
|
| bucketName |
string |
oss 数据源的 bucketName 信息 |
airec |
| accessKeyId |
string |
有访问 ODPS 权限的 accesskey ID。 |
xxx |
| type |
string |
数据源类型,当前只支持 ODPS。 |
ODPS |
| partition |
string |
ODPS Partition。例如:ds=20180102 |
ds=20181122 |
| timestamp |
integer |
ODPS 毫秒数据时间戳。例如:1544112000000 |
1544112000000 |
| path |
string |
oss 数据源的 path 信息 |
oss://xxx.xxx |
| tableName |
string |
ODPS 的 table name。 |
test_maxcompute |
| projectName |
string |
ODPS 的 project name。 |
openrec_gray |
| code |
string |
错误码 |
InternalServerError |
| requestId |
string |
当前请求的 RequestID。 |
8F81A922-6C81-46D6-B78C-CC35E16B1691 |
| message |
string |
错误详情 |
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"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。