Service Instance Sharing
Pivotal Web Services End of Availability Announced
For more information, see Frequently Asked Questions.
Spring Cloud Services supports Cloud Foundry service instance sharing. See the below sections for steps to share and unshare a Spring Cloud Services service instance across orgs and spaces.
Sharing a Service Instance
To share an existing Spring Cloud Services service instance, run the cf share-service
command. Provide the service instance name, the space with which to share the service instance, and the org with which to share the service instance (if the space is not in the currently-targeted org).
To share a Service Registry service instance named service-registry
with the john
space in the current org, run:
$ cf share-service service-registry -s john
To share a Service Registry service instance named service-registry
with the charles
space in the development
org, run:
$ cf share-service service-registry -o development -s charles
Unsharing a Service Instance
To unshare a Spring Cloud Services service instance from a space with which it has been shared, run the cf unshare-service
command. Provide the service instance name, the space with which the service instance should no longer be shared, and the org of that space (if different from the current org).
To stop sharing a Service Registry service instance named service-registry
with the john
space in the current org, run:
$ cf unshare-service service-registry -s john
To stop sharing a Service Registry service instance named service-registry
with the charles
space in the development
org, run:
$ cf unshare-service service-registry -o development -s charles
For more information about service instance sharing, see Sharing Service Instances in the Cloud Foundry documentation.