alterAlias()
This method change alias target to another collection.
Invocation
new milvusClient(MILUVS_ADDRESS).collectionManager.alterAlias(AlterAliasReq);
Parameters
AlterAliasReq(object)
Parameter | Description | Type | Required |
---|---|---|---|
collection_name | Target collection name | String | True |
Alias | Alias name | String | True |
timeout | An optional duration of time in millisecond to allow for the RPC. Default is undefined | Number | False |
Example
new milvusClient(MILUVS_ADDRESS).collectionManager.createAlias({
collection_name: "another_collection",
alias: "my_alias",
});
Return
// create collection return
{ error_code: 'Success', reason: '' }