To obtain a Milvus token, you concatenate your Milvus instance's username and password, separated by a colon (:
). This simple method generates the necessary token for authenticating your access to Milvus API endpoints.
Understanding Milvus Tokens for API Authentication
When you interact with Milvus via its API, a token serves as your primary method of authentication. This ensures that only authorized users can access and manage your vector database instance. Unlike complex cryptographic tokens, the Milvus token for API access is a straightforward combination of your existing login credentials.
Steps to Generate Your Milvus Token
The process for creating your Milvus token is simple and direct:
- Identify Your Milvus Credentials: Ensure you know the precise username and password you use to log into your Milvus instance.
- Concatenate with a Colon: Combine your username and password by placing a colon (
:
) between them.
Practical Example
Consider a common scenario where the default Milvus username is root
and the password is milvus
. To generate your Milvus token, you would simply combine these two pieces of information:
root:milvus
This resulting string (root:milvus
) is your Milvus token. You will use this token when making requests to Milvus API endpoints to authenticate your session and perform operations.