Queries the schema information about a data source.
Operation description
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /openapi/ha3/instances/{instanceId}/data-sources/{dataSourceName}/schemas
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
instanceId | string | Yes | The instance ID. | ha-cn-zvp2s4l8f02 |
dataSourceName | string | Yes | The name of the data source. | ha-cn-2r42ostoc01_ecom_table_test |
Response parameters
Sample responses
Success responses
{
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result":[
{
"summary": false,
"custom": false,
"addIndex": false,
"type": "INT64",
"name": "id",
"attribute": false,
"primaryKey": {
"hasPrimaryKeyAttribute": false,
"primaryKeySorted": false,
"primaryKey": false
}
},
{
"summary": false,
"custom": false,
"addIndex": false,
"type": "STRING",
"name": "fb_boolean",
"attribute": false,
"primaryKey": {
"hasPrimaryKeyAttribute": false,
"primaryKeySorted": false,
"primaryKey": false
}
}
]
}
Examples
Sample success responses
JSON
format
{
"requestId": "022F36C7-9FB4-5D67-BEBC-3D14B0984463",
"result": [
{
"name": "test",
"custom": false,
"type": "STRING",
"attribute": false,
"summary": false,
"primaryKey": {
"isPrimaryKey": false,
"hasPrimaryKeyAttribute": false,
"isPrimaryKeySorted": false
},
"addIndex": false
}
]
}
Error codes
For a list of error codes, visit the Service error codes.