Product Documentation

Fusion Direct

Type of Data

Custom Data Feed

Description

Fusion Direct enables the customer to post data to the ITM portal API, which then makes its way to the Fusion feed and is available to Openmix apps. The Openmix app is then responsible for parsing the data and applying any desired rules for DNS/HTTP routing. There is no frequency associated with this feed, because customers can post data to ITM portal endpoint (/v2/actions/fusion/custom.json/{platformId}) however many times they want.

The ITM portal endpoint is a generic endpoint that allows customers to post any kind of relevant JSON data that they want to make available to the app server. It is available for customers to post updates with no restrictions (it is completely freeform) except that the data they post needs to be a valid JSON.

Note: The customer’s data feed must be under 10K in size or Fusion will reject it. This is currently a hard limit imposed by the infrastructure app servers.

Setup in Fusion

You can access Fusion data feeds from the left navigation pane, under Openmix. For initial steps please refer to the Fusion Integration Documentation.

When you get to the service-specific configuration dialog box, enter the following:

  • Name: The name given to the data feed (optional). This will default to Service - Platform Name if not specified.
  • Platform: The Platform that is associated with the data feed.

Fusion Setup

Once the setup in Fusion is complete, you will receive a confirmation message saying that the data feed has been successfully created.

Fusion Setup

When you click Done, it will be listed on the Fusion data feeds home page with an orange status until valid JSON data is posted to the endpoint.

To post data to the ITM Portal API using a curl command, do the following:

Step 1: Retrieve the Oauth Key

Curl Request


\mbp:~$ curl -k -d 'client_id=<client-id>' -d 'client_secret=<secret>' -d 'grant_type=client_credentials' https://portal.cedexis.com/api/oauth/token

Response


{"value":"<secret-token>", "expiration":null, "tokenType":"bearer", "refreshToken":null,"scope":[], "additionalInformation":{}, "access_token":"<secret-token>", "token_type":"bearer","expires_in":0,"expiresIn":0,"expired":false}

Step 2 : Post Data

Curl Request


\mbp:~$ curl -k -H 'Authorization: Bearer <secret-token>' -H 'Content-Type: application/json' https://portal.cedexis.com/api/v2/actions/fusion/custom.json/<platform-id> -d '{"name":"some value value","id":"application id2", "other":"more stuff"}'

Response


{

"status": "OK"

}

When you receive the response as OK, you will see that the Fusion Feed is in green status which means that it has some data posted in it.

Edit

To edit a Fusion data feed click on the data feed in the list and then click the Edit button. Once you have changed the configuration, click Save. This will bring you back to the data feed list with your changes saved and applied to the data feed.

Fusion Direct