Show / Hide Table of Contents

Class SubnetRoute

Creates a routing entry on a OpenStack V2 subnet.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var router1 = new OpenStack.Networking.Router("router1", new OpenStack.Networking.RouterArgs
    {
        AdminStateUp = "true",
    });
    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 subnetRoute1 = new OpenStack.Networking.SubnetRoute("subnetRoute1", new OpenStack.Networking.SubnetRouteArgs
    {
        DestinationCidr = "10.0.1.0/24",
        NextHop = "192.168.199.254",
        SubnetId = subnet1.Id,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
SubnetRoute
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 SubnetRoute : CustomResource

Constructors

View Source

SubnetRoute(String, SubnetRouteArgs, CustomResourceOptions)

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

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

The unique name of the resource

SubnetRouteArgs 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

DestinationCidr

CIDR block to match on the packet’s destination IP. Changing this creates a new routing entry.

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

NextHop

IP address of the next hop gateway. Changing this creates a new routing entry.

Declaration
public Output<string> NextHop { 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 configure a routing entry on a subnet. If omitted, the region argument of the provider is used. Changing this creates a new routing entry.

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

SubnetId

ID of the subnet this routing entry belongs to. Changing this creates a new routing entry.

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

Methods

View Source

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

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

Declaration
public static SubnetRoute Get(string name, Input<string> id, SubnetRouteState 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.

SubnetRouteState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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