Pivotal + VMware: Transforming how more of the world builds software

User Provided Data Source Services

User Provided Data Source Services

If your application connects to Database, then you can create user provided service to DB and bind the app to this service

***NOTE: Please make sure that Database user Password do not have special characters like /, $, @*

Create Oracle service and bind to the application

cf create-user-provided-service <my-oracle-db> -p '{"credentials": {"uri": "oracle://$username:$password@$hostname:$port/$name"}}'
cf bind-service <app-name> <my-oracle-db>
cf restage <app-name>

Create MySQL service and bind to the application

cf create-user-provided-service <my-mysql-db> -p '{"credentials": {"uri": "mysql://$username:$password@$hostname:$port/$name"}}'
cf bind-service <app-name> <my-mysql-db>
cf restage <app-name>

Create DB2 service and bind to the application

cf create-user-provided-service <my-db2-db> -p '{"credentials": {"uri": "db2://$username:$password@$hostname:$port/$name"}}'
cf bind-service <app-name> <my-db2-db>
cf restage <app-name>

Create SQL Server service and bind to the application

cf create-user-provided-service <my-sqlserver-db> -p '{"credentials": {"uri": "sqlserver://$username:$password@$hostname:$port/$name"}}'
cf bind-service <app-name> <my-sqlserver-db>
cf restage <app-name>

Create MongoDB service and bind to the application

cf create-user-provided-service <my-mongo-db> -p '{"credentials": {"uri": "mongodb://$username:$password@$hostname:$port/$db"}}'
cf bind-service <app-name> <my-mongo-db>
cf restage <app-name>

References

お問い合わせ