Gets the field information for a specified table in a data source. This operation supports only MaxCompute data sources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
featurestore:GetDatasourceTable |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/instances/{InstanceId}/datasources/{DatasourceId}/tables/{TableName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. You can call the ListInstances operation to query the instance ID. |
fs-cn-******** |
| DatasourceId |
string |
Yes |
The data source ID. You can call the ListDatasources operation to query the data source ID. |
3 |
| TableName |
string |
Yes |
The name of the data table. |
table1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
D7B2F8C4-49C7-5CFA-8075-9D715A114873 |
| TableName |
string |
The name of the data table. |
table1 |
| Fields |
array<object> |
The list of fields. |
|
|
object |
A field. |
||
| Name |
string |
The name of the field. |
field1 |
| Type |
string |
The data type of the field. Valid values: ● INT32 ● INT64 ● FLOAT ● DOUBLE ● STRING ● BOOLEAN ● TIMESTAMP |
INT32 |
| Attributes |
array |
The attributes of the field. Valid values: ● Partition: indicates that the field is a partition field. ● EventTime: indicates that the field is an event time field. ● PrimaryKey: indicates that the field is a primary key field. |
|
|
string |
The attribute of the field. |
Partition |
Examples
Success response
JSON format
{
"RequestId": "D7B2F8C4-49C7-5CFA-8075-9D715A114873",
"TableName": "table1",
"Fields": [
{
"Name": "field1",
"Type": "INT32",
"Attributes": [
"Partition"
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.