You can view columns.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:DescribeColumns |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
cc-2zeux3ua25242**** |
| SchemaName |
string |
Yes |
The name of the database. You can call the DescribeSchemas operation to query database names. |
database |
| TableName |
string |
Yes |
The name of the table. You can call the DescribeTables operation to query table names. |
table |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
66428721-FFEC-5023-B4E5-3BD1B67837E0 |
| Items |
object |
||
| Column |
array<object> |
The column information. |
|
|
object |
The column information. |
||
| Type |
string |
The column type. |
String |
| ColumnName |
string |
The column name. |
name |
| TableName |
string |
The table name. |
table |
| AutoIncrementColumn |
boolean |
Indicates whether the column is an auto-increment column. Valid values:
|
true |
| DBClusterId |
string |
The cluster ID. |
cc-2zeux3ua25242**** |
| PrimaryKey |
boolean |
Indicates whether the column is a primary key. Valid values:
|
true |
| SchemaName |
string |
The database name. |
database |
Examples
Success response
JSON format
{
"RequestId": "66428721-FFEC-5023-B4E5-3BD1B67837E0",
"Items": {
"Column": [
{
"Type": "String",
"ColumnName": "name",
"TableName": "table",
"AutoIncrementColumn": true,
"DBClusterId": "cc-2zeux3ua25242****",
"PrimaryKey": true,
"SchemaName": "database"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | An error occurred while processing your request. | An error occurred while processing your request. |
| 503 | ServiceUnavailable | An error occurred while processing your request. | An error occurred while processing your request. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.