RouterInterface

class RouterInterface : KotlinCustomResource

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

Example Usage

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

Router interfaces can be imported using the project (optional), region, router, and name, e.g.

$ pulumi import gcp:compute/routerInterface:RouterInterface foobar my-project/us-central1/router-1/interface-1
$ pulumi import gcp:compute/routerInterface:RouterInterface foobar us-central1/router-1/interface-1

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

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.

Link copied to clipboard
val ipRange: Output<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.

Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val privateIpAddress: Output<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.

Link copied to clipboard
val project: Output<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.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The name of the interface that is redundant to this interface. Changing this forces a new interface to be created.

Link copied to clipboard
val region: Output<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.

Link copied to clipboard
val router: Output<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.

Link copied to clipboard
val subnetwork: Output<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.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpnTunnel: Output<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.