Describe Collection
Describes the details of a collection.
The base URL for this API is in the following format:
https://${CLUSTER_ENDPOINT}
- You need to fill in
${CLUSTER_ENDPOINT}
with that of your Zilliz Cloud cluster. - To get the endpoint, refer to On Zilliz Cloud Console or use the Describe Cluster V2 API to extract the values from the responses.
export CLUSTER_ENDPOINT=""
The authentication token should be an API key with appropriate privileges or a pair of colon-joined username and password, like username:password
.
The name of the collection to describe.
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"
}'
Response code.
Response payload, which carries detailed information about the specified collection.
A list aliases assigned to the collection.
An alias of the collection.
Whether the primary key of this collection automatically increments.
The ID assigned to the collection upon creation.
The name of the current collection.
The consistency level of the current collection.
The description of the collection.
Whether the reserved dynamic field named $meta is enabled to save non-schema-defined fields and their values in key-value pairs.
The collection fields in an array
A field object.
Whether this field automatically increments its value.
The description of the field.
The field ID.
The name of the current field.
Other field parameters.
A field parameter in a key-value pair
Field parameter name.
Field parameter value.
Whether this field serves as a partition key.
Whether this field serves as the primary key.
The data type of the field.
The created indexes in an array
A index object
The target field of this index.
The name of this index.
The metric type of this index.
The load status of the current collection.
The number of partitions in the collection.
Extra collection properties in an array.
A collection property object in a key-value pair.
The property name
The property value.
Returns an error message.
Response code.
Error message.
{
"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": []
}
}