查看 Collection 详情 (V2)
Describes the details of a collection.
该 API 的 Base URL 格式如下:
https://${CLUSTER_ENDPOINT}
- 你需要填入您的 Zilliz Cloud 集群的
${CLUSTER_ENDPOINT}。 - 您可以使用 查看集群详情 V2 来获取集群的 Endpoint.
export CLUSTER_ENDPOINT=""
认证令牌,应为具备适当权限的 API 密钥或用冒号分隔的用户名和密码,如 username:password。
Database 名称。
Collection 名称。
export TOKEN="db_admin:xxxxxxxxxxxxx"
curl --request POST \
--url "${CLUSTER_ENDPOINT}/v2/vectordb/collections/describe" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"collectionName": "test_collection"
}'
响应码。
响应负载,包含了指定 Collection 的详细信息。
已分配给 Collection 的别名列表。
Collection 的别名。
当前 Collection 的主键是否自动增长。
创建当前 Collection 时分配的 ID。
当前 Collection 的名称。
当前 Collection 的一致性级别。
当前 Collection 的描述。
是否已启用保留的动态字段,用于以键值对的形式存放 Schema 中未定义的字段。
当前 Collection 的字段列表。
A field object.
当前字段的名称。
指示当前字段是否为主键。
指示当前字段是否为 Partition Key。
指示当前字段是否为自动生成的 ID。
当前字段的描述。
指示当前字段是否允许空值。
当前字段的默认值。当前值仅在字段有默认值时可用。
指示当前字段是否为函数的派生字段。当前值仅在字段是从函数派生时可用。
当前字段的数据类型。
当前字段的唯一标识符。
当前字段的参数。当前值仅在字段有参数时可用。
当前字段中元素的数据类型。当前值仅在字段为 Array 时可用。
当前 Collection 的函数列表。
A function object.
当前 Function 的名称。
当前 Function 的描述。
当前 Function 的类型。
当前 Function 的 ID。
当前 Function 的输入字段名称。
输入字段的名称。
当前 Function 的输出字段名称。
输出字段的名称。
当前 Function 的参数。
索引列表。
An index object.
当前索引的名称。
与当前索引关联的字段名称。
当前索引的度量类型。
当前 Collection 的载入状态。
当前 Collection 的 Partition 数量。
当前 Collection 的额外属性。
A collection property object in a key-value pair.
属性名称。
属性取值。
返回错误消息。
响应码。
错误描述。
{
"code": 0,
"data": {
"aliases": [],
"autoId": false,
"collectionID": 448707763883002000,
"collectionName": "test_collection",
"consistencyLevel": "Bounded",
"description": "",
"enableDynamicField": true,
"fields": [
{
"autoId": false,
"description": "",
"id": 100,
"name": "id",
"partitionKey": false,
"primaryKey": true,
"type": "Int64"
},
{
"autoId": false,
"description": "",
"id": 101,
"name": "vector",
"params": [
{
"key": "dim",
"value": "5"
}
],
"partitionKey": false,
"primaryKey": false,
"type": "FloatVector"
}
],
"indexes": [
{
"fieldName": "vector",
"indexName": "vector",
"metricType": "COSINE"
}
],
"load": "LoadStateLoaded",
"partitionsNum": 1,
"properties": []
}
}