routeros.SystemScheduler
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as routeros from "@pulumi/routeros";
const schedule1 = new routeros.SystemScheduler("schedule1", {onEvent: "script name"});
import pulumi
import pulumi_routeros as routeros
schedule1 = routeros.SystemScheduler("schedule1", on_event="script name")
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.NewSystemScheduler(ctx, "schedule1", &routeros.SystemSchedulerArgs{
OnEvent: pulumi.String("script name"),
})
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 schedule1 = new Routeros.SystemScheduler("schedule1", new()
{
OnEvent = "script name",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.routeros.SystemScheduler;
import com.pulumi.routeros.SystemSchedulerArgs;
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 schedule1 = new SystemScheduler("schedule1", SystemSchedulerArgs.builder()
.onEvent("script name")
.build());
}
}
resources:
schedule1:
type: routeros:SystemScheduler
properties:
onEvent: script name
Create SystemScheduler Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SystemScheduler(name: string, args: SystemSchedulerArgs, opts?: CustomResourceOptions);
@overload
def SystemScheduler(resource_name: str,
args: SystemSchedulerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SystemScheduler(resource_name: str,
opts: Optional[ResourceOptions] = None,
on_event: Optional[str] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
comment: Optional[str] = None,
disabled: Optional[bool] = None,
interval: Optional[str] = None,
name: Optional[str] = None,
policies: Optional[Sequence[str]] = None,
start_date: Optional[str] = None,
start_time: Optional[str] = None,
system_scheduler_id: Optional[str] = None)
func NewSystemScheduler(ctx *Context, name string, args SystemSchedulerArgs, opts ...ResourceOption) (*SystemScheduler, error)
public SystemScheduler(string name, SystemSchedulerArgs args, CustomResourceOptions? opts = null)
public SystemScheduler(String name, SystemSchedulerArgs args)
public SystemScheduler(String name, SystemSchedulerArgs args, CustomResourceOptions options)
type: routeros:SystemScheduler
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 SystemSchedulerArgs
- 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 SystemSchedulerArgs
- 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 SystemSchedulerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SystemSchedulerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SystemSchedulerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SystemScheduler 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 SystemScheduler resource accepts the following input properties:
- On
Event string - Name of the script to execute. It must be presented at /system script.
- Comment string
- Disabled bool
- Interval string
- Interval between two script executions, if time interval is set to zero, the script is only executed at its start time, otherwise it is executed repeatedly at the time interval is specified.
- Name string
- Policies List<string>
- List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy that grants user management rights. Should be used together with the write policy. Allows also to see global variables created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot - Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive - Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write access to the router's configuration, except for user management. This policy does not allow to read the configuration, so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
- Start
Date string - Date of the first script execution.
- Start
Time string - Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler will not run at startup.
- System
Scheduler stringId - ___
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.
- On
Event string - Name of the script to execute. It must be presented at /system script.
- Comment string
- Disabled bool
- Interval string
- Interval between two script executions, if time interval is set to zero, the script is only executed at its start time, otherwise it is executed repeatedly at the time interval is specified.
- Name string
- Policies []string
- List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy that grants user management rights. Should be used together with the write policy. Allows also to see global variables created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot - Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive - Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write access to the router's configuration, except for user management. This policy does not allow to read the configuration, so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
- Start
Date string - Date of the first script execution.
- Start
Time string - Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler will not run at startup.
- System
Scheduler stringId - ___
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.
- on
Event String - Name of the script to execute. It must be presented at /system script.
- ___
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
- interval String
- Interval between two script executions, if time interval is set to zero, the script is only executed at its start time, otherwise it is executed repeatedly at the time interval is specified.
- name String
- policies List<String>
- List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy that grants user management rights. Should be used together with the write policy. Allows also to see global variables created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot - Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive - Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write access to the router's configuration, except for user management. This policy does not allow to read the configuration, so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
- start
Date String - Date of the first script execution.
- start
Time String - Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler will not run at startup.
- system
Scheduler StringId
- on
Event string - Name of the script to execute. It must be presented at /system script.
- ___
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
- interval string
- Interval between two script executions, if time interval is set to zero, the script is only executed at its start time, otherwise it is executed repeatedly at the time interval is specified.
- name string
- policies string[]
- List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy that grants user management rights. Should be used together with the write policy. Allows also to see global variables created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot - Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive - Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write access to the router's configuration, except for user management. This policy does not allow to read the configuration, so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
- start
Date string - Date of the first script execution.
- start
Time string - Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler will not run at startup.
- system
Scheduler stringId
- on_
event str - Name of the script to execute. It must be presented at /system script.
- ___
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
- interval str
- Interval between two script executions, if time interval is set to zero, the script is only executed at its start time, otherwise it is executed repeatedly at the time interval is specified.
- name str
- policies Sequence[str]
- List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy that grants user management rights. Should be used together with the write policy. Allows also to see global variables created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot - Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive - Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write access to the router's configuration, except for user management. This policy does not allow to read the configuration, so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
- start_
date str - Date of the first script execution.
- start_
time str - Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler will not run at startup.
- system_
scheduler_ strid
- on
Event String - Name of the script to execute. It must be presented at /system script.
- ___
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
- interval String
- Interval between two script executions, if time interval is set to zero, the script is only executed at its start time, otherwise it is executed repeatedly at the time interval is specified.
- name String
- policies List<String>
- List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy that grants user management rights. Should be used together with the write policy. Allows also to see global variables created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot - Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive - Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write access to the router's configuration, except for user management. This policy does not allow to read the configuration, so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
- start
Date String - Date of the first script execution.
- start
Time String - Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler will not run at startup.
- system
Scheduler StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the SystemScheduler resource produces the following output properties:
Look up Existing SystemScheduler Resource
Get an existing SystemScheduler 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?: SystemSchedulerState, opts?: CustomResourceOptions): SystemScheduler
@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,
interval: Optional[str] = None,
name: Optional[str] = None,
next_run: Optional[str] = None,
on_event: Optional[str] = None,
owner: Optional[str] = None,
policies: Optional[Sequence[str]] = None,
run_count: Optional[str] = None,
start_date: Optional[str] = None,
start_time: Optional[str] = None,
system_scheduler_id: Optional[str] = None) -> SystemScheduler
func GetSystemScheduler(ctx *Context, name string, id IDInput, state *SystemSchedulerState, opts ...ResourceOption) (*SystemScheduler, error)
public static SystemScheduler Get(string name, Input<string> id, SystemSchedulerState? state, CustomResourceOptions? opts = null)
public static SystemScheduler get(String name, Output<String> id, SystemSchedulerState state, CustomResourceOptions options)
resources: _: type: routeros:SystemScheduler 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
- Interval string
- Interval between two script executions, if time interval is set to zero, the script is only executed at its start time, otherwise it is executed repeatedly at the time interval is specified.
- Name string
- Next
Run string - On
Event string - Name of the script to execute. It must be presented at /system script.
- Owner string
- Policies List<string>
- List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy that grants user management rights. Should be used together with the write policy. Allows also to see global variables created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot - Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive - Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write access to the router's configuration, except for user management. This policy does not allow to read the configuration, so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
- Run
Count string - This counter is incremented each time the script is executed.
- Start
Date string - Date of the first script execution.
- Start
Time string - Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler will not run at startup.
- System
Scheduler stringId - ___
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
- Interval string
- Interval between two script executions, if time interval is set to zero, the script is only executed at its start time, otherwise it is executed repeatedly at the time interval is specified.
- Name string
- Next
Run string - On
Event string - Name of the script to execute. It must be presented at /system script.
- Owner string
- Policies []string
- List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy that grants user management rights. Should be used together with the write policy. Allows also to see global variables created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot - Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive - Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write access to the router's configuration, except for user management. This policy does not allow to read the configuration, so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
- Run
Count string - This counter is incremented each time the script is executed.
- Start
Date string - Date of the first script execution.
- Start
Time string - Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler will not run at startup.
- System
Scheduler stringId - ___
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
- interval String
- Interval between two script executions, if time interval is set to zero, the script is only executed at its start time, otherwise it is executed repeatedly at the time interval is specified.
- name String
- next
Run String - on
Event String - Name of the script to execute. It must be presented at /system script.
- owner String
- policies List<String>
- List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy that grants user management rights. Should be used together with the write policy. Allows also to see global variables created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot - Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive - Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write access to the router's configuration, except for user management. This policy does not allow to read the configuration, so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
- run
Count String - This counter is incremented each time the script is executed.
- start
Date String - Date of the first script execution.
- start
Time String - Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler will not run at startup.
- system
Scheduler StringId
- ___
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
- interval string
- Interval between two script executions, if time interval is set to zero, the script is only executed at its start time, otherwise it is executed repeatedly at the time interval is specified.
- name string
- next
Run string - on
Event string - Name of the script to execute. It must be presented at /system script.
- owner string
- policies string[]
- List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy that grants user management rights. Should be used together with the write policy. Allows also to see global variables created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot - Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive - Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write access to the router's configuration, except for user management. This policy does not allow to read the configuration, so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
- run
Count string - This counter is incremented each time the script is executed.
- start
Date string - Date of the first script execution.
- start
Time string - Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler will not run at startup.
- system
Scheduler stringId
- ___
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
- interval str
- Interval between two script executions, if time interval is set to zero, the script is only executed at its start time, otherwise it is executed repeatedly at the time interval is specified.
- name str
- next_
run str - on_
event str - Name of the script to execute. It must be presented at /system script.
- owner str
- policies Sequence[str]
- List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy that grants user management rights. Should be used together with the write policy. Allows also to see global variables created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot - Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive - Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write access to the router's configuration, except for user management. This policy does not allow to read the configuration, so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
- run_
count str - This counter is incremented each time the script is executed.
- start_
date str - Date of the first script execution.
- start_
time str - Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler will not run at startup.
- system_
scheduler_ strid
- ___
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
- interval String
- Interval between two script executions, if time interval is set to zero, the script is only executed at its start time, otherwise it is executed repeatedly at the time interval is specified.
- name String
- next
Run String - on
Event String - Name of the script to execute. It must be presented at /system script.
- owner String
- policies List<String>
- List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy that grants user management rights. Should be used together with the write policy. Allows also to see global variables created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot - Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive - Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write access to the router's configuration, except for user management. This policy does not allow to read the configuration, so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
- run
Count String - This counter is incremented each time the script is executed.
- start
Date String - Date of the first script execution.
- start
Time String - Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler will not run at startup.
- system
Scheduler StringId
Import
#The ID can be found via API or the terminal
#The command for the terminal is -> :put [/system/scheduler get [print show-ids]]
$ pulumi import routeros:index/systemScheduler:SystemScheduler schedule1 "*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.