Router
Represents a Router resource.
To get more information about Router, see:
- API documentation
- How-to Guides
Create a Router Resource
new Router(name: string, args: RouterArgs, opts?: CustomResourceOptions);def Router(resource_name, opts=None, bgp=None, description=None, name=None, network=None, project=None, region=None, __props__=None);func NewRouter(ctx *Context, name string, args RouterArgs, opts ...ResourceOption) (*Router, error)public Router(string name, RouterArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RouterArgs
- 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 RouterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Router Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Router resource accepts the following input properties:
- Network string
A reference to the network to which this router belongs.
- Bgp
Router
Bgp Args BGP information specific to this router. Structure is documented below.
- Description string
User-specified description for the IP range.
- Name string
Name of the resource. 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 resides.
- Network string
A reference to the network to which this router belongs.
- Bgp
Router
Bgp BGP information specific to this router. Structure is documented below.
- Description string
User-specified description for the IP range.
- Name string
Name of the resource. 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 resides.
- network string
A reference to the network to which this router belongs.
- bgp
Router
Bgp BGP information specific to this router. Structure is documented below.
- description string
User-specified description for the IP range.
- name string
Name of the resource. 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 resides.
- network str
A reference to the network to which this router belongs.
- bgp
Dict[Router
Bgp] BGP information specific to this router. Structure is documented below.
- description str
User-specified description for the IP range.
- name str
Name of the resource. 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 resides.
Outputs
All input properties are implicitly available as output properties. Additionally, the Router resource produces the following output properties:
Look up an Existing Router Resource
Get an existing Router 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?: RouterState, opts?: CustomResourceOptions): Routerstatic get(resource_name, id, opts=None, bgp=None, creation_timestamp=None, description=None, name=None, network=None, project=None, region=None, self_link=None, __props__=None);func GetRouter(ctx *Context, name string, id IDInput, state *RouterState, opts ...ResourceOption) (*Router, error)public static Router Get(string name, Input<string> id, RouterState? 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:
- Bgp
Router
Bgp Args BGP information specific to this router. Structure is documented below.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Description string
User-specified description for the IP range.
- Name string
Name of the resource. 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.- Network string
A reference to the network to which this router belongs.
- 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 resides.
- Self
Link string The URI of the created resource.
- Bgp
Router
Bgp BGP information specific to this router. Structure is documented below.
- Creation
Timestamp string Creation timestamp in RFC3339 text format.
- Description string
User-specified description for the IP range.
- Name string
Name of the resource. 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.- Network string
A reference to the network to which this router belongs.
- 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 resides.
- Self
Link string The URI of the created resource.
- bgp
Router
Bgp BGP information specific to this router. Structure is documented below.
- creation
Timestamp string Creation timestamp in RFC3339 text format.
- description string
User-specified description for the IP range.
- name string
Name of the resource. 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.- network string
A reference to the network to which this router belongs.
- 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 resides.
- self
Link string The URI of the created resource.
- bgp
Dict[Router
Bgp] BGP information specific to this router. Structure is documented below.
- creation_
timestamp str Creation timestamp in RFC3339 text format.
- description str
User-specified description for the IP range.
- name str
Name of the resource. 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.- network str
A reference to the network to which this router belongs.
- 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 resides.
- self_
link str The URI of the created resource.
Supporting Types
RouterBgp
- Asn int
Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN.
- Advertise
Mode string User-specified flag to indicate which mode to use for advertisement.
- Advertised
Groups List<string> User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertiseMode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. This enum field has the one valid value: ALL_SUBNETS
- Advertised
Ip List<RouterRanges Bgp 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 CUSTOM and 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.
- Asn int
Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN.
- Advertise
Mode string User-specified flag to indicate which mode to use for advertisement.
- Advertised
Groups []string User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertiseMode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. This enum field has the one valid value: ALL_SUBNETS
- Advertised
Ip []RouterRanges Bgp Advertised Ip Range User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertiseMode is CUSTOM and 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.
- asn number
Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN.
- advertise
Mode string User-specified flag to indicate which mode to use for advertisement.
- advertised
Groups string[] User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertiseMode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. This enum field has the one valid value: ALL_SUBNETS
- advertised
Ip RouterRanges Bgp Advertised Ip Range[] User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertiseMode is CUSTOM and 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.
- asn float
Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN.
- advertise_
mode str User-specified flag to indicate which mode to use for advertisement.
- advertised_
groups List[str] User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertiseMode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. This enum field has the one valid value: ALL_SUBNETS
- advertised_
ip_ List[Routerranges Bgp Advertised Ip Range] User-specified list of individual IP ranges to advertise in custom mode. This field can only be populated if advertiseMode is CUSTOM and 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.
RouterBgpAdvertisedIpRange
- 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.