Basic skeleton to implement a service broker with openbrokerapi
Feature | Method |
---|---|
Register service broker | catalog |
Visible in marketplace | catalog |
Create service | provision |
Bind service | bind |
Unbind service | unbind |
Delete service | deprovision |
Support async creation or deletion | last_operation |
Support async bind or unbind | last_binding_operation and get_binding |
Retrievable instance | get_instance |
Retrievable binding | get_binding |
I recommend Pipenv for setup
pip install pipenv
pipenv install
# deploy
cf push --random-route
# register service broker in space
cf create-service-broker [broker name] [username] [password] [url] --space-scoped
Why is this not running out of the box? The implementation for a dummy service broker would generate too much example code. Because of this I just provide the skeleton of my service broker projects, without any further functionality.