Skip to Content

Create a Service Instance and Bind It to Your App

Create an instance of the Application Logging service and bind it to your app, as a way to explore how services and apps are connected on the SAP BTP, Cloud Foundry runtime.
You will learn
  • How apps and services are related
  • How to bind a service to an app
qmacroDJ AdamsJune 13, 2022
Created by
qmacro
September 14, 2018
Contributors
qmacro
jmmargo
thecodester

In SAP BTP, Cloud Foundry runtime there are apps and there are services. In many cases, apps are what you write, and services are what are available for your app to make use of.

The Application Logging service enables the central capture and analysis of log messages from applications that are bound to it. You can manage the availability of services, and the instances thereof, in the SAP BTP cockpit.

  • Step 1

    In the SAP BTP cockpit, navigate to the page for your app, as you learned to do in the Deploy an App to SAP Cloud BTP, Cloud Foundry runtime tutorial.

    Choose Service Bindings in the navigation area.

    Screenshot of Service Bindings area
  • Step 2
    1. Choose Bind Service.

      Button Bind Service
    2. Choose Service from the catalog and choose Next.

      Service wizard
    3. Choose the Application Logging tile and choose Next.

      Application Logging tile
    4. Choose the Create new instance option, select a service plan from the Plan field, and then choose Next.

      Service Plan for Application Logging
    5. Skip specifying parameters by choosing Next.

      Parameters
    6. Enter a name for the service instance and choose Finish.

      Instance name

    The binding is created and added to the list of service bindings:

    Screenshot of list of service bindings after creation

    In the text area below, enter the name of the service used in the service bindings of your application. HINT: The name appears in the Service column in the list of service bindings.

  • Step 3
    1. In the navigation area of the cockpit, choose Overview.

    2. Choose Restart to restart your application.

      Restart button
    3. In the Application Routes section, choose the URL to open the application.

    A new tab opens that displays the app information.

    CF application information

    In the app, you can see the additional information about the service binding.

Back to top