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,
});
}
}
Coming soon!
import pulumi
import pulumi_openstack as openstack
network1 = openstack.networking.Network("network1", admin_state_up="true")
subnet1 = openstack.networking.Subnet("subnet1",
cidr="192.168.199.0/24",
ip_version=4,
network_id=network1.id)
router1 = openstack.networking.Router("router1", external_network_id="f67f0d72-0ddf-11e4-9d95-e1f29f417e2f")
router_interface1 = openstack.networking.RouterInterface("routerInterface1",
router_id=router1.id,
subnet_id=subnet1.id)import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const network1 = new openstack.networking.Network("network_1", {
adminStateUp: true,
});
const subnet1 = new openstack.networking.Subnet("subnet_1", {
cidr: "192.168.199.0/24",
ipVersion: 4,
networkId: network1.id,
});
const router1 = new openstack.networking.Router("router_1", {
externalNetworkId: "f67f0d72-0ddf-11e4-9d95-e1f29f417e2f",
});
const routerInterface1 = new openstack.networking.RouterInterface("router_interface_1", {
routerId: router1.id,
subnetId: subnet1.id,
});Create a RouterInterface Resource
new RouterInterface(name: string, args: RouterInterfaceArgs, opts?: CustomResourceOptions);def RouterInterface(resource_name, opts=None, port_id=None, region=None, router_id=None, subnet_id=None, __props__=None);func NewRouterInterface(ctx *Context, name string, args RouterInterfaceArgs, opts ...ResourceOption) (*RouterInterface, error)public RouterInterface(string name, RouterInterfaceArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
RouterInterface Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The RouterInterface resource accepts the following input properties:
- Router
Id string ID of the router this interface belongs to. Changing this creates a new router interface.
- Port
Id string ID of the port this interface connects to. Changing this creates a new router interface.
- Region string
The region in which to obtain the V2 networking client. A networking client is needed to create a router. If omitted, the
regionargument of the provider is used. Changing this creates a new router interface.- Subnet
Id string ID of the subnet this interface connects to. Changing this creates a new router interface.
- Router
Id string ID of the router this interface belongs to. Changing this creates a new router interface.
- Port
Id string ID of the port this interface connects to. Changing this creates a new router interface.
- Region string
The region in which to obtain the V2 networking client. A networking client is needed to create a router. If omitted, the
regionargument of the provider is used. Changing this creates a new router interface.- Subnet
Id string ID of the subnet this interface connects to. Changing this creates a new router interface.
- router
Id string ID of the router this interface belongs to. Changing this creates a new router interface.
- port
Id string ID of the port this interface connects to. Changing this creates a new router interface.
- region string
The region in which to obtain the V2 networking client. A networking client is needed to create a router. If omitted, the
regionargument of the provider is used. Changing this creates a new router interface.- subnet
Id string ID of the subnet this interface connects to. Changing this creates a new router interface.
- router_
id str ID of the router this interface belongs to. Changing this creates a new router interface.
- port_
id str ID of the port this interface connects to. Changing this creates a new router interface.
- region str
The region in which to obtain the V2 networking client. A networking client is needed to create a router. If omitted, the
regionargument of the provider is used. Changing this creates a new router interface.- subnet_
id str ID of the subnet this interface connects to. Changing this creates a new router interface.
Outputs
All input properties are implicitly available as output properties. Additionally, the RouterInterface resource produces the following output properties:
Look up an 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): RouterInterfacestatic get(resource_name, id, opts=None, port_id=None, region=None, router_id=None, subnet_id=None, __props__=None);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)- 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.
The following state arguments are supported:
- Port
Id string ID of the port this interface connects to. Changing this creates a new router interface.
- Region string
The region in which to obtain the V2 networking client. A networking client is needed to create a router. If omitted, the
regionargument of the provider is used. Changing this creates a new router interface.- Router
Id string ID of the router this interface belongs to. Changing this creates a new router interface.
- Subnet
Id string ID of the subnet this interface connects to. Changing this creates a new router interface.
- Port
Id string ID of the port this interface connects to. Changing this creates a new router interface.
- Region string
The region in which to obtain the V2 networking client. A networking client is needed to create a router. If omitted, the
regionargument of the provider is used. Changing this creates a new router interface.- Router
Id string ID of the router this interface belongs to. Changing this creates a new router interface.
- Subnet
Id string ID of the subnet this interface connects to. Changing this creates a new router interface.
- port
Id string ID of the port this interface connects to. Changing this creates a new router interface.
- region string
The region in which to obtain the V2 networking client. A networking client is needed to create a router. If omitted, the
regionargument of the provider is used. Changing this creates a new router interface.- router
Id string ID of the router this interface belongs to. Changing this creates a new router interface.
- subnet
Id string ID of the subnet this interface connects to. Changing this creates a new router interface.
- port_
id str ID of the port this interface connects to. Changing this creates a new router interface.
- region str
The region in which to obtain the V2 networking client. A networking client is needed to create a router. If omitted, the
regionargument of the provider is used. Changing this creates a new router interface.- router_
id str ID of the router this interface belongs to. Changing this creates a new router interface.
- subnet_
id str ID of the subnet this interface connects to. Changing this creates a new router interface.
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.