ListInstanceResourceTables
Queries all data tables under a specified instance and data source.
Operation description
Request description
By providing the instance ID (InstanceId) and the data source ID (ResourceId), you can retrieve a list of all data tables under the data source. The optional MaxcomputeSchema parameter allows you to specify the MaxCompute schema to further filter the results.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pairec:ListInstanceResourceTables |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/instances/{InstanceId}/resources/{ResourceId}/tables HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The instance ID. |
pairec-cn-xxx |
| ResourceId |
string |
No |
The data source ID. |
reso-********* |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MaxcomputeSchema |
string |
No |
The MaxCompute schema. |
jackal |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
01D22D08-BA20-5F35-8302-99115F288220 |
| TotalCount |
string |
The total count. |
30 |
| Tables |
array<object> |
The list of data tables. |
|
|
object |
The details of the data table. |
||
| TableName |
string |
The table name. |
table-1 |
Examples
Success response
JSON format
{
"RequestId": "01D22D08-BA20-5F35-8302-99115F288220",
"TotalCount": "30",
"Tables": [
{
"TableName": "table-1"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.