Log in and obtain the Access Token for the object store-level APIs
Use CURL for Windows or Linux to log in to ObjectScale and use object store-level APIs.
About this task
ObjectScale uses a token-based authentication system for REST API calls.
This section provides examples of authenticating with the ObjectScale Management APIs. When you are authenticated by ObjectScale, the login API returns an authentication token. You can use this token for authentication in subsequent calls.
Steps
Assign the namespace where ObjectScale is installed to objectscaleNamespace
objectscaleNamespace=<OBJECTSCALE_NAMESPACE>
Assign the ObjectScale Gateway endpoint IP to OBJECTSCALE_GATEWAY_ENDPOINT.
All ObjectScale-level login and API request need to be made to the ObjectScale gateway loadbalancer endpoint.
OBJECTSCALE_GATEWAY_ENDPOINT=$(kubectl get svc -n $objectscaleNamespace| awk '/objectscale-gateway[^-]/{print $4}')
Log in with the username and password of an ObjectScale Management User.