routeros.RoutingOspfInstance
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const testRoutingOspfInstance = new routeros.RoutingOspfInstance("testRoutingOspfInstance", {});
import pulumi
import pulumi_routeros as routeros
test_routing_ospf_instance = routeros.RoutingOspfInstance("testRoutingOspfInstance")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/routeros/routeros"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := routeros.NewRoutingOspfInstance(ctx, "testRoutingOspfInstance", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Routeros = Pulumi.Routeros;
return await Deployment.RunAsync(() =>
{
var testRoutingOspfInstance = new Routeros.RoutingOspfInstance("testRoutingOspfInstance");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.RoutingOspfInstance;
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 testRoutingOspfInstance = new RoutingOspfInstance("testRoutingOspfInstance");
}
}
resources:
testRoutingOspfInstance:
type: routeros:RoutingOspfInstance
Create RoutingOspfInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RoutingOspfInstance(name: string, args?: RoutingOspfInstanceArgs, opts?: CustomResourceOptions);
@overload
def RoutingOspfInstance(resource_name: str,
args: Optional[RoutingOspfInstanceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RoutingOspfInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
domain_id: Optional[str] = None,
domain_tag: Optional[float] = None,
in_filter_chain: Optional[str] = None,
mpls_te_address: Optional[str] = None,
mpls_te_area: Optional[str] = None,
name: Optional[str] = None,
originate_default: Optional[str] = None,
out_filter_chain: Optional[str] = None,
out_filter_select: Optional[str] = None,
redistributes: Optional[Sequence[str]] = None,
router_id: Optional[str] = None,
routing_ospf_instance_id: Optional[str] = None,
routing_table: Optional[str] = None,
version: Optional[float] = None,
vrf: Optional[str] = None)
func NewRoutingOspfInstance(ctx *Context, name string, args *RoutingOspfInstanceArgs, opts ...ResourceOption) (*RoutingOspfInstance, error)
public RoutingOspfInstance(string name, RoutingOspfInstanceArgs? args = null, CustomResourceOptions? opts = null)
public RoutingOspfInstance(String name, RoutingOspfInstanceArgs args)
public RoutingOspfInstance(String name, RoutingOspfInstanceArgs args, CustomResourceOptions options)
type: routeros:RoutingOspfInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RoutingOspfInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RoutingOspfInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RoutingOspfInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoutingOspfInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RoutingOspfInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RoutingOspfInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RoutingOspfInstance resource accepts the following input properties:
- Comment string
- Disabled bool
- Domain
Id string - MPLS-related parameter.
- Domain
Tag double - if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
- In
Filter stringChain - name of the routing filter chain used for incoming prefixes
- Mpls
Te stringAddress - the area used for MPLS traffic engineering.
- Mpls
Te stringArea - the area used for MPLS traffic engineering.
- Name string
- Originate
Default string - Specifies default route (0.0.0.0/0) distribution method.
- Out
Filter stringChain - name of the routing filter chain used for outgoing prefixes filtering.
- Out
Filter stringSelect - name of the routing filter select chain, used for output selection.
- Redistributes List<string>
- Enable redistribution of specific route types.
- Router
Id string - OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
- Routing
Ospf stringInstance Id - The ID of this resource.
- Routing
Table string - Name of the routing table in use.
- Version double
- OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
- Vrf string
- The VRF table this resource operates on.
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- Comment string
- Disabled bool
- Domain
Id string - MPLS-related parameter.
- Domain
Tag float64 - if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
- In
Filter stringChain - name of the routing filter chain used for incoming prefixes
- Mpls
Te stringAddress - the area used for MPLS traffic engineering.
- Mpls
Te stringArea - the area used for MPLS traffic engineering.
- Name string
- Originate
Default string - Specifies default route (0.0.0.0/0) distribution method.
- Out
Filter stringChain - name of the routing filter chain used for outgoing prefixes filtering.
- Out
Filter stringSelect - name of the routing filter select chain, used for output selection.
- Redistributes []string
- Enable redistribution of specific route types.
- Router
Id string - OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
- Routing
Ospf stringInstance Id - The ID of this resource.
- Routing
Table string - Name of the routing table in use.
- Version float64
- OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
- Vrf string
- The VRF table this resource operates on.
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment String
- disabled Boolean
- domain
Id String - MPLS-related parameter.
- domain
Tag Double - if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
- in
Filter StringChain - name of the routing filter chain used for incoming prefixes
- mpls
Te StringAddress - the area used for MPLS traffic engineering.
- mpls
Te StringArea - the area used for MPLS traffic engineering.
- name String
- originate
Default String - Specifies default route (0.0.0.0/0) distribution method.
- out
Filter StringChain - name of the routing filter chain used for outgoing prefixes filtering.
- out
Filter StringSelect - name of the routing filter select chain, used for output selection.
- redistributes List<String>
- Enable redistribution of specific route types.
- router
Id String - OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
- routing
Ospf StringInstance Id - The ID of this resource.
- routing
Table String - Name of the routing table in use.
- version Double
- OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
- vrf String
- The VRF table this resource operates on.
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment string
- disabled boolean
- domain
Id string - MPLS-related parameter.
- domain
Tag number - if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
- in
Filter stringChain - name of the routing filter chain used for incoming prefixes
- mpls
Te stringAddress - the area used for MPLS traffic engineering.
- mpls
Te stringArea - the area used for MPLS traffic engineering.
- name string
- originate
Default string - Specifies default route (0.0.0.0/0) distribution method.
- out
Filter stringChain - name of the routing filter chain used for outgoing prefixes filtering.
- out
Filter stringSelect - name of the routing filter select chain, used for output selection.
- redistributes string[]
- Enable redistribution of specific route types.
- router
Id string - OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
- routing
Ospf stringInstance Id - The ID of this resource.
- routing
Table string - Name of the routing table in use.
- version number
- OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
- vrf string
- The VRF table this resource operates on.
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment str
- disabled bool
- domain_
id str - MPLS-related parameter.
- domain_
tag float - if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
- in_
filter_ strchain - name of the routing filter chain used for incoming prefixes
- mpls_
te_ straddress - the area used for MPLS traffic engineering.
- mpls_
te_ strarea - the area used for MPLS traffic engineering.
- name str
- originate_
default str - Specifies default route (0.0.0.0/0) distribution method.
- out_
filter_ strchain - name of the routing filter chain used for outgoing prefixes filtering.
- out_
filter_ strselect - name of the routing filter select chain, used for output selection.
- redistributes Sequence[str]
- Enable redistribution of specific route types.
- router_
id str - OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
- routing_
ospf_ strinstance_ id - The ID of this resource.
- routing_
table str - Name of the routing table in use.
- version float
- OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
- vrf str
- The VRF table this resource operates on.
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment String
- disabled Boolean
- domain
Id String - MPLS-related parameter.
- domain
Tag Number - if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
- in
Filter StringChain - name of the routing filter chain used for incoming prefixes
- mpls
Te StringAddress - the area used for MPLS traffic engineering.
- mpls
Te StringArea - the area used for MPLS traffic engineering.
- name String
- originate
Default String - Specifies default route (0.0.0.0/0) distribution method.
- out
Filter StringChain - name of the routing filter chain used for outgoing prefixes filtering.
- out
Filter StringSelect - name of the routing filter select chain, used for output selection.
- redistributes List<String>
- Enable redistribution of specific route types.
- router
Id String - OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
- routing
Ospf StringInstance Id - The ID of this resource.
- routing
Table String - Name of the routing table in use.
- version Number
- OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
- vrf String
- The VRF table this resource operates on.
Outputs
All input properties are implicitly available as output properties. Additionally, the RoutingOspfInstance resource produces the following output properties:
Look up Existing RoutingOspfInstance Resource
Get an existing RoutingOspfInstance 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?: RoutingOspfInstanceState, opts?: CustomResourceOptions): RoutingOspfInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
domain_id: Optional[str] = None,
domain_tag: Optional[float] = None,
in_filter_chain: Optional[str] = None,
inactive: Optional[bool] = None,
mpls_te_address: Optional[str] = None,
mpls_te_area: Optional[str] = None,
name: Optional[str] = None,
originate_default: Optional[str] = None,
out_filter_chain: Optional[str] = None,
out_filter_select: Optional[str] = None,
redistributes: Optional[Sequence[str]] = None,
router_id: Optional[str] = None,
routing_ospf_instance_id: Optional[str] = None,
routing_table: Optional[str] = None,
version: Optional[float] = None,
vrf: Optional[str] = None) -> RoutingOspfInstance
func GetRoutingOspfInstance(ctx *Context, name string, id IDInput, state *RoutingOspfInstanceState, opts ...ResourceOption) (*RoutingOspfInstance, error)
public static RoutingOspfInstance Get(string name, Input<string> id, RoutingOspfInstanceState? state, CustomResourceOptions? opts = null)
public static RoutingOspfInstance get(String name, Output<String> id, RoutingOspfInstanceState state, CustomResourceOptions options)
resources: _: type: routeros:RoutingOspfInstance get: id: ${id}
- 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.
- 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.
- Comment string
- Disabled bool
- Domain
Id string - MPLS-related parameter.
- Domain
Tag double - if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
- In
Filter stringChain - name of the routing filter chain used for incoming prefixes
- Inactive bool
- Mpls
Te stringAddress - the area used for MPLS traffic engineering.
- Mpls
Te stringArea - the area used for MPLS traffic engineering.
- Name string
- Originate
Default string - Specifies default route (0.0.0.0/0) distribution method.
- Out
Filter stringChain - name of the routing filter chain used for outgoing prefixes filtering.
- Out
Filter stringSelect - name of the routing filter select chain, used for output selection.
- Redistributes List<string>
- Enable redistribution of specific route types.
- Router
Id string - OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
- Routing
Ospf stringInstance Id - The ID of this resource.
- Routing
Table string - Name of the routing table in use.
- Version double
- OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
- Vrf string
- The VRF table this resource operates on.
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- Comment string
- Disabled bool
- Domain
Id string - MPLS-related parameter.
- Domain
Tag float64 - if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
- In
Filter stringChain - name of the routing filter chain used for incoming prefixes
- Inactive bool
- Mpls
Te stringAddress - the area used for MPLS traffic engineering.
- Mpls
Te stringArea - the area used for MPLS traffic engineering.
- Name string
- Originate
Default string - Specifies default route (0.0.0.0/0) distribution method.
- Out
Filter stringChain - name of the routing filter chain used for outgoing prefixes filtering.
- Out
Filter stringSelect - name of the routing filter select chain, used for output selection.
- Redistributes []string
- Enable redistribution of specific route types.
- Router
Id string - OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
- Routing
Ospf stringInstance Id - The ID of this resource.
- Routing
Table string - Name of the routing table in use.
- Version float64
- OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
- Vrf string
- The VRF table this resource operates on.
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment String
- disabled Boolean
- domain
Id String - MPLS-related parameter.
- domain
Tag Double - if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
- in
Filter StringChain - name of the routing filter chain used for incoming prefixes
- inactive Boolean
- mpls
Te StringAddress - the area used for MPLS traffic engineering.
- mpls
Te StringArea - the area used for MPLS traffic engineering.
- name String
- originate
Default String - Specifies default route (0.0.0.0/0) distribution method.
- out
Filter StringChain - name of the routing filter chain used for outgoing prefixes filtering.
- out
Filter StringSelect - name of the routing filter select chain, used for output selection.
- redistributes List<String>
- Enable redistribution of specific route types.
- router
Id String - OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
- routing
Ospf StringInstance Id - The ID of this resource.
- routing
Table String - Name of the routing table in use.
- version Double
- OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
- vrf String
- The VRF table this resource operates on.
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment string
- disabled boolean
- domain
Id string - MPLS-related parameter.
- domain
Tag number - if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
- in
Filter stringChain - name of the routing filter chain used for incoming prefixes
- inactive boolean
- mpls
Te stringAddress - the area used for MPLS traffic engineering.
- mpls
Te stringArea - the area used for MPLS traffic engineering.
- name string
- originate
Default string - Specifies default route (0.0.0.0/0) distribution method.
- out
Filter stringChain - name of the routing filter chain used for outgoing prefixes filtering.
- out
Filter stringSelect - name of the routing filter select chain, used for output selection.
- redistributes string[]
- Enable redistribution of specific route types.
- router
Id string - OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
- routing
Ospf stringInstance Id - The ID of this resource.
- routing
Table string - Name of the routing table in use.
- version number
- OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
- vrf string
- The VRF table this resource operates on.
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment str
- disabled bool
- domain_
id str - MPLS-related parameter.
- domain_
tag float - if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
- in_
filter_ strchain - name of the routing filter chain used for incoming prefixes
- inactive bool
- mpls_
te_ straddress - the area used for MPLS traffic engineering.
- mpls_
te_ strarea - the area used for MPLS traffic engineering.
- name str
- originate_
default str - Specifies default route (0.0.0.0/0) distribution method.
- out_
filter_ strchain - name of the routing filter chain used for outgoing prefixes filtering.
- out_
filter_ strselect - name of the routing filter select chain, used for output selection.
- redistributes Sequence[str]
- Enable redistribution of specific route types.
- router_
id str - OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
- routing_
ospf_ strinstance_ id - The ID of this resource.
- routing_
table str - Name of the routing table in use.
- version float
- OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
- vrf str
- The VRF table this resource operates on.
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- comment String
- disabled Boolean
- domain
Id String - MPLS-related parameter.
- domain
Tag Number - if set, then used in route redistribution (as route-tag in all external LSAs generated by this router), and in route calculation (all external LSAs having this route tag are ignored). Needed for interoperability with older Cisco systems. By default not set.
- in
Filter StringChain - name of the routing filter chain used for incoming prefixes
- inactive Boolean
- mpls
Te StringAddress - the area used for MPLS traffic engineering.
- mpls
Te StringArea - the area used for MPLS traffic engineering.
- name String
- originate
Default String - Specifies default route (0.0.0.0/0) distribution method.
- out
Filter StringChain - name of the routing filter chain used for outgoing prefixes filtering.
- out
Filter StringSelect - name of the routing filter select chain, used for output selection.
- redistributes List<String>
- Enable redistribution of specific route types.
- router
Id String - OSPF Router ID. Can be set explicitly as an IP address, or as the name of the router-id instance.
- routing
Ospf StringInstance Id - The ID of this resource.
- routing
Table String - Name of the routing table in use.
- version Number
- OSPF version this instance will be running (v2 for IPv4, v3 for IPv6).
- vrf String
- The VRF table this resource operates on.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> /routing/ospf/instance/print show-ids
$ pulumi import routeros:index/routingOspfInstance:RoutingOspfInstance test_routing_ospf_instance "*0"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routeros
Terraform Provider.