milvus-logo

alterAlias()

This method change alias target to another collection.

Invocation

new milvusClient(MILUVS_ADDRESS).collectionManager.alterAlias(AlterAliasReq);

Parameters

AlterAliasReq(object)

ParameterDescriptionTypeRequired
collection_nameTarget collection nameStringTrue
AliasAlias nameStringTrue
timeoutAn optional duration of time in millisecond to allow for the RPC. Default is undefinedNumberFalse

Example

new milvusClient(MILUVS_ADDRESS).collectionManager.createAlias({
  collection_name: "another_collection",
  alias: "my_alias",
});

Return

// create collection return
{ error_code: 'Success', reason: '' }