Use the Cloud Foundry Command Line Interface to make a user-provided service instance available to Cloud Foundry applications.
-
Download and install the cf CLI and log on to Cloud Foundry. For more information, see Download and Install the Cloud Foundry Command Line Interface and Log On to the Cloud Foundry Environment Using the Cloud Foundry Command Line Interface.
-
Obtain a URL, port, user name, and password for communicating with a service that is not available in the marketplace.
For more informaton on user-provided service instances, see https://docs.cloudfoundry.org/devguide/services/user-provided.html.
Open a command line and enter the following string to create a user-provided service instance:
cf create-user-provided-service SERVICE_INSTANCE [-p CREDENTIALS]
Specify the following parameters:
-
SERVICE_INSTANCE: The new name for your service instance. -
CREDENTIALS: Credentials as JSON
To bind your application to the user-provided service instance, follow the steps described in Bind Service Instances to Applications Using the Cloud Foundry Command Line Interface.
Related Information