Retrieves the schema of a database.
Operation description
Method
GET
URI
/openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/tables/{tableName}/schema
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:GetDatabaseSchema |
get |
*Instance
|
None | None |
Request syntax
GET /openapi/ha3/instances/{instanceId}/sql-studio/databases/{database}/tables/{tableName}/schema HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The ID of the instance. |
ha-cn-pl32rf0**** |
| database |
string |
Yes |
The name of the database. |
general |
| tableName |
string |
Yes |
The name of the table. |
graph_index_summary_ |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The ID of the request. |
022F36C7-9FB4-5D67-BEBC-3D14B0984463 |
| result |
array<object> |
The result. |
|
|
object |
The result. |
||
| fieldName |
string |
The name of the field. |
id |
| fieldType |
string |
The type of the field. |
STRING |
| indexName |
string |
The name of the index. |
test_tusou_v2 |
| indexType |
string |
The type of the index. |
NUMBER |
| fieldTypeDetail |
object |
The details of the field type. |
FT_UINT64 |
Examples
Success response
JSON format
{
"requestId": "022F36C7-9FB4-5D67-BEBC-3D14B0984463",
"result": [
{
"fieldName": "id",
"fieldType": "STRING",
"indexName": "test_tusou_v2",
"indexType": "NUMBER",
"fieldTypeDetail": {
"test": "test",
"test2": 1
}
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.