routeros 1.99.0 published on Wednesday, Jan 21, 2026 by terraform-routeros
routeros 1.99.0 published on Wednesday, Jan 21, 2026 by terraform-routeros
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
export = async () => {
const router = await routeros.getIpServices({});
const router_disabled: routeros.IpService[] = [];
for (const range of Object.entries(.filter(s => s.name != "www-ssl").reduce((__obj, s) => ({ ...__obj, [s.name]: s }))).map(([k, v]) => ({key: k, value: v}))) {
router_disabled.push(new routeros.IpService(`router-disabled-${range.key}`, {
disabled: true,
numbers: range.value.name,
port: range.value.port,
}));
}
}
import pulumi
import pulumi_routeros as routeros
router = routeros.get_ip_services()
router_disabled = []
for range in [{"key": k, "value": v} for [k, v] in enumerate({s.name: s for s in router.services if s.name != www-ssl})]:
router_disabled.append(routeros.IpService(f"router-disabled-{range['key']}",
disabled=True,
numbers=%!v(PANIC=Format method: runtime error: index out of range [-1]),
port=%!v(PANIC=Format method: runtime error: index out of range [-1])))
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Pulumi;
using Routeros = Pulumi.Routeros;
return await Deployment.RunAsync(async() =>
{
var router = await Routeros.GetIpServices.InvokeAsync();
var router_disabled = new List<Routeros.IpService>();
foreach (var range in .Select(pair => new { pair.Key, pair.Value }))
{
router_disabled.Add(new Routeros.IpService($"router-disabled-{range.Key}", new()
{
Disabled = true,
Numbers = range.Value.Name,
Port = range.Value.Port,
}));
}
});
Example coming soon!
resources:
router-disabled:
type: routeros:IpService
properties:
disabled: true
numbers: ${range.value.name}
port: ${range.value.port}
options: {}
variables:
router:
fn::invoke:
function: routeros:getIpServices
arguments: {}
Using getIpServices
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getIpServices(args: GetIpServicesArgs, opts?: InvokeOptions): Promise<GetIpServicesResult>
function getIpServicesOutput(args: GetIpServicesOutputArgs, opts?: InvokeOptions): Output<GetIpServicesResult>def get_ip_services(___id_: Optional[float] = None,
___path_: Optional[str] = None,
filter: Optional[Mapping[str, str]] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIpServicesResult
def get_ip_services_output(___id_: Optional[pulumi.Input[float]] = None,
___path_: Optional[pulumi.Input[str]] = None,
filter: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIpServicesResult]func GetIpServices(ctx *Context, args *GetIpServicesArgs, opts ...InvokeOption) (*GetIpServicesResult, error)
func GetIpServicesOutput(ctx *Context, args *GetIpServicesOutputArgs, opts ...InvokeOption) GetIpServicesResultOutput> Note: This function is named GetIpServices in the Go SDK.
public static class GetIpServices
{
public static Task<GetIpServicesResult> InvokeAsync(GetIpServicesArgs args, InvokeOptions? opts = null)
public static Output<GetIpServicesResult> Invoke(GetIpServicesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIpServicesResult> getIpServices(GetIpServicesArgs args, InvokeOptions options)
public static Output<GetIpServicesResult> getIpServices(GetIpServicesArgs args, InvokeOptions options)
fn::invoke:
function: routeros:index/getIpServices:getIpServices
arguments:
# arguments dictionaryThe following arguments are supported:
getIpServices Result
The following output properties are available:
- Dynamic
Services List<GetIp Services Dynamic Service> - Id string
- The ID of this resource.
- Services
List<Get
Ip Services Service> - Filter Dictionary<string, string>
- Additional request filtering options.
- ___
id_ double - ___
path_ string
- Dynamic
Services []GetIp Services Dynamic Service - Id string
- The ID of this resource.
- Services
[]Get
Ip Services Service - Filter map[string]string
- Additional request filtering options.
- ___
id_ float64 - ___
path_ string
- dynamic
Services List<GetIp Services Dynamic Service> - id String
- The ID of this resource.
- services
List<Get
Ip Services Service> - ___
id_ Double - ___
path_ String - filter Map<String,String>
- Additional request filtering options.
- dynamic
Services GetIp Services Dynamic Service[] - id string
- The ID of this resource.
- services
Get
Ip Services Service[] - ___
id_ number - ___
path_ string - filter {[key: string]: string}
- Additional request filtering options.
- dynamic_
services Sequence[GetIp Services Dynamic Service] - id str
- The ID of this resource.
- services
Sequence[Get
Ip Services Service] - ___
id_ float - ___
path_ str - filter Mapping[str, str]
- Additional request filtering options.
- dynamic
Services List<Property Map> - id String
- The ID of this resource.
- services List<Property Map>
- ___
id_ Number - ___
path_ String - filter Map<String>
- Additional request filtering options.
Supporting Types
GetIpServicesDynamicService
- Address string
- Certificate string
- Connection bool
- Disabled bool
- Dynamic bool
- Id string
- Invalid string
- Local string
- Max
Sessions double - Name string
- Port double
- Proto string
- Remote string
- Tls
Version string - Vrf string
- Address string
- Certificate string
- Connection bool
- Disabled bool
- Dynamic bool
- Id string
- Invalid string
- Local string
- Max
Sessions float64 - Name string
- Port float64
- Proto string
- Remote string
- Tls
Version string - Vrf string
- address String
- certificate String
- connection Boolean
- disabled Boolean
- dynamic Boolean
- id String
- invalid String
- local String
- max
Sessions Double - name String
- port Double
- proto String
- remote String
- tls
Version String - vrf String
- address string
- certificate string
- connection boolean
- disabled boolean
- dynamic boolean
- id string
- invalid string
- local string
- max
Sessions number - name string
- port number
- proto string
- remote string
- tls
Version string - vrf string
- address str
- certificate str
- connection bool
- disabled bool
- dynamic bool
- id str
- invalid str
- local str
- max_
sessions float - name str
- port float
- proto str
- remote str
- tls_
version str - vrf str
- address String
- certificate String
- connection Boolean
- disabled Boolean
- dynamic Boolean
- id String
- invalid String
- local String
- max
Sessions Number - name String
- port Number
- proto String
- remote String
- tls
Version String - vrf String
GetIpServicesService
- Address string
- Certificate string
- Connection bool
- Disabled bool
- Dynamic bool
- Id string
- Invalid string
- Max
Sessions double - Name string
- Port double
- Proto string
- Tls
Version string - Vrf string
- Address string
- Certificate string
- Connection bool
- Disabled bool
- Dynamic bool
- Id string
- Invalid string
- Max
Sessions float64 - Name string
- Port float64
- Proto string
- Tls
Version string - Vrf string
- address String
- certificate String
- connection Boolean
- disabled Boolean
- dynamic Boolean
- id String
- invalid String
- max
Sessions Double - name String
- port Double
- proto String
- tls
Version String - vrf String
- address string
- certificate string
- connection boolean
- disabled boolean
- dynamic boolean
- id string
- invalid string
- max
Sessions number - name string
- port number
- proto string
- tls
Version string - vrf string
- address str
- certificate str
- connection bool
- disabled bool
- dynamic bool
- id str
- invalid str
- max_
sessions float - name str
- port float
- proto str
- tls_
version str - vrf str
- address String
- certificate String
- connection Boolean
- disabled Boolean
- dynamic Boolean
- id String
- invalid String
- max
Sessions Number - name String
- port Number
- proto String
- tls
Version String - vrf String
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routerosTerraform Provider.
routeros 1.99.0 published on Wednesday, Jan 21, 2026 by terraform-routeros
