spring-cloud / spring-cloud-open-service-broker

Spring Cloud project for creating service brokers that conform to the Open Server Broker API specification
https://spring.io/projects/spring-cloud-open-service-broker
Apache License 2.0
168 stars 118 forks source link

Allow the platform to supply Service ID and Plan ID as hints when retrieving a service binding or a service instance #287

Closed ghost closed 3 years ago

ghost commented 4 years ago

as per OSB API spec getting a service instance is supposed to allow the use of "service_id" and "plan_id" to give brokers a hint as to the context of the UUID they are being asked to fetch:

see here

Spring OSB does not seem to support this, neither getServiceInstance in ServiceInstanceController or the GetServiceInstanceRequest object support these query parameters.

This would be useful if your broker served multiple catalog items/service definitions and your service instance ID does not indicate which offering it represents, and you are storing each of your service definitions in a different back-end store leading to having to search each in turn to see if the UUID matches.

royclarkson commented 4 years ago

Thanks for the feedback. That feature is new since v2.15 of the spec, which is what the latest release of Spring Cloud Open Service Broker supports. We'll be adding support for v2.16 in an upcoming release.

royclarkson commented 4 years ago

Let's keep it open to track the OSBAPI 2.16 update.