调用ListIndexes返回表索引信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListIndexes |
系统规定参数。取值:ListIndexes。 |
Logic | Boolean | 是 | false |
是否逻辑表。 |
TableId | String | 是 | 1 |
表ID。 |
Tid | Long | 是 | 0 |
租户ID。 说明 取自系统右上角头像处悬停展示的租户ID信息,详情请参见查看租户信息。
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
ErrorCode | String | UnknownError |
错误码。 |
ErrorMessage | String | UnknownError |
错误信息。 |
IndexList | Array of Index |
索引详情列表。 |
|
Index | |||
IndexComment | String | test |
索引描述 |
IndexId | String | 1 |
索引ID |
IndexName | String | idx_test |
索引名称 |
IndexType | String | Primary |
索引类型,取值如下:
|
TableId | String | 1 |
表ID |
RequestId | String | 1F4DE2F1-5B47-462A-A973-E02EB7AF386B |
请求ID。 |
Success | Boolean | true |
请求是否成功。 |
示例
请求示例
http(s)://[Endpoint]/?Action=ListIndexes
&Logic=false
&TableId=1
&Tid=0
&<公共请求参数>
正常返回示例
XML
格式
<RequestId>1F4DE2F1-5B47-462A-A973-E02EB7AF386B</RequestId>
<IndexList>
<Index>
<IndexComment/>
<IndexType>Primary</IndexType>
<IndexName>PRIMARY</IndexName>
<IndexId>49331416</IndexId>
<TableId>18396274</TableId>
</Index>
</IndexList>
<Success>true</Success>
JSON
格式
{
"RequestId": "1F4DE2F1-5B47-462A-A973-E02EB7AF386B",
"IndexList": {
"Index": [
{
"IndexComment": "",
"IndexType": "Primary",
"IndexName": "PRIMARY",
"IndexId": 49331416,
"TableId": 18396274
}
]
},
"Success": true
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交