Class GetDeviceBgpNeighbors
Inheritance
System.Object
GetDeviceBgpNeighbors
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Packet
Assembly: Pulumi.Packet.dll
Syntax
public static class GetDeviceBgpNeighbors
Methods
View SourceInvokeAsync(GetDeviceBgpNeighborsArgs, InvokeOptions)
Use this datasource to retrieve list of BGP neighbors of a device in the Packet host.
To have any BGP neighbors listed, the device must be in BGP-enabled project and have a BGP session assigned.
To learn more about using BGP in Packet, see the packet..BgpSession resource documentation.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Packet = Pulumi.Packet;
class MyStack : Stack
{
public MyStack()
{
var test = Output.Create(Packet.GetDeviceBgpNeighbors.InvokeAsync(new Packet.GetDeviceBgpNeighborsArgs
{
DeviceId = "4c641195-25e5-4c3c-b2b7-4cd7a42c7b40",
}));
this.BgpNeighborsListing = test.Apply(test => test.BgpNeighbors);
}
[Output("bgpNeighborsListing")]
public Output<string> BgpNeighborsListing { get; set; }
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetDeviceBgpNeighborsResult> InvokeAsync(GetDeviceBgpNeighborsArgs args, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetDeviceBgpNeighborsArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetDeviceBgpNeighborsResult> |