This small flow triggers sets up an API endpoint which can be called from external system to get an access token to Insights Hubs' Integrated Data Lake.
- Integrated Data Lake
- Import the flow in Visual Flow Creator
- Specify the API endpoint where the access token should be accessed via, e.g.
/getAccessTokenForIDL
in the HTTP-IN node (blue) - In the function node configure Access Token specify
- Path inside your Integrated Data Lake where the access should be granted to (
path
) - Duration - how long should the token be valid (
durationSeconds
) - Permission to allow read or delete access to the path (
permission
) in the data lake for your files
- Path inside your Integrated Data Lake where the access should be granted to (
- Save the flow
☁️ ✔️ You're ready ... - enjoy!
The function delivers the body for the API request against the /api/datalake/v3/generateAccessToken
endpoint. From here, the Access Token is provided and feedback to the user via the http
-Node
Once the API endpoint is accessed, the user is presented with a JSON response containing the Access Token for IDL.
This can then be used in native S3-Tools to be worked with and connect to the IDL:
In this example, calling the full API endpoint https://presiot-visualflowcreatorhttp.eu1.mindsphere.io/public/presiot/getAccessTokenForIDL?key=1a03090a3cc44d56c57d5cd7d545899219523b5127079317fcc2c637b3a0cab23cc1fcadce75196b36f761428e6ee80dacc64e4349928b23a2cf8e0e6495b897 results in a JSON response like shown below.