Google Cloud - Router ID for BGP Monitoring


In google cloud, when we are trying to setup a filter for monitoring of BGP sessions, we ideally need to monitor on the ‘router ID’, which is a numerical value assigned to a cloud router.
However, it appears this value isn’t exported by terraform at this time?

An example of the router ID, as seen via the monitoring setup:

As you can see the bgp_peer_name, and the router ID are both shown, but I can’t find a way to reference this router ID via terraform.

Terraform does infact have a router ID exported, but this is a different ID, (totally different format) to the one used in monitoring.

  • id - an identifier for the resource with format projects/{{project}}/regions/{{region}}/routers/{{name}}

and no part of this even contains the router ID to allow extracting of it.

Is there anyway to get this router ID, or do I need to come up with a different method for monitoring these BGP sessions?