create_collection
operation.
The following example creates a collection named example-collection
from an index named docs-example
:
describe_collection
operation. Specify the name of the collection to check. You can only call describe_collection
on a collection in the current project.
The describe_collection
operation returns an object containing key-value pairs representing the name of the collection, the size in bytes, and the creation status of the collection.
The following example gets the creation status and size of a collection named example-collection
.
list_collections
operation.
delete_collection
operation. Specify the name of the collection to delete.
Deleting the collection takes several minutes. During this time, the describe_collection
operation returns the status “deleting”.