routeros.RoutingOspfAreaRange
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const test = new routeros.RoutingOspfAreaRange("test", {
area: routeros_routing_ospf_area["ospf-area-1"].name,
advertise: true,
prefix: "::/64",
disabled: true,
});
import pulumi
import pulumi_routeros as routeros
test = routeros.RoutingOspfAreaRange("test",
area=routeros_routing_ospf_area["ospf-area-1"]["name"],
advertise=True,
prefix="::/64",
disabled=True)
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.NewRoutingOspfAreaRange(ctx, "test", &routeros.RoutingOspfAreaRangeArgs{
Area: pulumi.Any(routeros_routing_ospf_area.OspfArea1.Name),
Advertise: pulumi.Bool(true),
Prefix: pulumi.String("::/64"),
Disabled: pulumi.Bool(true),
})
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 test = new Routeros.RoutingOspfAreaRange("test", new()
{
Area = routeros_routing_ospf_area.Ospf_area_1.Name,
Advertise = true,
Prefix = "::/64",
Disabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.RoutingOspfAreaRange;
import com.pulumi.routeros.RoutingOspfAreaRangeArgs;
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 test = new RoutingOspfAreaRange("test", RoutingOspfAreaRangeArgs.builder()
.area(routeros_routing_ospf_area.ospf-area-1().name())
.advertise(true)
.prefix("::/64")
.disabled(true)
.build());
}
}
resources:
test:
type: routeros:RoutingOspfAreaRange
properties:
area: ${routeros_routing_ospf_area"ospf-area-1"[%!s(MISSING)].name}
advertise: true
prefix: ::/64
disabled: true
Create RoutingOspfAreaRange Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RoutingOspfAreaRange(name: string, args: RoutingOspfAreaRangeArgs, opts?: CustomResourceOptions);@overload
def RoutingOspfAreaRange(resource_name: str,
args: RoutingOspfAreaRangeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RoutingOspfAreaRange(resource_name: str,
opts: Optional[ResourceOptions] = None,
area: Optional[str] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
advertise: Optional[bool] = None,
comment: Optional[str] = None,
cost: Optional[float] = None,
disabled: Optional[bool] = None,
prefix: Optional[str] = None,
routing_ospf_area_range_id: Optional[str] = None)func NewRoutingOspfAreaRange(ctx *Context, name string, args RoutingOspfAreaRangeArgs, opts ...ResourceOption) (*RoutingOspfAreaRange, error)public RoutingOspfAreaRange(string name, RoutingOspfAreaRangeArgs args, CustomResourceOptions? opts = null)
public RoutingOspfAreaRange(String name, RoutingOspfAreaRangeArgs args)
public RoutingOspfAreaRange(String name, RoutingOspfAreaRangeArgs args, CustomResourceOptions options)
type: routeros:RoutingOspfAreaRange
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 RoutingOspfAreaRangeArgs
- 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 RoutingOspfAreaRangeArgs
- 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 RoutingOspfAreaRangeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoutingOspfAreaRangeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RoutingOspfAreaRangeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RoutingOspfAreaRange 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 RoutingOspfAreaRange resource accepts the following input properties:
- Area string
- The OSPF area associated with this range.
- Advertise bool
- Whether to create a summary LSA and advertise it to the adjacent areas.
- Comment string
- Cost double
- The cost of the summary LSA this range will createdefault - use the largest cost of all routes used (i.e. routes that fall within this range).
- Disabled bool
- Prefix string
- The network prefix of this range.
- Routing
Ospf stringArea Range Id - The ID of this resource.
- ___
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.
- Area string
- The OSPF area associated with this range.
- Advertise bool
- Whether to create a summary LSA and advertise it to the adjacent areas.
- Comment string
- Cost float64
- The cost of the summary LSA this range will createdefault - use the largest cost of all routes used (i.e. routes that fall within this range).
- Disabled bool
- Prefix string
- The network prefix of this range.
- Routing
Ospf stringArea Range Id - The ID of this resource.
- ___
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.
- area String
- The OSPF area associated with this range.
- ___
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.
- advertise Boolean
- Whether to create a summary LSA and advertise it to the adjacent areas.
- comment String
- cost Double
- The cost of the summary LSA this range will createdefault - use the largest cost of all routes used (i.e. routes that fall within this range).
- disabled Boolean
- prefix String
- The network prefix of this range.
- routing
Ospf StringArea Range Id - The ID of this resource.
- area string
- The OSPF area associated with this range.
- ___
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.
- advertise boolean
- Whether to create a summary LSA and advertise it to the adjacent areas.
- comment string
- cost number
- The cost of the summary LSA this range will createdefault - use the largest cost of all routes used (i.e. routes that fall within this range).
- disabled boolean
- prefix string
- The network prefix of this range.
- routing
Ospf stringArea Range Id - The ID of this resource.
- area str
- The OSPF area associated with this range.
- ___
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.
- advertise bool
- Whether to create a summary LSA and advertise it to the adjacent areas.
- comment str
- cost float
- The cost of the summary LSA this range will createdefault - use the largest cost of all routes used (i.e. routes that fall within this range).
- disabled bool
- prefix str
- The network prefix of this range.
- routing_
ospf_ strarea_ range_ id - The ID of this resource.
- area String
- The OSPF area associated with this range.
- ___
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.
- advertise Boolean
- Whether to create a summary LSA and advertise it to the adjacent areas.
- comment String
- cost Number
- The cost of the summary LSA this range will createdefault - use the largest cost of all routes used (i.e. routes that fall within this range).
- disabled Boolean
- prefix String
- The network prefix of this range.
- routing
Ospf StringArea Range Id - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the RoutingOspfAreaRange resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing RoutingOspfAreaRange Resource
Get an existing RoutingOspfAreaRange 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?: RoutingOspfAreaRangeState, opts?: CustomResourceOptions): RoutingOspfAreaRange@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
advertise: Optional[bool] = None,
area: Optional[str] = None,
comment: Optional[str] = None,
cost: Optional[float] = None,
disabled: Optional[bool] = None,
prefix: Optional[str] = None,
routing_ospf_area_range_id: Optional[str] = None) -> RoutingOspfAreaRangefunc GetRoutingOspfAreaRange(ctx *Context, name string, id IDInput, state *RoutingOspfAreaRangeState, opts ...ResourceOption) (*RoutingOspfAreaRange, error)public static RoutingOspfAreaRange Get(string name, Input<string> id, RoutingOspfAreaRangeState? state, CustomResourceOptions? opts = null)public static RoutingOspfAreaRange get(String name, Output<String> id, RoutingOspfAreaRangeState state, CustomResourceOptions options)resources: _: type: routeros:RoutingOspfAreaRange 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.
- Advertise bool
- Whether to create a summary LSA and advertise it to the adjacent areas.
- Area string
- The OSPF area associated with this range.
- Comment string
- Cost double
- The cost of the summary LSA this range will createdefault - use the largest cost of all routes used (i.e. routes that fall within this range).
- Disabled bool
- Prefix string
- The network prefix of this range.
- Routing
Ospf stringArea Range Id - The ID of this resource.
- ___
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.
- Advertise bool
- Whether to create a summary LSA and advertise it to the adjacent areas.
- Area string
- The OSPF area associated with this range.
- Comment string
- Cost float64
- The cost of the summary LSA this range will createdefault - use the largest cost of all routes used (i.e. routes that fall within this range).
- Disabled bool
- Prefix string
- The network prefix of this range.
- Routing
Ospf stringArea Range Id - The ID of this resource.
- ___
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.
- advertise Boolean
- Whether to create a summary LSA and advertise it to the adjacent areas.
- area String
- The OSPF area associated with this range.
- comment String
- cost Double
- The cost of the summary LSA this range will createdefault - use the largest cost of all routes used (i.e. routes that fall within this range).
- disabled Boolean
- prefix String
- The network prefix of this range.
- routing
Ospf StringArea Range Id - The ID of this resource.
- ___
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.
- advertise boolean
- Whether to create a summary LSA and advertise it to the adjacent areas.
- area string
- The OSPF area associated with this range.
- comment string
- cost number
- The cost of the summary LSA this range will createdefault - use the largest cost of all routes used (i.e. routes that fall within this range).
- disabled boolean
- prefix string
- The network prefix of this range.
- routing
Ospf stringArea Range Id - The ID of this resource.
- ___
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.
- advertise bool
- Whether to create a summary LSA and advertise it to the adjacent areas.
- area str
- The OSPF area associated with this range.
- comment str
- cost float
- The cost of the summary LSA this range will createdefault - use the largest cost of all routes used (i.e. routes that fall within this range).
- disabled bool
- prefix str
- The network prefix of this range.
- routing_
ospf_ strarea_ range_ id - The ID of this resource.
- ___
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.
- advertise Boolean
- Whether to create a summary LSA and advertise it to the adjacent areas.
- area String
- The OSPF area associated with this range.
- comment String
- cost Number
- The cost of the summary LSA this range will createdefault - use the largest cost of all routes used (i.e. routes that fall within this range).
- disabled Boolean
- prefix String
- The network prefix of this range.
- routing
Ospf StringArea Range Id - The ID of this resource.
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/routing/ospf/area/range get [print show-ids]]
$ pulumi import routeros:index/routingOspfAreaRange:RoutingOspfAreaRange test *3
#Or you can import a resource using one of its attributes
$ pulumi import routeros:index/routingOspfAreaRange:RoutingOspfAreaRange test "comment=xxx"
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
routerosTerraform Provider.
