Authentication
The Milvus REST API uses Bearer token authentication.
Getting Your Token
Milvus supports token-based authentication when configured with authorizationEnabled set to true in the server configuration. The default root credentials are root:Milvus.
You can obtain a token by using the root credentials or a user-specific token provided by your Milvus deployment.
Using the SDK
1 2 3 4 | |
Custom Base URL
If your Milvus instance is running on a custom host or port, you can specify the base URL:
1 2 3 4 | |
Environment Variables
For integration tests and CI/CD pipelines, set the API key via environment variable:
1 | |
1 2 3 4 5 6 | |