All Products
Search
Document Center

Data Management:GetMetaTableDetailInfo

Last Updated:Oct 21, 2024

Queries the details of columns and indexes in a table.

Operation description

You can call this operation only for database instances whose control mode is Security Collaboration.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
TidlongNo

The ID of the tenant.

Note To view the ID of the tenant, move the pointer over the profile picture in the upper-right corner of the Data Management (DMS) console. For more information, see the View information about the current tenant section of the Manage DMS tenants topic.
123
TableGuidstringYes

The GUID of the table in Data Management (DMS).

Note
  • You can call the ListLogicTables operation with ReturnGuid set to true to query the GUIDs of logical tables in a specific logical database.

  • You can call the ListTables operation with ReturnGuid set to true to query the GUIDs of tables in a specific physical database.

IDB_L_9032.db-test.yuyang_test

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

E881CB2F-DE42-42E5-90EB-8B3173DCB9B9
DetailInfoobject

The details of the table.

IndexListarray<object>

The list of indexes.

Indexobject
IndexColumnsarray

The index column.

ColumnNamesstring

The fields in the index.

id
IndexNamestring

The name of the index.

PRIMARY
Uniqueboolean

Indicates whether the index is unique. Valid values:

  • true: The index is unique.
  • false: The index is not unique.
false
IndexTypestring

The type of the index. Examples: Primary, Unique, and Normal.

Primary
IndexIdstring

The ID of the index.

123
ColumnListarray<object>

The columns in the table.

Columnobject
ColumnNamestring

The name of the column.

id
Descriptionstring

The description of the column.

test
DataScaleinteger

The scale of the column.

0
DataPrecisioninteger

The precision of the field.

0
ColumnTypestring

The data type of the column. Examples: Bigint, Int, and Varchar.

bigint(20) unsigned
AutoIncrementboolean

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

  • true: The column is an auto-increment column.
  • false: The column is not an auto-increment column.
true
Positionstring

The position of the field in the table.

1
Nullableboolean

Indicates whether the column is nullable. Valid values:

  • true: The column is nullable.
  • false: The column is not nullable.
false
ColumnIdstring

The ID of the column.

191234849
DataLengthlong

The length of the field.

0
ErrorCodestring

The error code returned.

UnknownError
ErrorMessagestring

The error message returned.

UnknownError
Successboolean

Indicates whether the request was successful.

true

Examples

Sample success responses

JSONformat

{
  "RequestId": "E881CB2F-DE42-42E5-90EB-8B3173DCB9B9",
  "DetailInfo": {
    "IndexList": [
      {
        "IndexColumns": [
          "id"
        ],
        "IndexName": "PRIMARY",
        "Unique": false,
        "IndexType": "Primary",
        "IndexId": "123"
      }
    ],
    "ColumnList": [
      {
        "ColumnName": "id",
        "Description": "test",
        "DataScale": 0,
        "DataPrecision": 0,
        "ColumnType": "bigint(20) unsigned",
        "AutoIncrement": true,
        "Position": "1",
        "Nullable": false,
        "ColumnId": "191234849",
        "DataLength": 0
      }
    ]
  },
  "ErrorCode": "UnknownError",
  "ErrorMessage": "UnknownError",
  "Success": true
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history