All Products
Search
Document Center

ApsaraDB for ClickHouse:DescribeColumns

Last Updated:Jul 17, 2024

Queries information about columns.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DBClusterIdstringYes

The cluster ID.

cc-2zeux3ua25242****
SchemaNamestringYes

The database name. You can call the DescribeSchemas operation to query database names.

database
TableNamestringYes

The table name. You can call the DescribeTables operation to query table names.

table

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

66428721-FFEC-5023-B4E5-3BD1B67837E0
Itemsarray<object>

Details of the columns.

object
Typestring

The column type.

String
ColumnNamestring

The column name.

name
TableNamestring

The table name.

table
AutoIncrementColumnboolean

Indicates whether the column is an auto-increment column. Valid values:

  • true
  • false
true
DBClusterIdstring

The cluster ID.

cc-2zeux3ua25242****
PrimaryKeyboolean

Indicates whether the column is the primary key of the table. Valid values:

  • true
  • false
true
SchemaNamestring

The database name.

database

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
500InternalErrorAn error occurred while processing your request.An error occurred while processing your request.
503ServiceUnavailableAn error occurred while processing your request.An error occurred while processing your request.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history