I would like to use the BlueData API to programmatically manage by BlueData installation.
I have seen some documentation here - it appears that I need to start off with Fetching a session but I would expect to create a session before I can fetch it.
How do I create a session and use that in subsequent operations?
Introduction
The API docs listed in the question don't show the API call for creating a session. Instructions for creating a session can, however, be found here, but I'm also adding the details in this answer in case the link goes away.
Note that you can browse the full BlueData API docs if you have a running BlueData installation:
Anyway, the steps to create a session and use the session in a subsequent call such as Retrieve all tenants are listed below:
Create Session
Write the login.json file:
Set the controller IP:
You can then submit a login request:
Returns
Set the SESSION ID:
SESSION_ID=/api/v1/session/df1bfacb-xxxx-xxxx-xxxx-c8f57d8f3c71Use Session to get a list of Tenants
Use the SESSION ID in a subsequent call, e.g.
This example for me returns:
See also: