Show / Hide Table of Contents

Class RouterInterface

Manages a Cloud Router interface. For more information see the official documentation and API.

Example Usage

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var foobar = new Gcp.Compute.RouterInterface("foobar", new Gcp.Compute.RouterInterfaceArgs
    {
        IpRange = "169.254.1.1/30",
        Region = "us-central1",
        Router = "router-1",
        VpnTunnel = "tunnel-1",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
RouterInterface
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public class RouterInterface : CustomResource

Constructors

View Source

RouterInterface(String, RouterInterfaceArgs, CustomResourceOptions)

Create a RouterInterface resource with the given unique name, arguments, and options.

Declaration
public RouterInterface(string name, RouterInterfaceArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

RouterInterfaceArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

InterconnectAttachment

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 and interconnect_attachment can be specified.

Declaration
public Output<string> InterconnectAttachment { get; }
Property Value
Type Description
Output<System.String>
View Source

IpRange

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.

Declaration
public Output<string> IpRange { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

A unique name for the interface, required by GCE. Changing this forces a new interface to be created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Project

The ID of the project in which this interface's router belongs. If it is not provided, the provider project is used. Changing this forces a new interface to be created.

Declaration
public Output<string> Project { get; }
Property Value
Type Description
Output<System.String>
View Source

Region

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.

Declaration
public Output<string> Region { get; }
Property Value
Type Description
Output<System.String>
View Source

Router

The name of the router this interface will be attached to. Changing this forces a new interface to be created.

Declaration
public Output<string> Router { get; }
Property Value
Type Description
Output<System.String>
View Source

VpnTunnel

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 and interconnect_attachment can be specified.

Declaration
public Output<string> VpnTunnel { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, RouterInterfaceState, CustomResourceOptions)

Get an existing RouterInterface resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static RouterInterface Get(string name, Input<string> id, RouterInterfaceState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

RouterInterfaceState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
RouterInterface
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.