1. Packages
  2. Routeros Provider
  3. API Docs
  4. IpService
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

routeros.IpService

Explore with Pulumi AI

routeros logo
routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as routeros from "@pulumi/routeros";
    
    const tlsService = {
        "api-ssl": 8729,
        "www-ssl": 443,
    };
    const disableService = {
        api: 8728,
        ftp: 21,
        telnet: 23,
        www: 80,
    };
    const enableService = {
        ssh: 22,
        winbox: 8291,
    };
    const tlsCert = new routeros.SystemCertificate("tlsCert", {
        commonName: "Mikrotik Router",
        daysValid: 3650,
        keyUsages: [
            "key-cert-sign",
            "crl-sign",
            "digital-signature",
            "key-agreement",
            "tls-server",
        ],
        keySize: "prime256v1",
        signs: [{}],
    });
    // terraform state rm 'routeros_ip_service.tls["www-ssl"]'
    // terraform import 'routeros_ip_service.tls["www-ssl"]' www-ssl
    const tls: routeros.IpService[] = [];
    for (const range of Object.entries(tlsService).map(([k, v]) => ({key: k, value: v}))) {
        tls.push(new routeros.IpService(`tls-${range.key}`, {
            numbers: range.key,
            port: range.value,
            certificate: tlsCert.name,
            tlsVersion: "only-1.2",
            disabled: false,
        }));
    }
    const disabled: routeros.IpService[] = [];
    for (const range of Object.entries(disableService).map(([k, v]) => ({key: k, value: v}))) {
        disabled.push(new routeros.IpService(`disabled-${range.key}`, {
            numbers: range.key,
            port: range.value,
            disabled: true,
        }));
    }
    const enabled: routeros.IpService[] = [];
    for (const range of Object.entries(enableService).map(([k, v]) => ({key: k, value: v}))) {
        enabled.push(new routeros.IpService(`enabled-${range.key}`, {
            numbers: range.key,
            port: range.value,
            disabled: false,
        }));
    }
    
    import pulumi
    import pulumi_routeros as routeros
    
    tls_service = {
        "api-ssl": 8729,
        "www-ssl": 443,
    }
    disable_service = {
        "api": 8728,
        "ftp": 21,
        "telnet": 23,
        "www": 80,
    }
    enable_service = {
        "ssh": 22,
        "winbox": 8291,
    }
    tls_cert = routeros.SystemCertificate("tlsCert",
        common_name="Mikrotik Router",
        days_valid=3650,
        key_usages=[
            "key-cert-sign",
            "crl-sign",
            "digital-signature",
            "key-agreement",
            "tls-server",
        ],
        key_size="prime256v1",
        signs=[{}])
    # terraform state rm 'routeros_ip_service.tls["www-ssl"]'
    # terraform import 'routeros_ip_service.tls["www-ssl"]' www-ssl
    tls = []
    for range in [{"key": k, "value": v} for [k, v] in enumerate(tls_service)]:
        tls.append(routeros.IpService(f"tls-{range['key']}",
            numbers=range["key"],
            port=range["value"],
            certificate=tls_cert.name,
            tls_version="only-1.2",
            disabled=False))
    disabled = []
    for range in [{"key": k, "value": v} for [k, v] in enumerate(disable_service)]:
        disabled.append(routeros.IpService(f"disabled-{range['key']}",
            numbers=range["key"],
            port=range["value"],
            disabled=True))
    enabled = []
    for range in [{"key": k, "value": v} for [k, v] in enumerate(enable_service)]:
        enabled.append(routeros.IpService(f"enabled-{range['key']}",
            numbers=range["key"],
            port=range["value"],
            disabled=False))
    
    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 {
    		tlsService := map[string]interface{}{
    			"api-ssl": 8729,
    			"www-ssl": 443,
    		}
    		disableService := map[string]interface{}{
    			"api":    8728,
    			"ftp":    21,
    			"telnet": 23,
    			"www":    80,
    		}
    		enableService := map[string]interface{}{
    			"ssh":    22,
    			"winbox": 8291,
    		}
    		tlsCert, err := routeros.NewSystemCertificate(ctx, "tlsCert", &routeros.SystemCertificateArgs{
    			CommonName: pulumi.String("Mikrotik Router"),
    			DaysValid:  pulumi.Float64(3650),
    			KeyUsages: pulumi.StringArray{
    				pulumi.String("key-cert-sign"),
    				pulumi.String("crl-sign"),
    				pulumi.String("digital-signature"),
    				pulumi.String("key-agreement"),
    				pulumi.String("tls-server"),
    			},
    			KeySize: pulumi.String("prime256v1"),
    			Signs: routeros.SystemCertificateSignArray{
    				&routeros.SystemCertificateSignArgs{},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// terraform state rm 'routeros_ip_service.tls["www-ssl"]'
    		// terraform import 'routeros_ip_service.tls["www-ssl"]' www-ssl
    		var tls []*routeros.IpService
    		for key0, val0 := range tlsService {
    			__res, err := routeros.NewIpService(ctx, fmt.Sprintf("tls-%v", key0), &routeros.IpServiceArgs{
    				Numbers:     pulumi.String(key0),
    				Port:        pulumi.Float64(val0),
    				Certificate: tlsCert.Name,
    				TlsVersion:  pulumi.String("only-1.2"),
    				Disabled:    pulumi.Bool(false),
    			})
    			if err != nil {
    				return err
    			}
    			tls = append(tls, __res)
    		}
    		var disabled []*routeros.IpService
    		for key0, val0 := range disableService {
    			__res, err := routeros.NewIpService(ctx, fmt.Sprintf("disabled-%v", key0), &routeros.IpServiceArgs{
    				Numbers:  pulumi.String(key0),
    				Port:     pulumi.Float64(val0),
    				Disabled: pulumi.Bool(true),
    			})
    			if err != nil {
    				return err
    			}
    			disabled = append(disabled, __res)
    		}
    		var enabled []*routeros.IpService
    		for key0, val0 := range enableService {
    			__res, err := routeros.NewIpService(ctx, fmt.Sprintf("enabled-%v", key0), &routeros.IpServiceArgs{
    				Numbers:  pulumi.String(key0),
    				Port:     pulumi.Float64(val0),
    				Disabled: pulumi.Bool(false),
    			})
    			if err != nil {
    				return err
    			}
    			enabled = append(enabled, __res)
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Routeros = Pulumi.Routeros;
    
    return await Deployment.RunAsync(() => 
    {
        var tlsService = 
        {
            { "api-ssl", 8729 },
            { "www-ssl", 443 },
        };
    
        var disableService = 
        {
            { "api", 8728 },
            { "ftp", 21 },
            { "telnet", 23 },
            { "www", 80 },
        };
    
        var enableService = 
        {
            { "ssh", 22 },
            { "winbox", 8291 },
        };
    
        var tlsCert = new Routeros.SystemCertificate("tlsCert", new()
        {
            CommonName = "Mikrotik Router",
            DaysValid = 3650,
            KeyUsages = new[]
            {
                "key-cert-sign",
                "crl-sign",
                "digital-signature",
                "key-agreement",
                "tls-server",
            },
            KeySize = "prime256v1",
            Signs = new[]
            {
                null,
            },
        });
    
        // terraform state rm 'routeros_ip_service.tls["www-ssl"]'
        // terraform import 'routeros_ip_service.tls["www-ssl"]' www-ssl
        var tls = new List<Routeros.IpService>();
        foreach (var range in tlsService.Select(pair => new { pair.Key, pair.Value }))
        {
            tls.Add(new Routeros.IpService($"tls-{range.Key}", new()
            {
                Numbers = range.Key,
                Port = range.Value,
                Certificate = tlsCert.Name,
                TlsVersion = "only-1.2",
                Disabled = false,
            }));
        }
        var disabled = new List<Routeros.IpService>();
        foreach (var range in disableService.Select(pair => new { pair.Key, pair.Value }))
        {
            disabled.Add(new Routeros.IpService($"disabled-{range.Key}", new()
            {
                Numbers = range.Key,
                Port = range.Value,
                Disabled = true,
            }));
        }
        var enabled = new List<Routeros.IpService>();
        foreach (var range in enableService.Select(pair => new { pair.Key, pair.Value }))
        {
            enabled.Add(new Routeros.IpService($"enabled-{range.Key}", new()
            {
                Numbers = range.Key,
                Port = range.Value,
                Disabled = false,
            }));
        }
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.routeros.SystemCertificate;
    import com.pulumi.routeros.SystemCertificateArgs;
    import com.pulumi.routeros.inputs.SystemCertificateSignArgs;
    import com.pulumi.routeros.IpService;
    import com.pulumi.routeros.IpServiceArgs;
    import com.pulumi.codegen.internal.KeyedValue;
    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) {
            final var tlsService = %!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
            final var disableService = %!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
            final var enableService = %!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
            var tlsCert = new SystemCertificate("tlsCert", SystemCertificateArgs.builder()
                .commonName("Mikrotik Router")
                .daysValid(3650)
                .keyUsages(            
                    "key-cert-sign",
                    "crl-sign",
                    "digital-signature",
                    "key-agreement",
                    "tls-server")
                .keySize("prime256v1")
                .signs()
                .build());
    
            // terraform state rm 'routeros_ip_service.tls["www-ssl"]'
            // terraform import 'routeros_ip_service.tls["www-ssl"]' www-ssl
            for (var range : KeyedValue.of(tlsService)) {
                new IpService("tls-" + range.key(), IpServiceArgs.builder()
                    .numbers(range.key())
                    .port(range.value())
                    .certificate(tlsCert.name())
                    .tlsVersion("only-1.2")
                    .disabled(false)
                    .build());
            }
    
            for (var range : KeyedValue.of(disableService)) {
                new IpService("disabled-" + range.key(), IpServiceArgs.builder()
                    .numbers(range.key())
                    .port(range.value())
                    .disabled(true)
                    .build());
            }
    
            for (var range : KeyedValue.of(enableService)) {
                new IpService("enabled-" + range.key(), IpServiceArgs.builder()
                    .numbers(range.key())
                    .port(range.value())
                    .disabled(false)
                    .build());
            }
    
        }
    }
    
    resources:
      tlsCert:
        type: routeros:SystemCertificate
        properties:
          commonName: Mikrotik Router
          daysValid: 3650
          keyUsages:
            - key-cert-sign
            - crl-sign
            - digital-signature
            - key-agreement
            - tls-server
          keySize: prime256v1
          signs:
            - {}
      # terraform state rm 'routeros_ip_service.tls["www-ssl"]'
      # terraform import 'routeros_ip_service.tls["www-ssl"]' www-ssl
      tls:
        type: routeros:IpService
        properties:
          numbers: ${range.key}
          port: ${range.value}
          certificate: ${tlsCert.name}
          tlsVersion: only-1.2
          disabled: false
        options: {}
      disabled:
        type: routeros:IpService
        properties:
          numbers: ${range.key}
          port: ${range.value}
          disabled: true
        options: {}
      enabled:
        type: routeros:IpService
        properties:
          numbers: ${range.key}
          port: ${range.value}
          disabled: false
        options: {}
    variables:
      tlsService:
        api-ssl: 8729
        www-ssl: 443
      disableService:
        api: 8728
        ftp: 21
        telnet: 23
        www: 80
      enableService:
        ssh: 22
        winbox: 8291
    

    Create IpService Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IpService(name: string, args: IpServiceArgs, opts?: CustomResourceOptions);
    @overload
    def IpService(resource_name: str,
                  args: IpServiceArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def IpService(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  numbers: Optional[str] = None,
                  port: Optional[float] = None,
                  ___id_: Optional[float] = None,
                  ___path_: Optional[str] = None,
                  address: Optional[str] = None,
                  certificate: Optional[str] = None,
                  disabled: Optional[bool] = None,
                  ip_service_id: Optional[str] = None,
                  max_sessions: Optional[float] = None,
                  tls_version: Optional[str] = None,
                  vrf: Optional[str] = None)
    func NewIpService(ctx *Context, name string, args IpServiceArgs, opts ...ResourceOption) (*IpService, error)
    public IpService(string name, IpServiceArgs args, CustomResourceOptions? opts = null)
    public IpService(String name, IpServiceArgs args)
    public IpService(String name, IpServiceArgs args, CustomResourceOptions options)
    
    type: routeros:IpService
    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 IpServiceArgs
    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 IpServiceArgs
    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 IpServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IpServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IpServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    IpService 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 IpService resource accepts the following input properties:

    Numbers string
    The name of the service whose settings will be changed ( api, api-ssl, ftp, ssh, telnet, winbox, www, www-ssl ).
    Port double
    The port particular service listens on.
    Address string
    List of IP/IPv6 prefixes from which the service is accessible.
    Certificate string
    The name of the certificate used by a particular service. Applicable only for services that depend on certificates ( www-ssl, api-ssl ).
    Disabled bool
    IpServiceId string
    The ID of this resource.
    MaxSessions double
    Maximum number of concurrent connections to a particular service. This option is available in RouterOS starting from version 7.16.
    TlsVersion string
    Specifies which TLS versions to allow by a particular service.
    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.
    Numbers string
    The name of the service whose settings will be changed ( api, api-ssl, ftp, ssh, telnet, winbox, www, www-ssl ).
    Port float64
    The port particular service listens on.
    Address string
    List of IP/IPv6 prefixes from which the service is accessible.
    Certificate string
    The name of the certificate used by a particular service. Applicable only for services that depend on certificates ( www-ssl, api-ssl ).
    Disabled bool
    IpServiceId string
    The ID of this resource.
    MaxSessions float64
    Maximum number of concurrent connections to a particular service. This option is available in RouterOS starting from version 7.16.
    TlsVersion string
    Specifies which TLS versions to allow by a particular service.
    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.
    numbers String
    The name of the service whose settings will be changed ( api, api-ssl, ftp, ssh, telnet, winbox, www, www-ssl ).
    port Double
    The port particular service listens 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.
    address String
    List of IP/IPv6 prefixes from which the service is accessible.
    certificate String
    The name of the certificate used by a particular service. Applicable only for services that depend on certificates ( www-ssl, api-ssl ).
    disabled Boolean
    ipServiceId String
    The ID of this resource.
    maxSessions Double
    Maximum number of concurrent connections to a particular service. This option is available in RouterOS starting from version 7.16.
    tlsVersion String
    Specifies which TLS versions to allow by a particular service.
    vrf String
    The VRF table this resource operates on.
    numbers string
    The name of the service whose settings will be changed ( api, api-ssl, ftp, ssh, telnet, winbox, www, www-ssl ).
    port number
    The port particular service listens 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.
    address string
    List of IP/IPv6 prefixes from which the service is accessible.
    certificate string
    The name of the certificate used by a particular service. Applicable only for services that depend on certificates ( www-ssl, api-ssl ).
    disabled boolean
    ipServiceId string
    The ID of this resource.
    maxSessions number
    Maximum number of concurrent connections to a particular service. This option is available in RouterOS starting from version 7.16.
    tlsVersion string
    Specifies which TLS versions to allow by a particular service.
    vrf string
    The VRF table this resource operates on.
    numbers str
    The name of the service whose settings will be changed ( api, api-ssl, ftp, ssh, telnet, winbox, www, www-ssl ).
    port float
    The port particular service listens 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.
    address str
    List of IP/IPv6 prefixes from which the service is accessible.
    certificate str
    The name of the certificate used by a particular service. Applicable only for services that depend on certificates ( www-ssl, api-ssl ).
    disabled bool
    ip_service_id str
    The ID of this resource.
    max_sessions float
    Maximum number of concurrent connections to a particular service. This option is available in RouterOS starting from version 7.16.
    tls_version str
    Specifies which TLS versions to allow by a particular service.
    vrf str
    The VRF table this resource operates on.
    numbers String
    The name of the service whose settings will be changed ( api, api-ssl, ftp, ssh, telnet, winbox, www, www-ssl ).
    port Number
    The port particular service listens 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.
    address String
    List of IP/IPv6 prefixes from which the service is accessible.
    certificate String
    The name of the certificate used by a particular service. Applicable only for services that depend on certificates ( www-ssl, api-ssl ).
    disabled Boolean
    ipServiceId String
    The ID of this resource.
    maxSessions Number
    Maximum number of concurrent connections to a particular service. This option is available in RouterOS starting from version 7.16.
    tlsVersion String
    Specifies which TLS versions to allow by a particular service.
    vrf String
    The VRF table this resource operates on.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IpService resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Invalid bool
    Name string
    Service name.
    Id string
    The provider-assigned unique ID for this managed resource.
    Invalid bool
    Name string
    Service name.
    id String
    The provider-assigned unique ID for this managed resource.
    invalid Boolean
    name String
    Service name.
    id string
    The provider-assigned unique ID for this managed resource.
    invalid boolean
    name string
    Service name.
    id str
    The provider-assigned unique ID for this managed resource.
    invalid bool
    name str
    Service name.
    id String
    The provider-assigned unique ID for this managed resource.
    invalid Boolean
    name String
    Service name.

    Look up Existing IpService Resource

    Get an existing IpService 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?: IpServiceState, opts?: CustomResourceOptions): IpService
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ___id_: Optional[float] = None,
            ___path_: Optional[str] = None,
            address: Optional[str] = None,
            certificate: Optional[str] = None,
            disabled: Optional[bool] = None,
            invalid: Optional[bool] = None,
            ip_service_id: Optional[str] = None,
            max_sessions: Optional[float] = None,
            name: Optional[str] = None,
            numbers: Optional[str] = None,
            port: Optional[float] = None,
            tls_version: Optional[str] = None,
            vrf: Optional[str] = None) -> IpService
    func GetIpService(ctx *Context, name string, id IDInput, state *IpServiceState, opts ...ResourceOption) (*IpService, error)
    public static IpService Get(string name, Input<string> id, IpServiceState? state, CustomResourceOptions? opts = null)
    public static IpService get(String name, Output<String> id, IpServiceState state, CustomResourceOptions options)
    resources:  _:    type: routeros:IpService    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.
    The following state arguments are supported:
    Address string
    List of IP/IPv6 prefixes from which the service is accessible.
    Certificate string
    The name of the certificate used by a particular service. Applicable only for services that depend on certificates ( www-ssl, api-ssl ).
    Disabled bool
    Invalid bool
    IpServiceId string
    The ID of this resource.
    MaxSessions double
    Maximum number of concurrent connections to a particular service. This option is available in RouterOS starting from version 7.16.
    Name string
    Service name.
    Numbers string
    The name of the service whose settings will be changed ( api, api-ssl, ftp, ssh, telnet, winbox, www, www-ssl ).
    Port double
    The port particular service listens on.
    TlsVersion string
    Specifies which TLS versions to allow by a particular service.
    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.
    Address string
    List of IP/IPv6 prefixes from which the service is accessible.
    Certificate string
    The name of the certificate used by a particular service. Applicable only for services that depend on certificates ( www-ssl, api-ssl ).
    Disabled bool
    Invalid bool
    IpServiceId string
    The ID of this resource.
    MaxSessions float64
    Maximum number of concurrent connections to a particular service. This option is available in RouterOS starting from version 7.16.
    Name string
    Service name.
    Numbers string
    The name of the service whose settings will be changed ( api, api-ssl, ftp, ssh, telnet, winbox, www, www-ssl ).
    Port float64
    The port particular service listens on.
    TlsVersion string
    Specifies which TLS versions to allow by a particular service.
    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.
    address String
    List of IP/IPv6 prefixes from which the service is accessible.
    certificate String
    The name of the certificate used by a particular service. Applicable only for services that depend on certificates ( www-ssl, api-ssl ).
    disabled Boolean
    invalid Boolean
    ipServiceId String
    The ID of this resource.
    maxSessions Double
    Maximum number of concurrent connections to a particular service. This option is available in RouterOS starting from version 7.16.
    name String
    Service name.
    numbers String
    The name of the service whose settings will be changed ( api, api-ssl, ftp, ssh, telnet, winbox, www, www-ssl ).
    port Double
    The port particular service listens on.
    tlsVersion String
    Specifies which TLS versions to allow by a particular service.
    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.
    address string
    List of IP/IPv6 prefixes from which the service is accessible.
    certificate string
    The name of the certificate used by a particular service. Applicable only for services that depend on certificates ( www-ssl, api-ssl ).
    disabled boolean
    invalid boolean
    ipServiceId string
    The ID of this resource.
    maxSessions number
    Maximum number of concurrent connections to a particular service. This option is available in RouterOS starting from version 7.16.
    name string
    Service name.
    numbers string
    The name of the service whose settings will be changed ( api, api-ssl, ftp, ssh, telnet, winbox, www, www-ssl ).
    port number
    The port particular service listens on.
    tlsVersion string
    Specifies which TLS versions to allow by a particular service.
    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.
    address str
    List of IP/IPv6 prefixes from which the service is accessible.
    certificate str
    The name of the certificate used by a particular service. Applicable only for services that depend on certificates ( www-ssl, api-ssl ).
    disabled bool
    invalid bool
    ip_service_id str
    The ID of this resource.
    max_sessions float
    Maximum number of concurrent connections to a particular service. This option is available in RouterOS starting from version 7.16.
    name str
    Service name.
    numbers str
    The name of the service whose settings will be changed ( api, api-ssl, ftp, ssh, telnet, winbox, www, www-ssl ).
    port float
    The port particular service listens on.
    tls_version str
    Specifies which TLS versions to allow by a particular service.
    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.
    address String
    List of IP/IPv6 prefixes from which the service is accessible.
    certificate String
    The name of the certificate used by a particular service. Applicable only for services that depend on certificates ( www-ssl, api-ssl ).
    disabled Boolean
    invalid Boolean
    ipServiceId String
    The ID of this resource.
    maxSessions Number
    Maximum number of concurrent connections to a particular service. This option is available in RouterOS starting from version 7.16.
    name String
    Service name.
    numbers String
    The name of the service whose settings will be changed ( api, api-ssl, ftp, ssh, telnet, winbox, www, www-ssl ).
    port Number
    The port particular service listens on.
    tlsVersion String
    Specifies which TLS versions to allow by a particular service.
    vrf String
    The VRF table this resource operates on.

    Import

    Import with the name of the ip service in case of the example use www-ssl

    $ pulumi import routeros:index/ipService:IpService www_ssl www-ssl
    

    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.
    routeros logo
    routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros