Binding an instance of the Analytics Framework service to your application

After a new service instance is created, we need to bind it to the asset application we built earlier in the section, Building an app to read time series data.

To do this, run the following commands from the console:

cf bind-service assets predix-analytics-framework-service-instancecf restage assets cf env assets

In the response shown here, you will see the important environment variables (for instance, execution_uri, zone_oauth_scope) we will need in the subsequent subsection:

{ "VCAP_SERVICES": {  "predix-analytics-framework": [   {    "credentials": {     "catalog_uri": "https://predix-analytics-catalog-release.run.aws-usw02-pr.ice.predix.io", "execution_uri": "https://predix-analytics-execution-release.run.aws-usw02-pr.ice.predix.io", ...

Get Industrial Internet Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.