Retrieves the schema of a specified data table within a resource.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pairec:GetInstanceResourceTable |
none |
*All Resource
|
None | None |
Request syntax
GET /api/v1/instances/{InstanceId}/resources/{ResourceId}/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 obtain this ID. |
pairec-cn-test1 |
| ResourceId |
string |
Yes |
The resource ID. |
reso-2s416t*** |
| TableName |
string |
Yes |
The name of the data table. |
test_table |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The schema of the response. |
||
| RequestId |
string |
The request ID. |
74D958EF-3598-56FA-8296-FF1575CE43DF |
| TableName |
string |
The table name. |
test_table |
| Fields |
array<object> |
The list of fields in the data table. |
|
|
object |
The details of a field. |
||
| Name |
string |
The field name. |
age |
| Type |
string |
The field type. |
BIGINT |
| Meaning |
string |
The meaning of the field. |
"" |
| IsDimensionField |
boolean |
Indicates whether the field is a dimension field. |
false |
| IsPartitionField |
boolean |
Indicates whether the field is a partition field. |
true |
Examples
Success response
JSON format
{
"RequestId": "74D958EF-3598-56FA-8296-FF1575CE43DF",
"TableName": "test_table",
"Fields": [
{
"Name": "age",
"Type": "BIGINT",
"Meaning": "\"\"",
"IsDimensionField": false,
"IsPartitionField": true
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.