HPE Haven OnDemand: Powerful Data Connectors for the Cloud and Enterprise
HPE Haven OnDemand simplifies how you can interact with data, allowing it to be transformed into an asset anytime, anywhere. Find out how the Connector APIs can facilitate this interaction.
Start Connector API
The Start Connector API is used to start a previously created connector. The Start Connector API has only one required parameter, connector, which specifies the name of the connector to be started.
The token it returns is a unique identifier of the currently started connector.
With a connector created and started, the real power of HPE Haven OnDemand APIs can now be harnessed. The data contained within a connector, once indexed, can be used by the myriad Haven OnDemand APIs of all types and be extracted, manipulated, and processed in meaningful ways.
While examples of these endless possibilities are not covered in this article, please refer to the following for further information:
- Build Your Own Audio/Video Analytics App With HPE Haven OnDemand – Part 1
- Build Your Own Audio/Video Analytics App With HPE Haven OnDemand – Part 2
- HPE Haven OnDemand Text Extraction API Cheat Sheet for Developers
- Data Science and Cognitive Computing with HPE Haven OnDemand: The Simple Path to Reason and Insight
- HPE Haven OnDemand and Microsoft Azure Machine Learning: Power Tools for Developers and Data Scientists
Update Connector API
The Update Connector API is used to update the configuration of an existing connector. It functions similarly to the Create Connector API, with the obvious exception that the specified options are applied to an existing API. See the documentation for further information on this API.
Stop Connector API
The Stop Connector API requires one parameter, connector, used to specify the connector to stop.
The response of the above POST method cURL call is shown below:
And as easy as that, the connector has been stopped. In order to get rid of the connector, it must be deleted.
Delete Connector API
The Delete Connector is used to delete an existing connector. The following asynchronous POST method API call accomplishes the task of deleting myconnector:
The response confirms success:
Remember that delete means permanently, as in the connector cannot be reused at a later time.
A Dropbox Connector in Python
Now, let's change gears a little, and have a look at using the Haven OnDemand Python wrapper to create, start, and check the status of a dropbox connector.
The following Python code excerpt accomplishes the steps described above; check the comments for further information (note that a connector named myconnector already exists at this point as outlined in an earlier section).
As an extended example of the basic Dropbox use case outlined above, have a look at this much more thorough tutorial.
The HPE Haven OnDemand Connector APIs are a convenient way in which to move data onto the platform for further use with additional APIs. While one could, instead, specify particular files inside of API calls, in an API-dependent fashion, the benefit of using connectors is the persistence they afford the data, as well as their innate data indexing capabilities. When dealing repetitively with the same data, or when desiring to move large stores of data onto the Haven OnDemand platform for processing, the Connector APIs are definitely worth considering.
As always, be sure to keep to the HPE Haven OnDemand Developer Documentation handy when building with the Haven OnDemand APIs.
Top Stories Past 30 Days