メインコンテンツまでスキップ

Describe Collection (V2)

Describes the details of a collection.

POST
/v2/vectordb/collections/describe
Cluster Endpoint

The base URL for this API is in the following format:

https://${CLUSTER_ENDPOINT}

📘Notes
  • You need to fill in ${CLUSTER_ENDPOINT} with that of your Zilliz Cloud cluster.
  • To get the endpoint, use the Describe Cluster V2 API to extract the values from the responses.
export CLUSTER_ENDPOINT=""
Parameters
Authorizationstringheaderrequired

The authentication token should be an API key with appropriate privileges or a pair of colon-joined username and password, like username:password.

Example Value: Bearer {{TOKEN}}
Request Bodyapplication/json
dbNamestring

The name of the database which the collection belongs to. Setting this to a non-existing database results in an error.

collectionNamestringrequired

The name of the target collection. Setting this to a non-existing collection results in an error.

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"
}'
Responses200 - application/json
codeinteger

Response code.

Example Value: 0
dataobject

Response payload, which carries detailed information about the specified collection.

aliasesarray

A list aliases assigned to the collection.

[]aliasesstring

An alias of the collection.

autoIDboolean

Whether the primary key of this collection automatically increments.

collectionIDinteger<int64>

The ID assigned to the collection upon creation.

collectionNamestring

The name of the current collection.

consistencyLevelstring

The consistency level of the current collection.

descriptionstring

The description of the collection.

enableDynamicFieldboolean

Whether the reserved dynamic field named $meta is enabled to save non-schema-defined fields and their values in key-value pairs.

fieldsarray

The collection fields in an array

[]fieldsobject

A field object.

namestring

The name of the current field.

primaryKeyboolean

Indicates whether the current field is a primary key.

partitionKeyboolean

Indicates whether the current field is a partition key.

autoIdboolean

Indicates whether the current field is an auto-generated ID.

descriptionstring

The description of the current field.

nullableboolean

Indicates whether the current field allows null values.

defaultValuestring

The default value of the current field. This value is only available for fields that have a default value.

isFunctionOutputboolean

Indicates whether the current field is an derived field of a function. This value is only available for fields that are derived from a function.

typestring

The data type of the current field.

idstring

The unique identifier of the current field.

paramsobject

The parameters of the current field. This value is only available for fields that have parameters.

elementTypestring

The data type of the elements in the current field. This value is only available for fields that are arrays.

functionsarray

The collection functions in an array

[]functionsobject

A function object.

namestring

The name of the current function.

descriptionstring

The description of the current function.

typestring

The type of the current function.

idstring

The ID of the current function.

inputFieldNamesarray

The input field names of the current function.

[]inputFieldNamesstring

The name of an input field.

outputFieldNamesarray

The output field names of the current function.

[]outputFieldNamesstring

The name of an output field.

paramsobject

The parameters of the current function.

indexesarray

The created indexes in an array

[]indexesobject

An index object.

indexNamestring

The name of the current index.

fieldNamestring

The name of the field associated with the current index.

metricTypestring

The metric type of the current index.

loadstring

The load status of the current collection.

partitionNuminteger

The number of partitions in the collection.

propertiesarray

Extra collection properties in an array.

[]propertiesobject

A collection property object in a key-value pair.

keystring

The property name

valuestring

The property value.

Returns an error message.

codeinteger

Response code.

messagestring

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": []
}
}