Re: Need Help. How to register custom routes to gorouter

Shannon Coen

I'll echo the Integration team's question. For what use cases do you want
to register routes directly, rather than through the Cloud Controller API
or cf CLI?

The Routing API Mark mentioned also currently requires a heartbeat.

Shannon Coen
Product Manager, Cloud Foundry
Pivotal, Inc.

On Fri, Sep 4, 2015 at 1:52 PM, CF Runtime <cfruntime(a)> wrote:

Hi Lakshman,

We are wondering why you would like to add routes to the gorouter?
Unfortunately there is not any way to add these untill the routing api
becomes part of the official release. The NATS workaround you are trying to
use requires the route to be published on a heartbeat interval.

CF OSS Release Integration Team

On Fri, Sep 4, 2015 at 7:29 AM, Mark St.Godard <markstgodard(a)>

The new routing-api and routing-api-cli allow you to register /
unregister routes

You will need to ensure you are also deploying routing-api with cf-release

Routing API

Routing API CLI


On Fri, Sep 4, 2015 at 7:53 AM, James Bayer <jbayer(a)> wrote:

which cf-release are you using?

newer versions support an http api for trusted components to register
routes. shannon is the PM for the routing team and can explain more and
perhaps point to documentation.

note there is an example of mysql registering a route with the previous
approach in a bosh release here:

On Thu, Sep 3, 2015 at 4:20 PM, Lakshman Mukkamalla (lmukkama) <
lmukkama(a)> wrote:

Hi cf devs,
I want to register some custom routes to the gorouter component of
cloud foundry. What I understood was that this could be achieved by
nats-pub command but when I try this command on the gorouter VM it was not
recognized. Can anyone help me how to register custom routes to gorouter.
What worked:
curl -vvv "
This gives me the current routes that are registered.

*What did not work:*
nats-pub 'router.register' 'some custom route'
Is there a rest call to register the custom routes?

It would be of great help if someone can guide me on how to achieve the


Thank you,

James Bayer

Join { to automatically receive all group messages.