1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. RouterInterface
Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi

gcp.compute.RouterInterface

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi

    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 of vpn_tunnel, interconnect_attachment or subnetwork, or both.


    InterconnectAttachment 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 or subnetwork can be specified.

    IpRange 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.

    PrivateIpAddress string

    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.

    RedundantInterface 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 or subnetwork can be specified.

    VpnTunnel 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 or subnetwork 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 of vpn_tunnel, interconnect_attachment or subnetwork, or both.


    InterconnectAttachment 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 or subnetwork can be specified.

    IpRange 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.

    PrivateIpAddress string

    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.

    RedundantInterface 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 or subnetwork can be specified.

    VpnTunnel 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 or subnetwork 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 of vpn_tunnel, interconnect_attachment or subnetwork, or both.


    interconnectAttachment 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 or subnetwork can be specified.

    ipRange 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.

    privateIpAddress String

    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.

    redundantInterface 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 or subnetwork can be specified.

    vpnTunnel 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 or subnetwork 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 of vpn_tunnel, interconnect_attachment or subnetwork, or both.


    interconnectAttachment 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 or subnetwork can be specified.

    ipRange 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.

    privateIpAddress string

    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.

    redundantInterface 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 or subnetwork can be specified.

    vpnTunnel 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 or subnetwork 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 of vpn_tunnel, interconnect_attachment or subnetwork, 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 or subnetwork 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_address str

    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 or subnetwork 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 or subnetwork 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 of vpn_tunnel, interconnect_attachment or subnetwork, or both.


    interconnectAttachment 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 or subnetwork can be specified.

    ipRange 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.

    privateIpAddress String

    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.

    redundantInterface 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 or subnetwork can be specified.

    vpnTunnel 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 or subnetwork 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.
    The following state arguments are supported:
    InterconnectAttachment 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 or subnetwork can be specified.

    IpRange 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.

    PrivateIpAddress string

    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.

    RedundantInterface 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 of vpn_tunnel, interconnect_attachment or subnetwork, 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 or subnetwork can be specified.

    VpnTunnel 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 or subnetwork can be specified.

    InterconnectAttachment 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 or subnetwork can be specified.

    IpRange 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.

    PrivateIpAddress string

    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.

    RedundantInterface 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 of vpn_tunnel, interconnect_attachment or subnetwork, 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 or subnetwork can be specified.

    VpnTunnel 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 or subnetwork can be specified.

    interconnectAttachment 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 or subnetwork can be specified.

    ipRange 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.

    privateIpAddress String

    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.

    redundantInterface 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 of vpn_tunnel, interconnect_attachment or subnetwork, 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 or subnetwork can be specified.

    vpnTunnel 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 or subnetwork can be specified.

    interconnectAttachment 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 or subnetwork can be specified.

    ipRange 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.

    privateIpAddress string

    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.

    redundantInterface 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 of vpn_tunnel, interconnect_attachment or subnetwork, 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 or subnetwork can be specified.

    vpnTunnel 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 or subnetwork 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 or subnetwork 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_address str

    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 of vpn_tunnel, interconnect_attachment or subnetwork, 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 or subnetwork 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 or subnetwork can be specified.

    interconnectAttachment 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 or subnetwork can be specified.

    ipRange 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.

    privateIpAddress String

    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.

    redundantInterface 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 of vpn_tunnel, interconnect_attachment or subnetwork, 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 or subnetwork can be specified.

    vpnTunnel 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 or subnetwork 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.

    gcp logo
    Google Cloud Classic v7.2.2 published on Monday, Jan 1, 0001 by Pulumi