showPartitions()
This method lists all the partitions in a specified collection.
Invocation
new milvusClient(MILUVS_ADDRESS).partitionManager.showPartitions(ShowPartitionsReq);
Parameters
ShowPartitionsReq
Parameter | Description | Type | Required |
---|---|---|---|
collection_name | Name of the collection to list all the partitions within | String | True |
Example
new milvusClient(MILUVS_ADDRESS).partitionManager.showPartitions({
collection_name: 'my_collection',
});
Return
{
status: { error_code: 'Success', reason: '' },
partition_names: [ '_default', 'my_partition' ],
partitionIDs: [ '434827144696954882', '434827353243779073' ],
created_timestamps: [ '434827144696954883', '434827353243779075' ],
created_utc_timestamps: [ '1658733919895', '1658734715438' ],
inMemory_percentages: []
}