data_henrik
data_henrik

Reputation: 17118

How do I add a service broker to Bluemix / Cloud Foundry?

I have a private service broker for Cloud Foundry / Bluemix as found, e.g., here on GitHub. When I try to register the broker using
cf create-service-broker brokername username password URI2Broker
I get the following error:

Creating service broker brokername as BluemixUser...
FAILED
Server error, status code: 403, error code: 10003, message: You are not authorized to perform the requested action

How can I use a private service broker with Bluemix or Cloud Foundry even if I am not an administrator?

Upvotes: 1

Views: 193

Answers (1)

data_henrik
data_henrik

Reputation: 17118

Cloud Foundry has two types of private brokers, standard private brokers and space-scoped private brokers. The latter can be registered even without administrator privileges and are only visible in the space they are registered in ("space-scoped"). You can use the following command:

cf create-service-broker brokername username password URI2Broker --space-scoped

There are some rules to follow, e.g., several identifiers need to be unique within the Cloud Foundry instance. You can find more information in this tutorial on registering private brokers which has links to samples and more documentation.

Upvotes: 2

Related Questions