gcp.compute.RouterInterface
Explore with Pulumi AI
Manages a Cloud Router interface. For more information see the official documentation and API.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var foobar = new Gcp.Compute.RouterInterface("foobar", new()
{
IpRange = "169.254.1.1/30",
Region = "us-central1",
Router = "router-1",
VpnTunnel = "tunnel-1",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewRouterInterface(ctx, "foobar", &compute.RouterInterfaceArgs{
IpRange: pulumi.String("169.254.1.1/30"),
Region: pulumi.String("us-central1"),
Router: pulumi.String("router-1"),
VpnTunnel: pulumi.String("tunnel-1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.RouterInterface;
import com.pulumi.gcp.compute.RouterInterfaceArgs;
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 foobar = new RouterInterface("foobar", RouterInterfaceArgs.builder()
.ipRange("169.254.1.1/30")
.region("us-central1")
.router("router-1")
.vpnTunnel("tunnel-1")
.build());
}
}
import pulumi
import pulumi_gcp as gcp
foobar = gcp.compute.RouterInterface("foobar",
ip_range="169.254.1.1/30",
region="us-central1",
router="router-1",
vpn_tunnel="tunnel-1")
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const foobar = new gcp.compute.RouterInterface("foobar", {
ipRange: "169.254.1.1/30",
region: "us-central1",
router: "router-1",
vpnTunnel: "tunnel-1",
});
resources:
foobar:
type: gcp:compute:RouterInterface
properties:
ipRange: 169.254.1.1/30
region: us-central1
router: router-1
vpnTunnel: tunnel-1
Create RouterInterface Resource
new RouterInterface(name: string, args: RouterInterfaceArgs, opts?: CustomResourceOptions);
@overload
def RouterInterface(resource_name: str,
opts: Optional[ResourceOptions] = None,
interconnect_attachment: Optional[str] = None,
ip_range: Optional[str] = None,
name: Optional[str] = None,
private_ip_address: Optional[str] = None,
project: Optional[str] = None,
redundant_interface: Optional[str] = None,
region: Optional[str] = None,
router: Optional[str] = None,
subnetwork: Optional[str] = None,
vpn_tunnel: Optional[str] = None)
@overload
def RouterInterface(resource_name: str,
args: RouterInterfaceArgs,
opts: Optional[ResourceOptions] = None)
func NewRouterInterface(ctx *Context, name string, args RouterInterfaceArgs, opts ...ResourceOption) (*RouterInterface, error)
public RouterInterface(string name, RouterInterfaceArgs args, CustomResourceOptions? opts = null)
public RouterInterface(String name, RouterInterfaceArgs args)
public RouterInterface(String name, RouterInterfaceArgs args, CustomResourceOptions options)
type: gcp:compute:RouterInterface
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouterInterfaceArgs
- 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 RouterInterfaceArgs
- 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 RouterInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouterInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouterInterfaceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RouterInterface 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 RouterInterface resource accepts the following input properties:
- Router string
The name of the router this interface will be attached to. Changing this forces a new interface to be created.
In addition to the above required fields, a router interface must have specified either
ip_range
or exactly one ofvpn_tunnel
,interconnect_attachment
orsubnetwork
, or both.- Interconnect
Attachment string The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- Ip
Range string IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
- Name string
A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
- Private
Ip stringAddress The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.
- Project string
The ID of the project in which this interface's routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.
- Redundant
Interface string The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
- Region string
The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.
- Subnetwork string
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- Vpn
Tunnel string The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.
- Router string
The name of the router this interface will be attached to. Changing this forces a new interface to be created.
In addition to the above required fields, a router interface must have specified either
ip_range
or exactly one ofvpn_tunnel
,interconnect_attachment
orsubnetwork
, or both.- Interconnect
Attachment string The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- Ip
Range string IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
- Name string
A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
- Private
Ip stringAddress The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.
- Project string
The ID of the project in which this interface's routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.
- Redundant
Interface string The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
- Region string
The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.
- Subnetwork string
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- Vpn
Tunnel string The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.
- router String
The name of the router this interface will be attached to. Changing this forces a new interface to be created.
In addition to the above required fields, a router interface must have specified either
ip_range
or exactly one ofvpn_tunnel
,interconnect_attachment
orsubnetwork
, or both.- interconnect
Attachment String The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- ip
Range String IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
- name String
A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
- private
Ip StringAddress The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.
- project String
The ID of the project in which this interface's routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.
- redundant
Interface String The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
- region String
The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.
- subnetwork String
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- vpn
Tunnel String The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.
- router string
The name of the router this interface will be attached to. Changing this forces a new interface to be created.
In addition to the above required fields, a router interface must have specified either
ip_range
or exactly one ofvpn_tunnel
,interconnect_attachment
orsubnetwork
, or both.- interconnect
Attachment string The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- ip
Range string IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
- name string
A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
- private
Ip stringAddress The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.
- project string
The ID of the project in which this interface's routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.
- redundant
Interface string The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
- region string
The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.
- subnetwork string
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- vpn
Tunnel string The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.
- router str
The name of the router this interface will be attached to. Changing this forces a new interface to be created.
In addition to the above required fields, a router interface must have specified either
ip_range
or exactly one ofvpn_tunnel
,interconnect_attachment
orsubnetwork
, or both.- interconnect_
attachment str The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- ip_
range str IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
- name str
A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
- private_
ip_ straddress The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.
- project str
The ID of the project in which this interface's routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.
- redundant_
interface str The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
- region str
The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.
- subnetwork str
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- vpn_
tunnel str The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.
- router String
The name of the router this interface will be attached to. Changing this forces a new interface to be created.
In addition to the above required fields, a router interface must have specified either
ip_range
or exactly one ofvpn_tunnel
,interconnect_attachment
orsubnetwork
, or both.- interconnect
Attachment String The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- ip
Range String IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
- name String
A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
- private
Ip StringAddress The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.
- project String
The ID of the project in which this interface's routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.
- redundant
Interface String The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
- region String
The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.
- subnetwork String
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- vpn
Tunnel String The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the RouterInterface resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing RouterInterface Resource
Get an existing RouterInterface 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?: RouterInterfaceState, opts?: CustomResourceOptions): RouterInterface
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
interconnect_attachment: Optional[str] = None,
ip_range: Optional[str] = None,
name: Optional[str] = None,
private_ip_address: Optional[str] = None,
project: Optional[str] = None,
redundant_interface: Optional[str] = None,
region: Optional[str] = None,
router: Optional[str] = None,
subnetwork: Optional[str] = None,
vpn_tunnel: Optional[str] = None) -> RouterInterface
func GetRouterInterface(ctx *Context, name string, id IDInput, state *RouterInterfaceState, opts ...ResourceOption) (*RouterInterface, error)
public static RouterInterface Get(string name, Input<string> id, RouterInterfaceState? state, CustomResourceOptions? opts = null)
public static RouterInterface get(String name, Output<String> id, RouterInterfaceState 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.
- Interconnect
Attachment string The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- Ip
Range string IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
- Name string
A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
- Private
Ip stringAddress The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.
- Project string
The ID of the project in which this interface's routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.
- Redundant
Interface string The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
- Region string
The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.
- Router string
The name of the router this interface will be attached to. Changing this forces a new interface to be created.
In addition to the above required fields, a router interface must have specified either
ip_range
or exactly one ofvpn_tunnel
,interconnect_attachment
orsubnetwork
, or both.- Subnetwork string
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- Vpn
Tunnel string The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.
- Interconnect
Attachment string The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- Ip
Range string IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
- Name string
A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
- Private
Ip stringAddress The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.
- Project string
The ID of the project in which this interface's routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.
- Redundant
Interface string The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
- Region string
The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.
- Router string
The name of the router this interface will be attached to. Changing this forces a new interface to be created.
In addition to the above required fields, a router interface must have specified either
ip_range
or exactly one ofvpn_tunnel
,interconnect_attachment
orsubnetwork
, or both.- Subnetwork string
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- Vpn
Tunnel string The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.
- interconnect
Attachment String The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- ip
Range String IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
- name String
A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
- private
Ip StringAddress The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.
- project String
The ID of the project in which this interface's routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.
- redundant
Interface String The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
- region String
The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.
- router String
The name of the router this interface will be attached to. Changing this forces a new interface to be created.
In addition to the above required fields, a router interface must have specified either
ip_range
or exactly one ofvpn_tunnel
,interconnect_attachment
orsubnetwork
, or both.- subnetwork String
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- vpn
Tunnel String The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.
- interconnect
Attachment string The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- ip
Range string IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
- name string
A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
- private
Ip stringAddress The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.
- project string
The ID of the project in which this interface's routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.
- redundant
Interface string The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
- region string
The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.
- router string
The name of the router this interface will be attached to. Changing this forces a new interface to be created.
In addition to the above required fields, a router interface must have specified either
ip_range
or exactly one ofvpn_tunnel
,interconnect_attachment
orsubnetwork
, or both.- subnetwork string
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- vpn
Tunnel string The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.
- interconnect_
attachment str The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- ip_
range str IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
- name str
A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
- private_
ip_ straddress The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.
- project str
The ID of the project in which this interface's routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.
- redundant_
interface str The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
- region str
The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.
- router str
The name of the router this interface will be attached to. Changing this forces a new interface to be created.
In addition to the above required fields, a router interface must have specified either
ip_range
or exactly one ofvpn_tunnel
,interconnect_attachment
orsubnetwork
, or both.- subnetwork str
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- vpn_
tunnel str The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.
- interconnect
Attachment String The name or resource link to the VLAN interconnect for this interface. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- ip
Range String IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. Changing this forces a new interface to be created.
- name String
A unique name for the interface, required by GCE. Changing this forces a new interface to be created.
- private
Ip StringAddress The regional private internal IP address that is used to establish BGP sessions to a VM instance acting as a third-party Router Appliance. Changing this forces a new interface to be created.
- project String
The ID of the project in which this interface's routerbelongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.
- redundant
Interface String The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.
- region String
The region this interface's router sits in. If not specified, the project region will be used. Changing this forces a new interface to be created.
- router String
The name of the router this interface will be attached to. Changing this forces a new interface to be created.
In addition to the above required fields, a router interface must have specified either
ip_range
or exactly one ofvpn_tunnel
,interconnect_attachment
orsubnetwork
, or both.- subnetwork String
The URI of the subnetwork resource that this interface belongs to, which must be in the same region as the Cloud Router. When you establish a BGP session to a VM instance using this interface, the VM instance must belong to the same subnetwork as the subnetwork specified here. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.- vpn
Tunnel String The name or resource link to the VPN tunnel this interface will be linked to. Changing this forces a new interface to be created. Only one of
vpn_tunnel
,interconnect_attachment
orsubnetwork
can be specified.
Import
Router interfaces can be imported using the project
(optional), region
, router
, and name
, e.g. * {{project_id}}/{{region}}/{{router}}/{{name}}
* {{region}}/{{router}}/{{name}}
In Terraform v1.5.0 and later, use an import
block to import router interfaces using one of the formats above. For exampletf import {
id = “{{project_id}}/{{region}}/{{router}}/{{name}}”
to = google_compute_router_interface.default }
$ pulumi import gcp:compute/routerInterface:RouterInterface When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), router interfaces can be imported using one of the formats above. For example
$ pulumi import gcp:compute/routerInterface:RouterInterface default {{project_id}}/{{region}}/{{router}}/{{name}}
$ pulumi import gcp:compute/routerInterface:RouterInterface default {{region}}/{{router}}/{{name}}
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.