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

routeros.SystemClock

Explore with Pulumi AI

routeros logo
routeros 1.83.0 published on Wednesday, Apr 16, 2025 by terraform-routeros

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as routeros from "@pulumi/routeros";
    
    const set = new routeros.SystemClock("set", {
        date: "2024-05-15",
        time: "17:58:11",
        timeZoneName: "EST",
    });
    
    import pulumi
    import pulumi_routeros as routeros
    
    set = routeros.SystemClock("set",
        date="2024-05-15",
        time="17:58:11",
        time_zone_name="EST")
    
    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.NewSystemClock(ctx, "set", &routeros.SystemClockArgs{
    			Date:         pulumi.String("2024-05-15"),
    			Time:         pulumi.String("17:58:11"),
    			TimeZoneName: pulumi.String("EST"),
    		})
    		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 @set = new Routeros.SystemClock("set", new()
        {
            Date = "2024-05-15",
            Time = "17:58:11",
            TimeZoneName = "EST",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.routeros.SystemClock;
    import com.pulumi.routeros.SystemClockArgs;
    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 set = new SystemClock("set", SystemClockArgs.builder()
                .date("2024-05-15")
                .time("17:58:11")
                .timeZoneName("EST")
                .build());
    
        }
    }
    
    resources:
      set:
        type: routeros:SystemClock
        properties:
          date: 2024-05-15
          time: 17:58:11
          timeZoneName: EST
    

    Create SystemClock Resource

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

    Constructor syntax

    new SystemClock(name: string, args?: SystemClockArgs, opts?: CustomResourceOptions);
    @overload
    def SystemClock(resource_name: str,
                    args: Optional[SystemClockArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def SystemClock(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    ___id_: Optional[float] = None,
                    ___path_: Optional[str] = None,
                    date: Optional[str] = None,
                    system_clock_id: Optional[str] = None,
                    time: Optional[str] = None,
                    time_zone_autodetect: Optional[bool] = None,
                    time_zone_name: Optional[str] = None)
    func NewSystemClock(ctx *Context, name string, args *SystemClockArgs, opts ...ResourceOption) (*SystemClock, error)
    public SystemClock(string name, SystemClockArgs? args = null, CustomResourceOptions? opts = null)
    public SystemClock(String name, SystemClockArgs args)
    public SystemClock(String name, SystemClockArgs args, CustomResourceOptions options)
    
    type: routeros:SystemClock
    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 SystemClockArgs
    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 SystemClockArgs
    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 SystemClockArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SystemClockArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SystemClockArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Date string
    Date.
    SystemClockId string
    The ID of this resource.
    Time string
    Time.
    TimeZoneAutodetect bool
    Feature available from v6.27. If enabled, the time zone will be set automatically.
    TimeZoneName string
    Name of the time zone. As most of the text values in RouterOS, this value is case sensitive. Special value manual applies manually configured GMT offset, which by default is 00:00 with no daylight saving time.
    ___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.
    Date string
    Date.
    SystemClockId string
    The ID of this resource.
    Time string
    Time.
    TimeZoneAutodetect bool
    Feature available from v6.27. If enabled, the time zone will be set automatically.
    TimeZoneName string
    Name of the time zone. As most of the text values in RouterOS, this value is case sensitive. Special value manual applies manually configured GMT offset, which by default is 00:00 with no daylight saving time.
    ___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.
    date String
    Date.
    systemClockId String
    The ID of this resource.
    time String
    Time.
    timeZoneAutodetect Boolean
    Feature available from v6.27. If enabled, the time zone will be set automatically.
    timeZoneName String
    Name of the time zone. As most of the text values in RouterOS, this value is case sensitive. Special value manual applies manually configured GMT offset, which by default is 00:00 with no daylight saving time.
    ___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.
    date string
    Date.
    systemClockId string
    The ID of this resource.
    time string
    Time.
    timeZoneAutodetect boolean
    Feature available from v6.27. If enabled, the time zone will be set automatically.
    timeZoneName string
    Name of the time zone. As most of the text values in RouterOS, this value is case sensitive. Special value manual applies manually configured GMT offset, which by default is 00:00 with no daylight saving time.
    ___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.
    date str
    Date.
    system_clock_id str
    The ID of this resource.
    time str
    Time.
    time_zone_autodetect bool
    Feature available from v6.27. If enabled, the time zone will be set automatically.
    time_zone_name str
    Name of the time zone. As most of the text values in RouterOS, this value is case sensitive. Special value manual applies manually configured GMT offset, which by default is 00:00 with no daylight saving time.
    ___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.
    date String
    Date.
    systemClockId String
    The ID of this resource.
    time String
    Time.
    timeZoneAutodetect Boolean
    Feature available from v6.27. If enabled, the time zone will be set automatically.
    timeZoneName String
    Name of the time zone. As most of the text values in RouterOS, this value is case sensitive. Special value manual applies manually configured GMT offset, which by default is 00:00 with no daylight saving time.

    Outputs

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

    DstActive bool
    This property has the value yes while daylight saving time of the current time zone is active.
    GmtOffset string
    This is the current value of GMT offset used by the system, after applying base time zone offset and active daylight saving time offset.
    Id string
    The provider-assigned unique ID for this managed resource.
    DstActive bool
    This property has the value yes while daylight saving time of the current time zone is active.
    GmtOffset string
    This is the current value of GMT offset used by the system, after applying base time zone offset and active daylight saving time offset.
    Id string
    The provider-assigned unique ID for this managed resource.
    dstActive Boolean
    This property has the value yes while daylight saving time of the current time zone is active.
    gmtOffset String
    This is the current value of GMT offset used by the system, after applying base time zone offset and active daylight saving time offset.
    id String
    The provider-assigned unique ID for this managed resource.
    dstActive boolean
    This property has the value yes while daylight saving time of the current time zone is active.
    gmtOffset string
    This is the current value of GMT offset used by the system, after applying base time zone offset and active daylight saving time offset.
    id string
    The provider-assigned unique ID for this managed resource.
    dst_active bool
    This property has the value yes while daylight saving time of the current time zone is active.
    gmt_offset str
    This is the current value of GMT offset used by the system, after applying base time zone offset and active daylight saving time offset.
    id str
    The provider-assigned unique ID for this managed resource.
    dstActive Boolean
    This property has the value yes while daylight saving time of the current time zone is active.
    gmtOffset String
    This is the current value of GMT offset used by the system, after applying base time zone offset and active daylight saving time offset.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SystemClock Resource

    Get an existing SystemClock 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?: SystemClockState, opts?: CustomResourceOptions): SystemClock
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ___id_: Optional[float] = None,
            ___path_: Optional[str] = None,
            date: Optional[str] = None,
            dst_active: Optional[bool] = None,
            gmt_offset: Optional[str] = None,
            system_clock_id: Optional[str] = None,
            time: Optional[str] = None,
            time_zone_autodetect: Optional[bool] = None,
            time_zone_name: Optional[str] = None) -> SystemClock
    func GetSystemClock(ctx *Context, name string, id IDInput, state *SystemClockState, opts ...ResourceOption) (*SystemClock, error)
    public static SystemClock Get(string name, Input<string> id, SystemClockState? state, CustomResourceOptions? opts = null)
    public static SystemClock get(String name, Output<String> id, SystemClockState state, CustomResourceOptions options)
    resources:  _:    type: routeros:SystemClock    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:
    Date string
    Date.
    DstActive bool
    This property has the value yes while daylight saving time of the current time zone is active.
    GmtOffset string
    This is the current value of GMT offset used by the system, after applying base time zone offset and active daylight saving time offset.
    SystemClockId string
    The ID of this resource.
    Time string
    Time.
    TimeZoneAutodetect bool
    Feature available from v6.27. If enabled, the time zone will be set automatically.
    TimeZoneName string
    Name of the time zone. As most of the text values in RouterOS, this value is case sensitive. Special value manual applies manually configured GMT offset, which by default is 00:00 with no daylight saving time.
    ___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.
    Date string
    Date.
    DstActive bool
    This property has the value yes while daylight saving time of the current time zone is active.
    GmtOffset string
    This is the current value of GMT offset used by the system, after applying base time zone offset and active daylight saving time offset.
    SystemClockId string
    The ID of this resource.
    Time string
    Time.
    TimeZoneAutodetect bool
    Feature available from v6.27. If enabled, the time zone will be set automatically.
    TimeZoneName string
    Name of the time zone. As most of the text values in RouterOS, this value is case sensitive. Special value manual applies manually configured GMT offset, which by default is 00:00 with no daylight saving time.
    ___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.
    date String
    Date.
    dstActive Boolean
    This property has the value yes while daylight saving time of the current time zone is active.
    gmtOffset String
    This is the current value of GMT offset used by the system, after applying base time zone offset and active daylight saving time offset.
    systemClockId String
    The ID of this resource.
    time String
    Time.
    timeZoneAutodetect Boolean
    Feature available from v6.27. If enabled, the time zone will be set automatically.
    timeZoneName String
    Name of the time zone. As most of the text values in RouterOS, this value is case sensitive. Special value manual applies manually configured GMT offset, which by default is 00:00 with no daylight saving time.
    ___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.
    date string
    Date.
    dstActive boolean
    This property has the value yes while daylight saving time of the current time zone is active.
    gmtOffset string
    This is the current value of GMT offset used by the system, after applying base time zone offset and active daylight saving time offset.
    systemClockId string
    The ID of this resource.
    time string
    Time.
    timeZoneAutodetect boolean
    Feature available from v6.27. If enabled, the time zone will be set automatically.
    timeZoneName string
    Name of the time zone. As most of the text values in RouterOS, this value is case sensitive. Special value manual applies manually configured GMT offset, which by default is 00:00 with no daylight saving time.
    ___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.
    date str
    Date.
    dst_active bool
    This property has the value yes while daylight saving time of the current time zone is active.
    gmt_offset str
    This is the current value of GMT offset used by the system, after applying base time zone offset and active daylight saving time offset.
    system_clock_id str
    The ID of this resource.
    time str
    Time.
    time_zone_autodetect bool
    Feature available from v6.27. If enabled, the time zone will be set automatically.
    time_zone_name str
    Name of the time zone. As most of the text values in RouterOS, this value is case sensitive. Special value manual applies manually configured GMT offset, which by default is 00:00 with no daylight saving time.
    ___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.
    date String
    Date.
    dstActive Boolean
    This property has the value yes while daylight saving time of the current time zone is active.
    gmtOffset String
    This is the current value of GMT offset used by the system, after applying base time zone offset and active daylight saving time offset.
    systemClockId String
    The ID of this resource.
    time String
    Time.
    timeZoneAutodetect Boolean
    Feature available from v6.27. If enabled, the time zone will be set automatically.
    timeZoneName String
    Name of the time zone. As most of the text values in RouterOS, this value is case sensitive. Special value manual applies manually configured GMT offset, which by default is 00:00 with no daylight saving time.

    Import

    $ pulumi import routeros:index/systemClock:SystemClock set .
    

    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.0 published on Wednesday, Apr 16, 2025 by terraform-routeros