# Distributed Cloud Edge Network v1 API - Class RouterStatus.Types.BgpPeerStatus (1.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatus)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/1.5.0/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatus)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/1.4.0/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatus)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/1.3.0/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatus)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/1.2.0/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatus)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/1.1.0/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatus)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/1.0.0/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatus)

    public sealed class RouterStatus.Types.BgpPeerStatus : IMessage<RouterStatus.Types.BgpPeerStatus>, IEquatable<RouterStatus.Types.BgpPeerStatus>, IDeepCloneable<RouterStatus.Types.BgpPeerStatus>, IBufferMessage, IMessage

Reference documentation and code samples for the Distributed Cloud Edge Network v1 API class RouterStatus.Types.BgpPeerStatus.

Status of a BGP peer.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> RouterStatus.Types.BgpPeerStatus

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RouterStatus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types)[BgpPeerStatus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatus), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RouterStatus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types)[BgpPeerStatus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatus), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RouterStatus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types)[BgpPeerStatus](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatus), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.EdgeNetwork.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1)

## Assembly

Google.Cloud.EdgeNetwork.V1.dll

## Constructors

### BgpPeerStatus()

    public BgpPeerStatus()

### BgpPeerStatus(BgpPeerStatus)

    public BgpPeerStatus(RouterStatus.Types.BgpPeerStatus other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatushttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatus` |

## Properties

### IpAddress

    public string IpAddress { get; set; }

IP address of the local BGP interface.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Name

    public string Name { get; set; }

Name of this BGP peer. Unique within the Routers resource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PeerIpAddress

    public string PeerIpAddress { get; set; }

IP address of the remote BGP interface.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PrefixCounter

    public RouterStatus.Types.PrefixCounter PrefixCounter { get; set; }

A collection of counts for prefixes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatushttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.PrefixCounter` |   |

### State

    public string State { get; set; }

BGP state as specified in RFC1771.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Status

    public RouterStatus.Types.BgpPeerStatus.Types.BgpStatus Status { get; set; }

The current status of BGP.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatushttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatushttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatus.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.EdgeNetwork.V1/latest/Google.Cloud.EdgeNetwork.V1.RouterStatus.Types.BgpPeerStatus.Types.BgpStatus` |   |

### Uptime

    public string Uptime { get; set; }

Time this session has been up.
Format:
14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### UptimeSeconds

    public long UptimeSeconds { get; set; }

Time this session has been up, in seconds.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int64` |   |