Class BgpSession
Provides a resource to manage BGP sessions in Packet Host. Refer to Packet BGP documentation for more details.
You need to have BGP config enabled in your project.
BGP session must be linked to a device running BIRD or other BGP routing daemon which will control route advertisements via the session to Packet's upstream routers.
Inherited Members
Namespace: Pulumi.Packet
Assembly: Pulumi.Packet.dll
Syntax
public class BgpSession : CustomResource
Constructors
View SourceBgpSession(String, BgpSessionArgs, CustomResourceOptions)
Create a BgpSession resource with the given unique name, arguments, and options.
Declaration
public BgpSession(string name, BgpSessionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| BgpSessionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAddressFamily
ipv4 or ipv6
Declaration
public Output<string> AddressFamily { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DefaultRoute
Boolean flag to set the default route policy. False by default.
Declaration
public Output<bool?> DefaultRoute { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
DeviceId
ID of device
Declaration
public Output<string> DeviceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Status
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, BgpSessionState, CustomResourceOptions)
Get an existing BgpSession resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static BgpSession Get(string name, Input<string> id, BgpSessionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| BgpSessionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| BgpSession |