equinix.networkedge.Bgp
Explore with Pulumi AI
Resource equinix.networkedge.Bgp
allows creation and management of Equinix Network
Edge BGP peering configurations.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Equinix = Pulumi.Equinix;
return await Deployment.RunAsync(() =>
{
var bgp = new Equinix.NetworkEdge.Bgp("bgp", new()
{
ConnectionId = "54014acf-9730-4b55-a791-459283d05fb1",
LocalIpAddress = "10.1.1.1/30",
LocalAsn = 12345,
RemoteIpAddress = "10.1.1.2",
RemoteAsn = 66123,
AuthenticationKey = "secret",
});
return new Dictionary<string, object?>
{
["state"] = bgp.State,
["provisioningStatus"] = bgp.ProvisioningStatus,
};
});
package main
import (
"github.com/equinix/pulumi-equinix/sdk/go/equinix/networkedge"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
bgp, err := networkedge.NewBgp(ctx, "bgp", &networkedge.BgpArgs{
ConnectionId: pulumi.String("54014acf-9730-4b55-a791-459283d05fb1"),
LocalIpAddress: pulumi.String("10.1.1.1/30"),
LocalAsn: pulumi.Int(12345),
RemoteIpAddress: pulumi.String("10.1.1.2"),
RemoteAsn: pulumi.Int(66123),
AuthenticationKey: pulumi.String("secret"),
})
if err != nil {
return err
}
ctx.Export("state", bgp.State)
ctx.Export("provisioningStatus", bgp.ProvisioningStatus)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.equinix.pulumi.networkedge.Bgp;
import com.equinix.pulumi.networkedge.BgpArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var bgp = new Bgp("bgp", BgpArgs.builder()
.connectionId("54014acf-9730-4b55-a791-459283d05fb1")
.localIpAddress("10.1.1.1/30")
.localAsn(12345)
.remoteIpAddress("10.1.1.2")
.remoteAsn(66123)
.authenticationKey("secret")
.build());
ctx.export("state", bgp.state());
ctx.export("provisioningStatus", bgp.provisioningStatus());
}
}
import pulumi
import pulumi_equinix as equinix
bgp = equinix.networkedge.Bgp("bgp",
connection_id="54014acf-9730-4b55-a791-459283d05fb1",
local_ip_address="10.1.1.1/30",
local_asn=12345,
remote_ip_address="10.1.1.2",
remote_asn=66123,
authentication_key="secret")
pulumi.export("state", bgp.state)
pulumi.export("provisioningStatus", bgp.provisioning_status)
import * as pulumi from "@pulumi/pulumi";
import * as equinix from "@equinix-labs/pulumi-equinix";
const bgp = new equinix.networkedge.Bgp("bgp", {
connectionId: "54014acf-9730-4b55-a791-459283d05fb1",
localIpAddress: "10.1.1.1/30",
localAsn: 12345,
remoteIpAddress: "10.1.1.2",
remoteAsn: 66123,
authenticationKey: "secret",
});
export const state = bgp.state;
export const provisioningStatus = bgp.provisioningStatus;
resources:
bgp:
type: equinix:networkedge:Bgp
properties:
connectionId: 54014acf-9730-4b55-a791-459283d05fb1
localIpAddress: 10.1.1.1/30
localAsn: 12345
remoteIpAddress: 10.1.1.2
remoteAsn: 66123
authenticationKey: secret
outputs:
state: ${bgp.state}
provisioningStatus: ${bgp.provisioningStatus}
Create Bgp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Bgp(name: string, args: BgpArgs, opts?: CustomResourceOptions);
@overload
def Bgp(resource_name: str,
args: BgpArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Bgp(resource_name: str,
opts: Optional[ResourceOptions] = None,
connection_id: Optional[str] = None,
local_asn: Optional[int] = None,
local_ip_address: Optional[str] = None,
remote_asn: Optional[int] = None,
remote_ip_address: Optional[str] = None,
authentication_key: Optional[str] = None)
func NewBgp(ctx *Context, name string, args BgpArgs, opts ...ResourceOption) (*Bgp, error)
public Bgp(string name, BgpArgs args, CustomResourceOptions? opts = null)
type: equinix:networkedge:Bgp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BgpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BgpArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BgpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BgpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BgpArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var bgpResource = new Equinix.NetworkEdge.Bgp("bgpResource", new()
{
ConnectionId = "string",
LocalAsn = 0,
LocalIpAddress = "string",
RemoteAsn = 0,
RemoteIpAddress = "string",
AuthenticationKey = "string",
});
example, err := networkedge.NewBgp(ctx, "bgpResource", &networkedge.BgpArgs{
ConnectionId: pulumi.String("string"),
LocalAsn: pulumi.Int(0),
LocalIpAddress: pulumi.String("string"),
RemoteAsn: pulumi.Int(0),
RemoteIpAddress: pulumi.String("string"),
AuthenticationKey: pulumi.String("string"),
})
var bgpResource = new Bgp("bgpResource", BgpArgs.builder()
.connectionId("string")
.localAsn(0)
.localIpAddress("string")
.remoteAsn(0)
.remoteIpAddress("string")
.authenticationKey("string")
.build());
bgp_resource = equinix.networkedge.Bgp("bgpResource",
connection_id="string",
local_asn=0,
local_ip_address="string",
remote_asn=0,
remote_ip_address="string",
authentication_key="string")
const bgpResource = new equinix.networkedge.Bgp("bgpResource", {
connectionId: "string",
localAsn: 0,
localIpAddress: "string",
remoteAsn: 0,
remoteIpAddress: "string",
authenticationKey: "string",
});
type: equinix:networkedge:Bgp
properties:
authenticationKey: string
connectionId: string
localAsn: 0
localIpAddress: string
remoteAsn: 0
remoteIpAddress: string
Bgp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Bgp resource accepts the following input properties:
- Connection
Id string - identifier of a connection established between. network device and remote service provider that will be used for peering.
- Local
Asn int - Local ASN number.
- Local
Ip stringAddress - IP address in CIDR format of a local device.
- Remote
Asn int - Remote ASN number.
- Remote
Ip stringAddress - IP address of remote peer.
- Authentication
Key string - shared key used for BGP peer authentication.
- Connection
Id string - identifier of a connection established between. network device and remote service provider that will be used for peering.
- Local
Asn int - Local ASN number.
- Local
Ip stringAddress - IP address in CIDR format of a local device.
- Remote
Asn int - Remote ASN number.
- Remote
Ip stringAddress - IP address of remote peer.
- Authentication
Key string - shared key used for BGP peer authentication.
- connection
Id String - identifier of a connection established between. network device and remote service provider that will be used for peering.
- local
Asn Integer - Local ASN number.
- local
Ip StringAddress - IP address in CIDR format of a local device.
- remote
Asn Integer - Remote ASN number.
- remote
Ip StringAddress - IP address of remote peer.
- authentication
Key String - shared key used for BGP peer authentication.
- connection
Id string - identifier of a connection established between. network device and remote service provider that will be used for peering.
- local
Asn number - Local ASN number.
- local
Ip stringAddress - IP address in CIDR format of a local device.
- remote
Asn number - Remote ASN number.
- remote
Ip stringAddress - IP address of remote peer.
- authentication
Key string - shared key used for BGP peer authentication.
- connection_
id str - identifier of a connection established between. network device and remote service provider that will be used for peering.
- local_
asn int - Local ASN number.
- local_
ip_ straddress - IP address in CIDR format of a local device.
- remote_
asn int - Remote ASN number.
- remote_
ip_ straddress - IP address of remote peer.
- authentication_
key str - shared key used for BGP peer authentication.
- connection
Id String - identifier of a connection established between. network device and remote service provider that will be used for peering.
- local
Asn Number - Local ASN number.
- local
Ip StringAddress - IP address in CIDR format of a local device.
- remote
Asn Number - Remote ASN number.
- remote
Ip StringAddress - IP address of remote peer.
- authentication
Key String - shared key used for BGP peer authentication.
Outputs
All input properties are implicitly available as output properties. Additionally, the Bgp resource produces the following output properties:
- Device
Id string - unique identifier of a network device that is a local peer in a given BGP peering configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
Status string - BGP peering configuration provisioning status, one of
PROVISIONING
,PENDING_UPDATE
,PROVISIONED
,FAILED
. - State string
- BGP peer state, one of
Idle
,Connect
,Active
,OpenSent
,OpenConfirm
,Established
. - Uuid string
- BGP peering configuration unique identifier.
- Device
Id string - unique identifier of a network device that is a local peer in a given BGP peering configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
Status string - BGP peering configuration provisioning status, one of
PROVISIONING
,PENDING_UPDATE
,PROVISIONED
,FAILED
. - State string
- BGP peer state, one of
Idle
,Connect
,Active
,OpenSent
,OpenConfirm
,Established
. - Uuid string
- BGP peering configuration unique identifier.
- device
Id String - unique identifier of a network device that is a local peer in a given BGP peering configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
Status String - BGP peering configuration provisioning status, one of
PROVISIONING
,PENDING_UPDATE
,PROVISIONED
,FAILED
. - state String
- BGP peer state, one of
Idle
,Connect
,Active
,OpenSent
,OpenConfirm
,Established
. - uuid String
- BGP peering configuration unique identifier.
- device
Id string - unique identifier of a network device that is a local peer in a given BGP peering configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- provisioning
Status string - BGP peering configuration provisioning status, one of
PROVISIONING
,PENDING_UPDATE
,PROVISIONED
,FAILED
. - state string
- BGP peer state, one of
Idle
,Connect
,Active
,OpenSent
,OpenConfirm
,Established
. - uuid string
- BGP peering configuration unique identifier.
- device_
id str - unique identifier of a network device that is a local peer in a given BGP peering configuration.
- id str
- The provider-assigned unique ID for this managed resource.
- provisioning_
status str - BGP peering configuration provisioning status, one of
PROVISIONING
,PENDING_UPDATE
,PROVISIONED
,FAILED
. - state str
- BGP peer state, one of
Idle
,Connect
,Active
,OpenSent
,OpenConfirm
,Established
. - uuid str
- BGP peering configuration unique identifier.
- device
Id String - unique identifier of a network device that is a local peer in a given BGP peering configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
Status String - BGP peering configuration provisioning status, one of
PROVISIONING
,PENDING_UPDATE
,PROVISIONED
,FAILED
. - state String
- BGP peer state, one of
Idle
,Connect
,Active
,OpenSent
,OpenConfirm
,Established
. - uuid String
- BGP peering configuration unique identifier.
Look up Existing Bgp Resource
Get an existing Bgp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BgpState, opts?: CustomResourceOptions): Bgp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authentication_key: Optional[str] = None,
connection_id: Optional[str] = None,
device_id: Optional[str] = None,
local_asn: Optional[int] = None,
local_ip_address: Optional[str] = None,
provisioning_status: Optional[str] = None,
remote_asn: Optional[int] = None,
remote_ip_address: Optional[str] = None,
state: Optional[str] = None,
uuid: Optional[str] = None) -> Bgp
func GetBgp(ctx *Context, name string, id IDInput, state *BgpState, opts ...ResourceOption) (*Bgp, error)
public static Bgp Get(string name, Input<string> id, BgpState? state, CustomResourceOptions? opts = null)
public static Bgp get(String name, Output<String> id, BgpState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Authentication
Key string - shared key used for BGP peer authentication.
- Connection
Id string - identifier of a connection established between. network device and remote service provider that will be used for peering.
- Device
Id string - unique identifier of a network device that is a local peer in a given BGP peering configuration.
- Local
Asn int - Local ASN number.
- Local
Ip stringAddress - IP address in CIDR format of a local device.
- Provisioning
Status string - BGP peering configuration provisioning status, one of
PROVISIONING
,PENDING_UPDATE
,PROVISIONED
,FAILED
. - Remote
Asn int - Remote ASN number.
- Remote
Ip stringAddress - IP address of remote peer.
- State string
- BGP peer state, one of
Idle
,Connect
,Active
,OpenSent
,OpenConfirm
,Established
. - Uuid string
- BGP peering configuration unique identifier.
- Authentication
Key string - shared key used for BGP peer authentication.
- Connection
Id string - identifier of a connection established between. network device and remote service provider that will be used for peering.
- Device
Id string - unique identifier of a network device that is a local peer in a given BGP peering configuration.
- Local
Asn int - Local ASN number.
- Local
Ip stringAddress - IP address in CIDR format of a local device.
- Provisioning
Status string - BGP peering configuration provisioning status, one of
PROVISIONING
,PENDING_UPDATE
,PROVISIONED
,FAILED
. - Remote
Asn int - Remote ASN number.
- Remote
Ip stringAddress - IP address of remote peer.
- State string
- BGP peer state, one of
Idle
,Connect
,Active
,OpenSent
,OpenConfirm
,Established
. - Uuid string
- BGP peering configuration unique identifier.
- authentication
Key String - shared key used for BGP peer authentication.
- connection
Id String - identifier of a connection established between. network device and remote service provider that will be used for peering.
- device
Id String - unique identifier of a network device that is a local peer in a given BGP peering configuration.
- local
Asn Integer - Local ASN number.
- local
Ip StringAddress - IP address in CIDR format of a local device.
- provisioning
Status String - BGP peering configuration provisioning status, one of
PROVISIONING
,PENDING_UPDATE
,PROVISIONED
,FAILED
. - remote
Asn Integer - Remote ASN number.
- remote
Ip StringAddress - IP address of remote peer.
- state String
- BGP peer state, one of
Idle
,Connect
,Active
,OpenSent
,OpenConfirm
,Established
. - uuid String
- BGP peering configuration unique identifier.
- authentication
Key string - shared key used for BGP peer authentication.
- connection
Id string - identifier of a connection established between. network device and remote service provider that will be used for peering.
- device
Id string - unique identifier of a network device that is a local peer in a given BGP peering configuration.
- local
Asn number - Local ASN number.
- local
Ip stringAddress - IP address in CIDR format of a local device.
- provisioning
Status string - BGP peering configuration provisioning status, one of
PROVISIONING
,PENDING_UPDATE
,PROVISIONED
,FAILED
. - remote
Asn number - Remote ASN number.
- remote
Ip stringAddress - IP address of remote peer.
- state string
- BGP peer state, one of
Idle
,Connect
,Active
,OpenSent
,OpenConfirm
,Established
. - uuid string
- BGP peering configuration unique identifier.
- authentication_
key str - shared key used for BGP peer authentication.
- connection_
id str - identifier of a connection established between. network device and remote service provider that will be used for peering.
- device_
id str - unique identifier of a network device that is a local peer in a given BGP peering configuration.
- local_
asn int - Local ASN number.
- local_
ip_ straddress - IP address in CIDR format of a local device.
- provisioning_
status str - BGP peering configuration provisioning status, one of
PROVISIONING
,PENDING_UPDATE
,PROVISIONED
,FAILED
. - remote_
asn int - Remote ASN number.
- remote_
ip_ straddress - IP address of remote peer.
- state str
- BGP peer state, one of
Idle
,Connect
,Active
,OpenSent
,OpenConfirm
,Established
. - uuid str
- BGP peering configuration unique identifier.
- authentication
Key String - shared key used for BGP peer authentication.
- connection
Id String - identifier of a connection established between. network device and remote service provider that will be used for peering.
- device
Id String - unique identifier of a network device that is a local peer in a given BGP peering configuration.
- local
Asn Number - Local ASN number.
- local
Ip StringAddress - IP address in CIDR format of a local device.
- provisioning
Status String - BGP peering configuration provisioning status, one of
PROVISIONING
,PENDING_UPDATE
,PROVISIONED
,FAILED
. - remote
Asn Number - Remote ASN number.
- remote
Ip StringAddress - IP address of remote peer.
- state String
- BGP peer state, one of
Idle
,Connect
,Active
,OpenSent
,OpenConfirm
,Established
. - uuid String
- BGP peering configuration unique identifier.
Package Details
- Repository
- equinix equinix/pulumi-equinix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
equinix
Terraform Provider.