全部产品
云市场

ListDataSource

更新时间:2018-12-10 11:32:49

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

描述

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

方法

GET

URI

/openapi/instances/{instanceId}/dataSources

返回参数

参数 类型 描述
RequestId String 当前请求的RequestID
result List<DataSource> 数据源信息列表

示例

请求示例

  1. GET /openapi/instances/airec-cn-xxxxxx/dataSources

正常返回示例

JSON 格式

  1. {
  2. "Result": [
  3. {
  4. "GmtCreate": "2018-12-07T02:24:26.000Z",
  5. "GmtModified": "2018-12-07T02:36:00.000Z",
  6. "TableName": "user",
  7. "Meta": {
  8. "Type": "ODPS",
  9. "Timestamp": 1544112000000,
  10. "AccessKeyId": "ak",
  11. "ProjectName": "project",
  12. "TableName": "table",
  13. "Partition": "dt=20181122"
  14. }
  15. },
  16. {
  17. "GmtCreate": "2018-12-07T02:24:26.000Z",
  18. "GmtModified": "2018-12-07T02:24:26.000Z",
  19. "TableName": "item",
  20. "Meta": {
  21. "Type": "ODPS",
  22. "Timestamp": 1544112000000,
  23. "AccessKeyId": "ak",
  24. "ProjectName": "project",
  25. "TableName": "table",
  26. "Partition": "dt=20181122"
  27. }
  28. },
  29. {
  30. "GmtCreate": "2018-12-07T02:24:26.000Z",
  31. "GmtModified": "2018-12-07T02:24:26.000Z",
  32. "TableName": "behavior",
  33. "Meta": {
  34. "Type": "ODPS",
  35. "Timestamp": 1544112000000,
  36. "AccessKeyId": "ak",
  37. "ProjectName": "project",
  38. "TableName": "table",
  39. "Partition": "dt=20181122"
  40. }
  41. }
  42. ],
  43. "RequestId": "6839AE7C-A984-48C1-AC17-331BAC6D97BC"
  44. }

异常返回示例

JSON 格式

  1. {
  2. "RequestId":"DF79FBBF-FFD9-42CD-A91E-220C97D13189",
  3. "Code":"InstanceNotExist",
  4. "Message":"The specified instance does not exist."
  5. }

错误码