获取指定数据源的所有数据。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
GET /v4/openapi/assist/data-sources/[dataSourceType]/tables HTTP/1.1
请求参数
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
dataSourceType | String | Path | 是 | rds |
数据源类型
|
params | String | Query | 是 | - |
数据源参数。json字符串,需要urlencode编码。 各数据源参数不同,参考: |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
requestId | String | 0A6EB64B-B4C8-CF02-810F-E660812972FF |
请求ID |
result | List | {} |
数据源表集合 |
示例
请求示例
GET /v4/openapi/assist/data-sources/rds/tables?params=%7B%22db_name%22%3A%22mysql57%22%2C%22db_user%22%3A%22mysql57%22%2C%22db_password%22%3A%22opensearch_Rw%22%2C%22instance_id%22%3A%22rm-bp155vthpb6s99m34%22%7D
正常返回示例
XML
格式
<requestId>0A6EB64B-B4C8-CF02-810F-E660812972FF</requestId>
<result>cate_test</result>
<result>offline_error</result>
<result>plugin</result>
<result>quota_test</result>
<result>smoke</result>
<result>smoke_1</result>
<result>smoke_2</result>
<result>students</result>
JSON
格式
{
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result": [
"cate_test",
"offline_error",
"plugin",
"quota_test",
"smoke",
"smoke_1",
"smoke_2",
"students"
]
}
错误码
访问错误中心查看更多错误码。