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

routeros.SystemNtpClient

Explore with Pulumi AI

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as routeros from "@pulumi/routeros";
    
    const test = new routeros.SystemNtpClient("test", {
        enabled: true,
        mode: "unicast",
        servers: [
            "146.59.35.38",
            "167.235.201.139",
        ],
    });
    
    import pulumi
    import pulumi_routeros as routeros
    
    test = routeros.SystemNtpClient("test",
        enabled=True,
        mode="unicast",
        servers=[
            "146.59.35.38",
            "167.235.201.139",
        ])
    
    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.NewSystemNtpClient(ctx, "test", &routeros.SystemNtpClientArgs{
    			Enabled: pulumi.Bool(true),
    			Mode:    pulumi.String("unicast"),
    			Servers: pulumi.StringArray{
    				pulumi.String("146.59.35.38"),
    				pulumi.String("167.235.201.139"),
    			},
    		})
    		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 test = new Routeros.SystemNtpClient("test", new()
        {
            Enabled = true,
            Mode = "unicast",
            Servers = new[]
            {
                "146.59.35.38",
                "167.235.201.139",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.routeros.SystemNtpClient;
    import com.pulumi.routeros.SystemNtpClientArgs;
    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 test = new SystemNtpClient("test", SystemNtpClientArgs.builder()
                .enabled(true)
                .mode("unicast")
                .servers(            
                    "146.59.35.38",
                    "167.235.201.139")
                .build());
    
        }
    }
    
    resources:
      test:
        type: routeros:SystemNtpClient
        properties:
          enabled: true
          mode: unicast
          servers:
            - 146.59.35.38
            - 167.235.201.139
    

    Create SystemNtpClient Resource

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

    Constructor syntax

    new SystemNtpClient(name: string, args?: SystemNtpClientArgs, opts?: CustomResourceOptions);
    @overload
    def SystemNtpClient(resource_name: str,
                        args: Optional[SystemNtpClientArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SystemNtpClient(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        ___id_: Optional[float] = None,
                        ___path_: Optional[str] = None,
                        enabled: Optional[bool] = None,
                        mode: Optional[str] = None,
                        servers: Optional[Sequence[str]] = None,
                        system_ntp_client_id: Optional[str] = None,
                        vrf: Optional[str] = None)
    func NewSystemNtpClient(ctx *Context, name string, args *SystemNtpClientArgs, opts ...ResourceOption) (*SystemNtpClient, error)
    public SystemNtpClient(string name, SystemNtpClientArgs? args = null, CustomResourceOptions? opts = null)
    public SystemNtpClient(String name, SystemNtpClientArgs args)
    public SystemNtpClient(String name, SystemNtpClientArgs args, CustomResourceOptions options)
    
    type: routeros:SystemNtpClient
    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 SystemNtpClientArgs
    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 SystemNtpClientArgs
    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 SystemNtpClientArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SystemNtpClientArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SystemNtpClientArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Enabled bool
    Enable NTP client.
    Mode string
    Mode that the NTP client will operate in
    Servers List<string>
    The list of NTP servers. It is possible to add static entries.The following formats are accepted: * FQDN ("Resolved Address" will appear in the "Servers"- window in an appropriate column if the address is resolved) or IP address can be used. If DHCP-Client property use-peer-ntp=yes - the dynamic entries advertised by DHCP * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
    SystemNtpClientId string
    Vrf string
    The VRF table this resource operates on.
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    Enabled bool
    Enable NTP client.
    Mode string
    Mode that the NTP client will operate in
    Servers []string
    The list of NTP servers. It is possible to add static entries.The following formats are accepted: * FQDN ("Resolved Address" will appear in the "Servers"- window in an appropriate column if the address is resolved) or IP address can be used. If DHCP-Client property use-peer-ntp=yes - the dynamic entries advertised by DHCP * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
    SystemNtpClientId string
    Vrf string
    The VRF table this resource operates on.
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    enabled Boolean
    Enable NTP client.
    mode String
    Mode that the NTP client will operate in
    servers List<String>
    The list of NTP servers. It is possible to add static entries.The following formats are accepted: * FQDN ("Resolved Address" will appear in the "Servers"- window in an appropriate column if the address is resolved) or IP address can be used. If DHCP-Client property use-peer-ntp=yes - the dynamic entries advertised by DHCP * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
    systemNtpClientId String
    vrf String
    The VRF table this resource operates on.
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    enabled boolean
    Enable NTP client.
    mode string
    Mode that the NTP client will operate in
    servers string[]
    The list of NTP servers. It is possible to add static entries.The following formats are accepted: * FQDN ("Resolved Address" will appear in the "Servers"- window in an appropriate column if the address is resolved) or IP address can be used. If DHCP-Client property use-peer-ntp=yes - the dynamic entries advertised by DHCP * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
    systemNtpClientId string
    vrf string
    The VRF table this resource operates on.
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    enabled bool
    Enable NTP client.
    mode str
    Mode that the NTP client will operate in
    servers Sequence[str]
    The list of NTP servers. It is possible to add static entries.The following formats are accepted: * FQDN ("Resolved Address" will appear in the "Servers"- window in an appropriate column if the address is resolved) or IP address can be used. If DHCP-Client property use-peer-ntp=yes - the dynamic entries advertised by DHCP * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
    system_ntp_client_id str
    vrf str
    The VRF table this resource operates on.
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    enabled Boolean
    Enable NTP client.
    mode String
    Mode that the NTP client will operate in
    servers List<String>
    The list of NTP servers. It is possible to add static entries.The following formats are accepted: * FQDN ("Resolved Address" will appear in the "Servers"- window in an appropriate column if the address is resolved) or IP address can be used. If DHCP-Client property use-peer-ntp=yes - the dynamic entries advertised by DHCP * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
    systemNtpClientId String
    vrf String
    The VRF table this resource operates on.

    Outputs

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

    FreqDrift string
    The fractional frequency drift per unit time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Current status of the NTP client.
    SyncedServer string
    The IP address of the NTP Server.
    SyncedStratum string
    The accuracy of each server is defined by a number called the stratum, with the topmost level (primary servers) assigned as one and each level downwards (secondary servers) in the hierarchy assigned as one greater than the preceding level.
    SystemOffset string
    This is a signed, fixed-point number indicating the offset of the NTP server's clock relative to the local clock, in seconds.
    FreqDrift string
    The fractional frequency drift per unit time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Current status of the NTP client.
    SyncedServer string
    The IP address of the NTP Server.
    SyncedStratum string
    The accuracy of each server is defined by a number called the stratum, with the topmost level (primary servers) assigned as one and each level downwards (secondary servers) in the hierarchy assigned as one greater than the preceding level.
    SystemOffset string
    This is a signed, fixed-point number indicating the offset of the NTP server's clock relative to the local clock, in seconds.
    freqDrift String
    The fractional frequency drift per unit time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Current status of the NTP client.
    syncedServer String
    The IP address of the NTP Server.
    syncedStratum String
    The accuracy of each server is defined by a number called the stratum, with the topmost level (primary servers) assigned as one and each level downwards (secondary servers) in the hierarchy assigned as one greater than the preceding level.
    systemOffset String
    This is a signed, fixed-point number indicating the offset of the NTP server's clock relative to the local clock, in seconds.
    freqDrift string
    The fractional frequency drift per unit time.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Current status of the NTP client.
    syncedServer string
    The IP address of the NTP Server.
    syncedStratum string
    The accuracy of each server is defined by a number called the stratum, with the topmost level (primary servers) assigned as one and each level downwards (secondary servers) in the hierarchy assigned as one greater than the preceding level.
    systemOffset string
    This is a signed, fixed-point number indicating the offset of the NTP server's clock relative to the local clock, in seconds.
    freq_drift str
    The fractional frequency drift per unit time.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Current status of the NTP client.
    synced_server str
    The IP address of the NTP Server.
    synced_stratum str
    The accuracy of each server is defined by a number called the stratum, with the topmost level (primary servers) assigned as one and each level downwards (secondary servers) in the hierarchy assigned as one greater than the preceding level.
    system_offset str
    This is a signed, fixed-point number indicating the offset of the NTP server's clock relative to the local clock, in seconds.
    freqDrift String
    The fractional frequency drift per unit time.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Current status of the NTP client.
    syncedServer String
    The IP address of the NTP Server.
    syncedStratum String
    The accuracy of each server is defined by a number called the stratum, with the topmost level (primary servers) assigned as one and each level downwards (secondary servers) in the hierarchy assigned as one greater than the preceding level.
    systemOffset String
    This is a signed, fixed-point number indicating the offset of the NTP server's clock relative to the local clock, in seconds.

    Look up Existing SystemNtpClient Resource

    Get an existing SystemNtpClient 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?: SystemNtpClientState, opts?: CustomResourceOptions): SystemNtpClient
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ___id_: Optional[float] = None,
            ___path_: Optional[str] = None,
            enabled: Optional[bool] = None,
            freq_drift: Optional[str] = None,
            mode: Optional[str] = None,
            servers: Optional[Sequence[str]] = None,
            status: Optional[str] = None,
            synced_server: Optional[str] = None,
            synced_stratum: Optional[str] = None,
            system_ntp_client_id: Optional[str] = None,
            system_offset: Optional[str] = None,
            vrf: Optional[str] = None) -> SystemNtpClient
    func GetSystemNtpClient(ctx *Context, name string, id IDInput, state *SystemNtpClientState, opts ...ResourceOption) (*SystemNtpClient, error)
    public static SystemNtpClient Get(string name, Input<string> id, SystemNtpClientState? state, CustomResourceOptions? opts = null)
    public static SystemNtpClient get(String name, Output<String> id, SystemNtpClientState state, CustomResourceOptions options)
    resources:  _:    type: routeros:SystemNtpClient    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:
    Enabled bool
    Enable NTP client.
    FreqDrift string
    The fractional frequency drift per unit time.
    Mode string
    Mode that the NTP client will operate in
    Servers List<string>
    The list of NTP servers. It is possible to add static entries.The following formats are accepted: * FQDN ("Resolved Address" will appear in the "Servers"- window in an appropriate column if the address is resolved) or IP address can be used. If DHCP-Client property use-peer-ntp=yes - the dynamic entries advertised by DHCP * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
    Status string
    Current status of the NTP client.
    SyncedServer string
    The IP address of the NTP Server.
    SyncedStratum string
    The accuracy of each server is defined by a number called the stratum, with the topmost level (primary servers) assigned as one and each level downwards (secondary servers) in the hierarchy assigned as one greater than the preceding level.
    SystemNtpClientId string
    SystemOffset string
    This is a signed, fixed-point number indicating the offset of the NTP server's clock relative to the local clock, in seconds.
    Vrf string
    The VRF table this resource operates on.
    ___id_ double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    Enabled bool
    Enable NTP client.
    FreqDrift string
    The fractional frequency drift per unit time.
    Mode string
    Mode that the NTP client will operate in
    Servers []string
    The list of NTP servers. It is possible to add static entries.The following formats are accepted: * FQDN ("Resolved Address" will appear in the "Servers"- window in an appropriate column if the address is resolved) or IP address can be used. If DHCP-Client property use-peer-ntp=yes - the dynamic entries advertised by DHCP * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
    Status string
    Current status of the NTP client.
    SyncedServer string
    The IP address of the NTP Server.
    SyncedStratum string
    The accuracy of each server is defined by a number called the stratum, with the topmost level (primary servers) assigned as one and each level downwards (secondary servers) in the hierarchy assigned as one greater than the preceding level.
    SystemNtpClientId string
    SystemOffset string
    This is a signed, fixed-point number indicating the offset of the NTP server's clock relative to the local clock, in seconds.
    Vrf string
    The VRF table this resource operates on.
    ___id_ float64
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    ___id_ Double
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    enabled Boolean
    Enable NTP client.
    freqDrift String
    The fractional frequency drift per unit time.
    mode String
    Mode that the NTP client will operate in
    servers List<String>
    The list of NTP servers. It is possible to add static entries.The following formats are accepted: * FQDN ("Resolved Address" will appear in the "Servers"- window in an appropriate column if the address is resolved) or IP address can be used. If DHCP-Client property use-peer-ntp=yes - the dynamic entries advertised by DHCP * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
    status String
    Current status of the NTP client.
    syncedServer String
    The IP address of the NTP Server.
    syncedStratum String
    The accuracy of each server is defined by a number called the stratum, with the topmost level (primary servers) assigned as one and each level downwards (secondary servers) in the hierarchy assigned as one greater than the preceding level.
    systemNtpClientId String
    systemOffset String
    This is a signed, fixed-point number indicating the offset of the NTP server's clock relative to the local clock, in seconds.
    vrf String
    The VRF table this resource operates on.
    ___id_ number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ string
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    enabled boolean
    Enable NTP client.
    freqDrift string
    The fractional frequency drift per unit time.
    mode string
    Mode that the NTP client will operate in
    servers string[]
    The list of NTP servers. It is possible to add static entries.The following formats are accepted: * FQDN ("Resolved Address" will appear in the "Servers"- window in an appropriate column if the address is resolved) or IP address can be used. If DHCP-Client property use-peer-ntp=yes - the dynamic entries advertised by DHCP * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
    status string
    Current status of the NTP client.
    syncedServer string
    The IP address of the NTP Server.
    syncedStratum string
    The accuracy of each server is defined by a number called the stratum, with the topmost level (primary servers) assigned as one and each level downwards (secondary servers) in the hierarchy assigned as one greater than the preceding level.
    systemNtpClientId string
    systemOffset string
    This is a signed, fixed-point number indicating the offset of the NTP server's clock relative to the local clock, in seconds.
    vrf string
    The VRF table this resource operates on.
    ___id_ float
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ str
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    enabled bool
    Enable NTP client.
    freq_drift str
    The fractional frequency drift per unit time.
    mode str
    Mode that the NTP client will operate in
    servers Sequence[str]
    The list of NTP servers. It is possible to add static entries.The following formats are accepted: * FQDN ("Resolved Address" will appear in the "Servers"- window in an appropriate column if the address is resolved) or IP address can be used. If DHCP-Client property use-peer-ntp=yes - the dynamic entries advertised by DHCP * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
    status str
    Current status of the NTP client.
    synced_server str
    The IP address of the NTP Server.
    synced_stratum str
    The accuracy of each server is defined by a number called the stratum, with the topmost level (primary servers) assigned as one and each level downwards (secondary servers) in the hierarchy assigned as one greater than the preceding level.
    system_ntp_client_id str
    system_offset str
    This is a signed, fixed-point number indicating the offset of the NTP server's clock relative to the local clock, in seconds.
    vrf str
    The VRF table this resource operates on.
    ___id_ Number
    Resource ID type (.id / name). This is an internal service field, setting a value is not required.
    ___path_ String
    Resource path for CRUD operations. This is an internal service field, setting a value is not required.
    enabled Boolean
    Enable NTP client.
    freqDrift String
    The fractional frequency drift per unit time.
    mode String
    Mode that the NTP client will operate in
    servers List<String>
    The list of NTP servers. It is possible to add static entries.The following formats are accepted: * FQDN ("Resolved Address" will appear in the "Servers"- window in an appropriate column if the address is resolved) or IP address can be used. If DHCP-Client property use-peer-ntp=yes - the dynamic entries advertised by DHCP * ipv4 * ipv4@vrf * ipv6 * ipv6@vrf * ipv6-linklocal%interface
    status String
    Current status of the NTP client.
    syncedServer String
    The IP address of the NTP Server.
    syncedStratum String
    The accuracy of each server is defined by a number called the stratum, with the topmost level (primary servers) assigned as one and each level downwards (secondary servers) in the hierarchy assigned as one greater than the preceding level.
    systemNtpClientId String
    systemOffset String
    This is a signed, fixed-point number indicating the offset of the NTP server's clock relative to the local clock, in seconds.
    vrf String
    The VRF table this resource operates on.

    Import

    $ pulumi import routeros:index/systemNtpClient:SystemNtpClient test .
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    routeros terraform-routeros/terraform-provider-routeros
    License
    Notes
    This Pulumi package is based on the routeros Terraform Provider.
    routeros logo
    routeros 1.83.1 published on Monday, Apr 28, 2025 by terraform-routeros