Queries all tables of a data source. This operation is for internal use only.
Debugging
Request headers
This operation uses only common request headers. For more information, see Common request parameters.
Request syntax
GET /v4/openapi/assist/data-sources/[dataSourceType]/tables HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
dataSourceType | String | Path | Yes | rds |
The type of the data source. Valid values:
|
params | String | Query | Yes | N/A |
The parameters about the data source. The value of the params parameter is a JSON string. The value must be URL-encoded. The parameters for different types of data sources are different. For more information, see the following sections of the DataSource topic: |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
requestId | String | 0A6EB64B-B4C8-CF02-810F-E660812972FF |
The ID of the request. |
result | List | {} |
The data tables. |
Examples
Sample requests
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
Sample success responses
XML
format
<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
format
{
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result": [
"cate_test",
"offline_error",
"plugin",
"quota_test",
"smoke",
"smoke_1",
"smoke_2",
"students"
]
}
Error codes
For a list of error codes, visit the API Error Center.