Creating New Data Hub Instances for Backoffice Data Hub Cockpit
To use Backoffice Data Hub Cockpit, define the Data Hub instances you wish to connect to. You can define new instances either with the Backoffice Administration Cockpit, or the SAP Commerce Cloud Administration Console and ImpEx.
Defining Data Hub instances allows Backoffice REST clients to connect to those instances. The Backoffice Data Hub Cockpit supports multiple Data Hub instances. However, Backoffice Data Hub Cockpit does not support separate Basic Authentication credentials for each instance. All instances must use the same security profile and settings.
Using Backoffice to Add Data Hub Instances
In the Backoffice Administration Cockpit, Data Hub instances are Types called DataHubInstanceModel. New DataHubInstanceModel types are created using the menu in the Backoffice Administration perspective.
For a complete walkthrough of the process for creating new Data Hub instances in Backoffice, see Tutorial: Create a New Data Hub Instance.
Using the SAP Commerce Cloud Administration Console and ImpEx Import to Add New Data Hub Instances
To create new instances using ImpEx, first log into the SAP Commerce Cloud Administration Console at https://localhost:9002 or your equivalent. Enter the following INSERT_UPDATE statement, and a line for each instance you want to create, into an ImpEx file. You can also enter them directly into the Import ImpEx field on the Import page.
INSERT_UPDATE DataHubInstanceModel;instanceName[unique = true];instanceLocation ;localhost1;https://localhost:8443/datahub-webapp/v1; ;localhost2;https://localhost:9797/datahub-webapp/v1;
- On the second line of the code snippet, localhost1 is the name you want to assign to your Data Hub instance. This name would, of course, change to whatever hostname you wanted.
- The port address must also match the port on the server where Data Hub is listening.
Nothing else about the INSERT_UPDATE statement should change.
Once you have imported this ImpEx, log into the Backoffice Data Hub Cockpit. You should see your newly defined instances when you click the drop-down instances menu. If there is an issue resolving the instance you just created, it appears as grayed out with a red x in the instance list.
- An incorrect URL.
- The Data Hub server instance is not currently running.

