1. Packages
  2. Routeros Provider
  3. API Docs
  4. SystemLed
routeros 1.83.0 published on Wednesday, Apr 16, 2025 by terraform-routeros

routeros.SystemLed

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";

const sfp1 = new routeros.SystemLed("sfp1", {
    "interface": "sfp1",
    leds: ["sfp-led"],
    type: "interface-activity",
});
Copy
import pulumi
import pulumi_routeros as routeros

sfp1 = routeros.SystemLed("sfp1",
    interface="sfp1",
    leds=["sfp-led"],
    type="interface-activity")
Copy
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.NewSystemLed(ctx, "sfp1", &routeros.SystemLedArgs{
			Interface: pulumi.String("sfp1"),
			Leds: pulumi.StringArray{
				pulumi.String("sfp-led"),
			},
			Type: pulumi.String("interface-activity"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Routeros = Pulumi.Routeros;

return await Deployment.RunAsync(() => 
{
    var sfp1 = new Routeros.SystemLed("sfp1", new()
    {
        Interface = "sfp1",
        Leds = new[]
        {
            "sfp-led",
        },
        Type = "interface-activity",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.SystemLed;
import com.pulumi.routeros.SystemLedArgs;
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 sfp1 = new SystemLed("sfp1", SystemLedArgs.builder()
            .interface_("sfp1")
            .leds("sfp-led")
            .type("interface-activity")
            .build());

    }
}
Copy
resources:
  sfp1:
    type: routeros:SystemLed
    properties:
      interface: sfp1
      leds:
        - sfp-led
      type: interface-activity
Copy

Create SystemLed Resource

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

Constructor syntax

new SystemLed(name: string, args?: SystemLedArgs, opts?: CustomResourceOptions);
@overload
def SystemLed(resource_name: str,
              args: Optional[SystemLedArgs] = None,
              opts: Optional[ResourceOptions] = None)

@overload
def SystemLed(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              ___id_: Optional[float] = None,
              ___path_: Optional[str] = None,
              disabled: Optional[bool] = None,
              interface: Optional[str] = None,
              leds: Optional[Sequence[str]] = None,
              modem_signal_treshold: Optional[float] = None,
              system_led_id: Optional[str] = None,
              type: Optional[str] = None)
func NewSystemLed(ctx *Context, name string, args *SystemLedArgs, opts ...ResourceOption) (*SystemLed, error)
public SystemLed(string name, SystemLedArgs? args = null, CustomResourceOptions? opts = null)
public SystemLed(String name, SystemLedArgs args)
public SystemLed(String name, SystemLedArgs args, CustomResourceOptions options)
type: routeros:SystemLed
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args SystemLedArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args SystemLedArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args SystemLedArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args SystemLedArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SystemLedArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Disabled bool
Interface string
An option to set the interface to which the LED is connected.
Leds List<string>
An option to set the LED name.
ModemSignalTreshold double
An option to set the signal strength threshold for the modem LED.
SystemLedId string
The ID of this resource.
Type string
An option to set the LED type.
___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.
Disabled bool
Interface string
An option to set the interface to which the LED is connected.
Leds []string
An option to set the LED name.
ModemSignalTreshold float64
An option to set the signal strength threshold for the modem LED.
SystemLedId string
The ID of this resource.
Type string
An option to set the LED type.
___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.
disabled Boolean
interface_ String
An option to set the interface to which the LED is connected.
leds List<String>
An option to set the LED name.
modemSignalTreshold Double
An option to set the signal strength threshold for the modem LED.
systemLedId String
The ID of this resource.
type String
An option to set the LED type.
___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.
disabled boolean
interface string
An option to set the interface to which the LED is connected.
leds string[]
An option to set the LED name.
modemSignalTreshold number
An option to set the signal strength threshold for the modem LED.
systemLedId string
The ID of this resource.
type string
An option to set the LED type.
___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.
disabled bool
interface str
An option to set the interface to which the LED is connected.
leds Sequence[str]
An option to set the LED name.
modem_signal_treshold float
An option to set the signal strength threshold for the modem LED.
system_led_id str
The ID of this resource.
type str
An option to set the LED type.
___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.
disabled Boolean
interface String
An option to set the interface to which the LED is connected.
leds List<String>
An option to set the LED name.
modemSignalTreshold Number
An option to set the signal strength threshold for the modem LED.
systemLedId String
The ID of this resource.
type String
An option to set the LED type.

Outputs

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

Default bool
It's the default item.
Id string
The provider-assigned unique ID for this managed resource.
Default bool
It's the default item.
Id string
The provider-assigned unique ID for this managed resource.
default_ Boolean
It's the default item.
id String
The provider-assigned unique ID for this managed resource.
default boolean
It's the default item.
id string
The provider-assigned unique ID for this managed resource.
default bool
It's the default item.
id str
The provider-assigned unique ID for this managed resource.
default Boolean
It's the default item.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing SystemLed Resource

Get an existing SystemLed 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?: SystemLedState, opts?: CustomResourceOptions): SystemLed
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ___id_: Optional[float] = None,
        ___path_: Optional[str] = None,
        default: Optional[bool] = None,
        disabled: Optional[bool] = None,
        interface: Optional[str] = None,
        leds: Optional[Sequence[str]] = None,
        modem_signal_treshold: Optional[float] = None,
        system_led_id: Optional[str] = None,
        type: Optional[str] = None) -> SystemLed
func GetSystemLed(ctx *Context, name string, id IDInput, state *SystemLedState, opts ...ResourceOption) (*SystemLed, error)
public static SystemLed Get(string name, Input<string> id, SystemLedState? state, CustomResourceOptions? opts = null)
public static SystemLed get(String name, Output<String> id, SystemLedState state, CustomResourceOptions options)
resources:  _:    type: routeros:SystemLed    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Default bool
It's the default item.
Disabled bool
Interface string
An option to set the interface to which the LED is connected.
Leds List<string>
An option to set the LED name.
ModemSignalTreshold double
An option to set the signal strength threshold for the modem LED.
SystemLedId string
The ID of this resource.
Type string
An option to set the LED type.
___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.
Default bool
It's the default item.
Disabled bool
Interface string
An option to set the interface to which the LED is connected.
Leds []string
An option to set the LED name.
ModemSignalTreshold float64
An option to set the signal strength threshold for the modem LED.
SystemLedId string
The ID of this resource.
Type string
An option to set the LED type.
___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.
default_ Boolean
It's the default item.
disabled Boolean
interface_ String
An option to set the interface to which the LED is connected.
leds List<String>
An option to set the LED name.
modemSignalTreshold Double
An option to set the signal strength threshold for the modem LED.
systemLedId String
The ID of this resource.
type String
An option to set the LED type.
___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.
default boolean
It's the default item.
disabled boolean
interface string
An option to set the interface to which the LED is connected.
leds string[]
An option to set the LED name.
modemSignalTreshold number
An option to set the signal strength threshold for the modem LED.
systemLedId string
The ID of this resource.
type string
An option to set the LED type.
___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.
default bool
It's the default item.
disabled bool
interface str
An option to set the interface to which the LED is connected.
leds Sequence[str]
An option to set the LED name.
modem_signal_treshold float
An option to set the signal strength threshold for the modem LED.
system_led_id str
The ID of this resource.
type str
An option to set the LED type.
___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.
default Boolean
It's the default item.
disabled Boolean
interface String
An option to set the interface to which the LED is connected.
leds List<String>
An option to set the LED name.
modemSignalTreshold Number
An option to set the signal strength threshold for the modem LED.
systemLedId String
The ID of this resource.
type String
An option to set the LED type.

Import

#The ID can be found via API or the terminal

#The command for the terminal is -> :put [/system/leds get [print show-ids]]

$ pulumi import routeros:index/systemLed:SystemLed sfp1 '*1'
Copy

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.