routeros.SystemClock
Explore with Pulumi AI
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.
- System
Clock stringId - The ID of this resource.
- Time string
- Time.
- Time
Zone boolAutodetect - Feature available from v6.27. If enabled, the time zone will be set automatically.
- Time
Zone stringName - 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.
- System
Clock stringId - The ID of this resource.
- Time string
- Time.
- Time
Zone boolAutodetect - Feature available from v6.27. If enabled, the time zone will be set automatically.
- Time
Zone stringName - 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.
- system
Clock StringId - The ID of this resource.
- time String
- Time.
- time
Zone BooleanAutodetect - Feature available from v6.27. If enabled, the time zone will be set automatically.
- time
Zone StringName - 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.
- system
Clock stringId - The ID of this resource.
- time string
- Time.
- time
Zone booleanAutodetect - Feature available from v6.27. If enabled, the time zone will be set automatically.
- time
Zone stringName - 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_ strid - The ID of this resource.
- time str
- Time.
- time_
zone_ boolautodetect - Feature available from v6.27. If enabled, the time zone will be set automatically.
- time_
zone_ strname - 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.
- system
Clock StringId - The ID of this resource.
- time String
- Time.
- time
Zone BooleanAutodetect - Feature available from v6.27. If enabled, the time zone will be set automatically.
- time
Zone StringName - 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:
- Dst
Active bool - This property has the value yes while daylight saving time of the current time zone is active.
- Gmt
Offset 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 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 Boolean - This property has the value yes while daylight saving time of the current time zone is active.
- gmt
Offset 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 boolean - This property has the value yes while daylight saving time of the current time zone is active.
- gmt
Offset 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.
- dst
Active Boolean - This property has the value yes while daylight saving time of the current time zone is active.
- gmt
Offset 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.
- Date string
- Date.
- Dst
Active bool - This property has the value yes while daylight saving time of the current time zone is active.
- Gmt
Offset 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.
- System
Clock stringId - The ID of this resource.
- Time string
- Time.
- Time
Zone boolAutodetect - Feature available from v6.27. If enabled, the time zone will be set automatically.
- Time
Zone stringName - 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.
- Dst
Active bool - This property has the value yes while daylight saving time of the current time zone is active.
- Gmt
Offset 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.
- System
Clock stringId - The ID of this resource.
- Time string
- Time.
- Time
Zone boolAutodetect - Feature available from v6.27. If enabled, the time zone will be set automatically.
- Time
Zone stringName - 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.
- dst
Active Boolean - This property has the value yes while daylight saving time of the current time zone is active.
- gmt
Offset 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.
- system
Clock StringId - The ID of this resource.
- time String
- Time.
- time
Zone BooleanAutodetect - Feature available from v6.27. If enabled, the time zone will be set automatically.
- time
Zone StringName - 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.
- dst
Active boolean - This property has the value yes while daylight saving time of the current time zone is active.
- gmt
Offset 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.
- system
Clock stringId - The ID of this resource.
- time string
- Time.
- time
Zone booleanAutodetect - Feature available from v6.27. If enabled, the time zone will be set automatically.
- time
Zone stringName - 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_ strid - The ID of this resource.
- time str
- Time.
- time_
zone_ boolautodetect - Feature available from v6.27. If enabled, the time zone will be set automatically.
- time_
zone_ strname - 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.
- dst
Active Boolean - This property has the value yes while daylight saving time of the current time zone is active.
- gmt
Offset 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.
- system
Clock StringId - The ID of this resource.
- time String
- Time.
- time
Zone BooleanAutodetect - Feature available from v6.27. If enabled, the time zone will be set automatically.
- time
Zone StringName - 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.