Show / Hide Table of Contents

Class RouterInterface

Manages a V2 router interface resource within OpenStack.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var network1 = new OpenStack.Networking.Network("network1", new OpenStack.Networking.NetworkArgs
    {
        AdminStateUp = "true",
    });
    var subnet1 = new OpenStack.Networking.Subnet("subnet1", new OpenStack.Networking.SubnetArgs
    {
        Cidr = "192.168.199.0/24",
        IpVersion = 4,
        NetworkId = network1.Id,
    });
    var router1 = new OpenStack.Networking.Router("router1", new OpenStack.Networking.RouterArgs
    {
        ExternalNetworkId = "f67f0d72-0ddf-11e4-9d95-e1f29f417e2f",
    });
    var routerInterface1 = new OpenStack.Networking.RouterInterface("routerInterface1", new OpenStack.Networking.RouterInterfaceArgs
    {
        RouterId = router1.Id,
        SubnetId = subnet1.Id,
    });
}

}
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.OpenStack.Networking
Assembly: Pulumi.OpenStack.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

PortId

ID of the port this interface connects to. Changing this creates a new router interface.

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

Region

The region in which to obtain the V2 networking client. A networking client is needed to create a router. If omitted, the region argument of the provider is used. Changing this creates a new router interface.

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

RouterId

ID of the router this interface belongs to. Changing this creates a new router interface.

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

SubnetId

ID of the subnet this interface connects to. Changing this creates a new router interface.

Declaration
public Output<string> SubnetId { 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.