Domain name for API request: wedata.tencentcloudapi.com.
Query all column metadata of the table
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeColumnsMeta. |
Version | Yes | String | Common Params. The value used for this API: 2021-08-20. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
TableId | Yes | String | Table ID |
PageNumber | Yes | Integer | Page Number |
PageSize | Yes | Integer | Page Size |
FilterSet.N | No | Array of Filter | Filter |
OrderFieldSet.N | No | Array of OrderField | Sort Fields |
IsPartitionQuery | No | Boolean | Whether to Query Partition Field, Default false |
ComplianceId | No | Integer | Compliance Group ID |
Parameter Name | Type | Description |
---|---|---|
ColumnMetaSet | Array of ColumnMeta | Pagination return Note: This field may return null, indicating that no valid value can be obtained. |
TotalCount | Integer | Number of records |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
Failure
POST / HTTP/1.1
Host: wedata.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeColumnsMeta
<Common request parameters>
{
"TableId": "111",
"PageNumber": 1,
"PageSize": 1
}
{
"Response": {
"Error": {
"Code": "FailedOperation",
"Message": "DescribeColumnsMeta encountered an error, reason: MetaDataClient.describeColumnPageByTableName interface encountered an error."
},
"RequestId": "9eba5f8a-8cf5-4ce1-a557-b5d8e624a9b9"
}
}
Failure 2
POST / HTTP/1.1
Host: wedata.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeColumnsMeta
<Common request parameters>
{
"TableId": "1",
"PageNumber": 1,
"PageSize": 1
}
{
"Response": {
"Error": {
"Code": "FailedOperation",
"Message": "DescribeColumnsMeta encountered an error, reason: MetaDataClient.describeColumnPageByTableName interface encountered an error."
},
"RequestId": "964be7a0-7dde-4a2f-8a53-fa60524f87f8"
}
}
POST / HTTP/1.1
Host: wedata.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeColumnsMeta
<Common request parameters>
{
"TableId": "abc",
"PageNumber": 0,
"PageSize": 0,
"FilterSet": [
{
"Name": "abc",
"Values": [
"abc"
]
}
],
"OrderFieldSet": [
{
"Name": "abc",
"Direction": "abc"
}
],
"IsPartitionQuery": true,
"ComplianceId": 0
}
{
"Response": {
"ColumnMetaSet": [
{
"NameEn": "abc",
"NameCn": "abc",
"Type": "abc",
"Description": "abc",
"Position": 0,
"IsPartition": true,
"Name": "abc",
"ColumnFamiliesFieldSet": [
{
"Key": "abc",
"Value": "abc"
}
],
"DictionaryId": "abc",
"DictionaryName": "abc",
"LevelName": "abc",
"LevelRank": 0
}
],
"TotalCount": 0,
"RequestId": "abc"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
AuthFailure | CAM Signature/Authentication Error. |
AuthFailure.SignatureExpire | Not logged in or login has expired. |
FailedOperation | Operation Failure. |
InternalError | An internal error occurs. |
InvalidParameter | Parameter error. |
ResourceNotFound | The resource does not exist. |
本页内容是否解决了您的问题?