RouterPeer
BGP information that must be configured into the routing stack to establish BGP peering. This information must specify the peer ASN and either the interface name, IP address, or peer IP address. Please refer to RFC4273.
To get more information about RouterBgpPeer, see:
- API documentation
- How-to Guides
Create a RouterPeer Resource
new RouterPeer(name: string, args: RouterPeerArgs, opts?: CustomResourceOptions);def RouterPeer(resource_name, opts=None, advertise_mode=None, advertised_groups=None, advertised_ip_ranges=None, advertised_route_priority=None, interface=None, name=None, peer_asn=None, peer_ip_address=None, project=None, region=None, router=None, __props__=None);func NewRouterPeer(ctx *Context, name string, args RouterPeerArgs, opts ...ResourceOption) (*RouterPeer, error)public RouterPeer(string name, RouterPeerArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RouterPeerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RouterPeerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouterPeerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
RouterPeer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The RouterPeer resource accepts the following input properties:
- Interface string
Name of the interface the BGP peer is associated with.
- Peer
Asn int Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.
- Peer
Ip stringAddress IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported.
- Router string
The name of the Cloud Router in which this BgpPeer will be configured.
- Advertise
Mode string User-specified flag to indicate which mode to use for advertisement. Valid values of this enum field are:
DEFAULT,CUSTOM- Advertised
Groups List<string> User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: *
ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. *ALL_VPC_SUBNETS: Advertises the router’s own VPC subnets. *ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router’s VPC network.- Advertised
Ip List<RouterRanges Peer Advertised Ip Range Args> User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertiseMode is
CUSTOMand is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. Structure is documented below.- Advertised
Route intPriority The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win.
- Name string
Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
Region where the router and BgpPeer reside. If it is not provided, the provider region is used.
- Interface string
Name of the interface the BGP peer is associated with.
- Peer
Asn int Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.
- Peer
Ip stringAddress IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported.
- Router string
The name of the Cloud Router in which this BgpPeer will be configured.
- Advertise
Mode string User-specified flag to indicate which mode to use for advertisement. Valid values of this enum field are:
DEFAULT,CUSTOM- Advertised
Groups []string User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: *
ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. *ALL_VPC_SUBNETS: Advertises the router’s own VPC subnets. *ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router’s VPC network.- Advertised
Ip []RouterRanges Peer Advertised Ip Range User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertiseMode is
CUSTOMand is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. Structure is documented below.- Advertised
Route intPriority The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win.
- Name string
Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
Region where the router and BgpPeer reside. If it is not provided, the provider region is used.
- interface string
Name of the interface the BGP peer is associated with.
- peer
Asn number Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.
- peer
Ip stringAddress IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported.
- router string
The name of the Cloud Router in which this BgpPeer will be configured.
- advertise
Mode string User-specified flag to indicate which mode to use for advertisement. Valid values of this enum field are:
DEFAULT,CUSTOM- advertised
Groups string[] User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: *
ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. *ALL_VPC_SUBNETS: Advertises the router’s own VPC subnets. *ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router’s VPC network.- advertised
Ip RouterRanges Peer Advertised Ip Range[] User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertiseMode is
CUSTOMand is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. Structure is documented below.- advertised
Route numberPriority The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win.
- name string
Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
Region where the router and BgpPeer reside. If it is not provided, the provider region is used.
- interface str
Name of the interface the BGP peer is associated with.
- peer_
asn float Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.
- peer_
ip_ straddress IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported.
- router str
The name of the Cloud Router in which this BgpPeer will be configured.
- advertise_
mode str User-specified flag to indicate which mode to use for advertisement. Valid values of this enum field are:
DEFAULT,CUSTOM- advertised_
groups List[str] User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: *
ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. *ALL_VPC_SUBNETS: Advertises the router’s own VPC subnets. *ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router’s VPC network.- advertised_
ip_ List[Routerranges Peer Advertised Ip Range] User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertiseMode is
CUSTOMand is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. Structure is documented below.- advertised_
route_ floatpriority The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win.
- name str
Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
Region where the router and BgpPeer reside. If it is not provided, the provider region is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the RouterPeer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.
- Management
Type string The resource that configures and manages this BGP peer. * ‘MANAGED_BY_USER’ is the default value and can be managed by you or other users * ‘MANAGED_BY_ATTACHMENT’ is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.
- Management
Type string The resource that configures and manages this BGP peer. * ‘MANAGED_BY_USER’ is the default value and can be managed by you or other users * ‘MANAGED_BY_ATTACHMENT’ is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.
- management
Type string The resource that configures and manages this BGP peer. * ‘MANAGED_BY_USER’ is the default value and can be managed by you or other users * ‘MANAGED_BY_ATTACHMENT’ is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.
- management_
type str The resource that configures and manages this BGP peer. * ‘MANAGED_BY_USER’ is the default value and can be managed by you or other users * ‘MANAGED_BY_ATTACHMENT’ is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted.
Look up an Existing RouterPeer Resource
Get an existing RouterPeer 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?: RouterPeerState, opts?: CustomResourceOptions): RouterPeerstatic get(resource_name, id, opts=None, advertise_mode=None, advertised_groups=None, advertised_ip_ranges=None, advertised_route_priority=None, interface=None, ip_address=None, management_type=None, name=None, peer_asn=None, peer_ip_address=None, project=None, region=None, router=None, __props__=None);func GetRouterPeer(ctx *Context, name string, id IDInput, state *RouterPeerState, opts ...ResourceOption) (*RouterPeer, error)public static RouterPeer Get(string name, Input<string> id, RouterPeerState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Advertise
Mode string User-specified flag to indicate which mode to use for advertisement. Valid values of this enum field are:
DEFAULT,CUSTOM- Advertised
Groups List<string> User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: *
ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. *ALL_VPC_SUBNETS: Advertises the router’s own VPC subnets. *ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router’s VPC network.- Advertised
Ip List<RouterRanges Peer Advertised Ip Range Args> User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertiseMode is
CUSTOMand is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. Structure is documented below.- Advertised
Route intPriority The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win.
- Interface string
Name of the interface the BGP peer is associated with.
- Ip
Address string IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.
- Management
Type string The resource that configures and manages this BGP peer. * ‘MANAGED_BY_USER’ is the default value and can be managed by you or other users * ‘MANAGED_BY_ATTACHMENT’ is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted.
- Name string
Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Peer
Asn int Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.
- Peer
Ip stringAddress IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
Region where the router and BgpPeer reside. If it is not provided, the provider region is used.
- Router string
The name of the Cloud Router in which this BgpPeer will be configured.
- Advertise
Mode string User-specified flag to indicate which mode to use for advertisement. Valid values of this enum field are:
DEFAULT,CUSTOM- Advertised
Groups []string User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: *
ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. *ALL_VPC_SUBNETS: Advertises the router’s own VPC subnets. *ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router’s VPC network.- Advertised
Ip []RouterRanges Peer Advertised Ip Range User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertiseMode is
CUSTOMand is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. Structure is documented below.- Advertised
Route intPriority The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win.
- Interface string
Name of the interface the BGP peer is associated with.
- Ip
Address string IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.
- Management
Type string The resource that configures and manages this BGP peer. * ‘MANAGED_BY_USER’ is the default value and can be managed by you or other users * ‘MANAGED_BY_ATTACHMENT’ is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted.
- Name string
Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- Peer
Asn int Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.
- Peer
Ip stringAddress IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Region string
Region where the router and BgpPeer reside. If it is not provided, the provider region is used.
- Router string
The name of the Cloud Router in which this BgpPeer will be configured.
- advertise
Mode string User-specified flag to indicate which mode to use for advertisement. Valid values of this enum field are:
DEFAULT,CUSTOM- advertised
Groups string[] User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: *
ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. *ALL_VPC_SUBNETS: Advertises the router’s own VPC subnets. *ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router’s VPC network.- advertised
Ip RouterRanges Peer Advertised Ip Range[] User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertiseMode is
CUSTOMand is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. Structure is documented below.- advertised
Route numberPriority The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win.
- interface string
Name of the interface the BGP peer is associated with.
- ip
Address string IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.
- management
Type string The resource that configures and manages this BGP peer. * ‘MANAGED_BY_USER’ is the default value and can be managed by you or other users * ‘MANAGED_BY_ATTACHMENT’ is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted.
- name string
Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- peer
Asn number Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.
- peer
Ip stringAddress IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region string
Region where the router and BgpPeer reside. If it is not provided, the provider region is used.
- router string
The name of the Cloud Router in which this BgpPeer will be configured.
- advertise_
mode str User-specified flag to indicate which mode to use for advertisement. Valid values of this enum field are:
DEFAULT,CUSTOM- advertised_
groups List[str] User-specified list of prefix groups to advertise in custom mode, which can take one of the following options: *
ALL_SUBNETS: Advertises all available subnets, including peer VPC subnets. *ALL_VPC_SUBNETS: Advertises the router’s own VPC subnets. *ALL_PEER_VPC_SUBNETS: Advertises peer subnets of the router’s VPC network.- advertised_
ip_ List[Routerranges Peer Advertised Ip Range] User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertiseMode is
CUSTOMand is advertised to all peers of the router. These IP ranges will be advertised in addition to any specified groups. Leave this field blank to advertise no custom IP ranges. Structure is documented below.- advertised_
route_ floatpriority The priority of routes advertised to this BGP peer. Where there is more than one matching route of maximum length, the routes with the lowest priority value win.
- interface str
Name of the interface the BGP peer is associated with.
- ip_
address str IP address of the interface inside Google Cloud Platform. Only IPv4 is supported.
- management_
type str The resource that configures and manages this BGP peer. * ‘MANAGED_BY_USER’ is the default value and can be managed by you or other users * ‘MANAGED_BY_ATTACHMENT’ is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted.
- name str
Name of this BGP peer. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression
a-z?which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.- peer_
asn float Peer BGP Autonomous System Number (ASN). Each BGP interface may use a different value.
- peer_
ip_ straddress IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- region str
Region where the router and BgpPeer reside. If it is not provided, the provider region is used.
- router str
The name of the Cloud Router in which this BgpPeer will be configured.
Supporting Types
RouterPeerAdvertisedIpRange
- Range string
The IP range to advertise. The value must be a CIDR-formatted string.
- Description string
User-specified description for the IP range.
- Range string
The IP range to advertise. The value must be a CIDR-formatted string.
- Description string
User-specified description for the IP range.
- range string
The IP range to advertise. The value must be a CIDR-formatted string.
- description string
User-specified description for the IP range.
- range str
The IP range to advertise. The value must be a CIDR-formatted string.
- description str
User-specified description for the IP range.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.