User manual for the DAM’s API
How to use it
2 minute read
In this section we provide insights on how to use the DAM’s user interface to performs some typical tasks.
Creating an agent from an existing image
All the Dataports images that you have at your local machine should be listed at the images table in the data access component:
As you can see you’ll only be able to create a publish-subscribe agent. Once you can see your image that you want to create an agent of you click at the Create Agent button and you’ll be able to see a modal dialog with some variables to be filled.
Some agents may not have any variables to be filled since these are configured at the dockerfile of the image.
At the moment you accept and the dialog is closed a new agent will be created and started. You can manage this agent at the instances tab, as well as check the log and delete it.
Download a new agent template using the wizard
If you want to develop your own agent you can download a template using the wizard. You just need to follow some steps to get developing.
First of all you need to select a data source since this will be where the data will be retrieved.
Once a data source is selected you’ll need to chose an agent type. The subscription type will send data to an orion context broker (the URL of which you’ll have to specify later) and the on demand type will send data to n specified callback URL.
Now you need to chose the desired data model
Finally the only thing left to do is to configure some properties depending on the type of agent and data source that you selected. You can also select the data model properties that you want to use.
The only thing left to do is to press the download button to download a zip with all the content you need to get developing.
User manual for the DAM’s web user interface