milvus-logo

create_alias()

This method alters an alias of a collection to another.

Invocation

alter_alias(collection_name, alias, timeout=None, using='default')

Parameters

ParameterDescriptionTypeRequired
collection_nameName of the collection to alter alias to.StringTrue
aliasAlias to alter.StringTrue
timeoutAn optional duration of time in seconds to allow for the RPC. If it is set to None, the client keeps waiting until the server responds or error occurs.FloatFalse
usingMilvus connection used to alter the alias.StringFalse

Return

No return.

Raises

  • CollectionNotExistException: error if the collection does not exist.
  • BaseException: error if failed to alter the alias.