- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- RouterStatus
- BgpPeerStatus
- BgpStatus
- PrefixCounter
- Try it!
Get the diagnostics of a single router resource.
HTTP request
GET https://edgenetwork.googleapis.com/v1/{name=projects/*/locations/*/zones/*/routers/*}:diagnose
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The name of the router resource. |
Request body
The request body must be empty.
Response body
DiagnoseRouterResponse contains the current status for a specific router.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"updateTime": string,
"result": {
object ( |
Fields | |
---|---|
updateTime |
The time when the router status was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
result |
The network status of a specific router. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
RouterStatus
Describing the current status of a router.
JSON representation |
---|
{
"network": string,
"bgpPeerStatus": [
{
object ( |
Fields | |
---|---|
network |
The canonical name of the network to which this router belongs. |
bgpPeerStatus[] |
A list of BgpPeerStatus objects, describing all BGP peers related to this router. |
BgpPeerStatus
Status of a BGP peer.
JSON representation |
---|
{ "name": string, "ipAddress": string, "peerIpAddress": string, "status": enum ( |
Fields | |
---|---|
name |
Name of this BGP peer. Unique within the Routers resource. |
ipAddress |
IP address of the local BGP interface. |
peerIpAddress |
IP address of the remote BGP interface. |
status |
The current status of BGP. |
state |
BGP state as specified in RFC1771. |
uptime |
Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds |
uptimeSeconds |
Time this session has been up, in seconds. |
prefixCounter |
A collection of counts for prefixes. |
BgpStatus
Status of the BGP peer: {UP, DOWN}
Enums | |
---|---|
UNKNOWN |
The default status indicating BGP session is in unknown state. |
UP |
The UP status indicating BGP session is established. |
DOWN |
The DOWN state indicating BGP session is not established yet. |
PrefixCounter
PrefixCounter contains a collection of prefixes related counts.
JSON representation |
---|
{ "advertised": string, "denied": string, "received": string, "sent": string, "suppressed": string, "withdrawn": string } |
Fields | |
---|---|
advertised |
Number of prefixes advertised. |
denied |
Number of prefixes denied. |
received |
Number of prefixes received. |
sent |
Number of prefixes sent. |
suppressed |
Number of prefixes suppressed. |
withdrawn |
Number of prefixes withdrawn. |