- SAP Cloud Platform Tutorial
- SAP Cloud Platform - Home
- SAP Cloud Platform - Introduction
- SAP Cloud Platform - Free Trial
- Service Description
- Checklist for Site Planning
- New Site Creation
- Site Design
- Site Themes
- Cloud Foundry Environment
- Creating New Instance
- Binding an Instance to Application
- Creating Service Key
- Publishing Site
- Other Site Activities
- Translating Site
- Transferring Sites
- Cloud Repositories
- Access Management
- Site Authors
- HTML App Development
- Backend System Connection
- Trial Limitations
- Developer Responsibilities
- SAP Cloud Platform Useful Resources
- SAP Cloud Platform - Quick Guide
- SAP Cloud Platform - Useful Resources
- SAP Cloud Platform - Discussion
Binding an Instance to Application
You can bind a service instance to an application using cockpit or command line interface. The binding of an instances to applications can be performed both at the application view or at service-instance view in Cloud cockpit.
To create a binding at service instance view, navigate to Services → Service Instances
Select Bind Instance in the Actions column for your service instance as shown below.
Select your application from drop down and you can also specify parameters in the JSON format or select a JSON file → Save.
To bind a service instance to an application using Cloud Foundry command line interface, use the following command −
cf bind-service APP-NAME SERVICE_INSTANCE {-c PARAMETERS_AS_JSON}
In the above command, you have to pass the following parameters −
APP_NAME − You need to pass the application name.
SERVICE_INSTANCE − You need to pass the service instance.
-c − You need to pass service-specific configuration parameters in a valid JSON object (OPTIONAL)