メインコンテンツへスキップ
GET
/
indexes
List Indexes
curl --request GET \
  --url https://cloud.cdata.com/api/indexes \
  --header 'Authorization: Basic <encoded-value>'
{
  "results": [
    {
      "affectedRows": 123,
      "schema": [
        {
          "catalogName": "<string>",
          "columnLabel": "<string>",
          "columnName": "<string>",
          "dataType": 1,
          "dataTypeName": "<string>",
          "length": 123,
          "nullable": true,
          "ordinal": 123,
          "precision": 123,
          "scale": 123,
          "schemaName": "<string>",
          "tableName": "<string>"
        }
      ],
      "rows": [
        [
          "<unknown>"
        ]
      ]
    }
  ],
  "error": {
    "code": 0,
    "message": "<string>"
  }
}

承認

Authorization
string
header
必須

Basic Authentication with username and password. Use your PAT as the password. You can get your PAT from Connect AI by selecting Settings > Access Tokens.

クエリパラメータ

workspace
string

Restricts results to the specified workspace.

catalogName
string

Restricts results to the specified catalog.

schemaName
string

Restricts results to the specified schema.

tableName
string

Restricts results to the specified table.

indexName
string

Restricts results to the specified index.

unique
boolean

If true, only return unique indexes. If false, only return non-unique indexes. The default value is to return all indexes.

レスポンス

200 - application/json

OK

results
object[] | null
error
object