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

routeros.SystemNtpServer

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.SystemNtpServer("test", {
        broadcast: true,
        enabled: true,
        localClockStratum: 3,
        manycast: true,
        multicast: true,
        useLocalClock: true,
    });
    
    import pulumi
    import pulumi_routeros as routeros
    
    test = routeros.SystemNtpServer("test",
        broadcast=True,
        enabled=True,
        local_clock_stratum=3,
        manycast=True,
        multicast=True,
        use_local_clock=True)
    
    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.NewSystemNtpServer(ctx, "test", &routeros.SystemNtpServerArgs{
    			Broadcast:         pulumi.Bool(true),
    			Enabled:           pulumi.Bool(true),
    			LocalClockStratum: pulumi.Float64(3),
    			Manycast:          pulumi.Bool(true),
    			Multicast:         pulumi.Bool(true),
    			UseLocalClock:     pulumi.Bool(true),
    		})
    		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.SystemNtpServer("test", new()
        {
            Broadcast = true,
            Enabled = true,
            LocalClockStratum = 3,
            Manycast = true,
            Multicast = true,
            UseLocalClock = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.routeros.SystemNtpServer;
    import com.pulumi.routeros.SystemNtpServerArgs;
    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 SystemNtpServer("test", SystemNtpServerArgs.builder()
                .broadcast(true)
                .enabled(true)
                .localClockStratum(3)
                .manycast(true)
                .multicast(true)
                .useLocalClock(true)
                .build());
    
        }
    }
    
    resources:
      test:
        type: routeros:SystemNtpServer
        properties:
          broadcast: true
          enabled: true
          localClockStratum: 3
          manycast: true
          multicast: true
          useLocalClock: true
    

    Create SystemNtpServer Resource

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

    Constructor syntax

    new SystemNtpServer(name: string, args?: SystemNtpServerArgs, opts?: CustomResourceOptions);
    @overload
    def SystemNtpServer(resource_name: str,
                        args: Optional[SystemNtpServerArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SystemNtpServer(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        ___id_: Optional[float] = None,
                        ___path_: Optional[str] = None,
                        auth_key: Optional[str] = None,
                        broadcast: Optional[bool] = None,
                        broadcast_addresses: Optional[str] = None,
                        enabled: Optional[bool] = None,
                        local_clock_stratum: Optional[float] = None,
                        manycast: Optional[bool] = None,
                        multicast: Optional[bool] = None,
                        system_ntp_server_id: Optional[str] = None,
                        use_local_clock: Optional[bool] = None,
                        vrf: Optional[str] = None)
    func NewSystemNtpServer(ctx *Context, name string, args *SystemNtpServerArgs, opts ...ResourceOption) (*SystemNtpServer, error)
    public SystemNtpServer(string name, SystemNtpServerArgs? args = null, CustomResourceOptions? opts = null)
    public SystemNtpServer(String name, SystemNtpServerArgs args)
    public SystemNtpServer(String name, SystemNtpServerArgs args, CustomResourceOptions options)
    
    type: routeros:SystemNtpServer
    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 SystemNtpServerArgs
    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 SystemNtpServerArgs
    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 SystemNtpServerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SystemNtpServerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SystemNtpServerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AuthKey string
    NTP symmetric key, used for authentication between the NTP client and server. Key Identifier (Key ID) - an integer identifying the cryptographic key used to generate the message-authentication code.
    Broadcast bool
    Enable certain NTP server mode, for this mode to work you have to set up broadcast-addresses field.
    BroadcastAddresses string
    Set broadcast address to use for NTP server broadcast mode.
    Enabled bool
    Enable NTP server.
    LocalClockStratum double
    Manually set stratum if use_local_clock = true.
    Manycast bool
    Enable certain NTP server mode.
    Multicast bool
    Enable certain NTP server mode.
    SystemNtpServerId string
    The ID of this resource.
    UseLocalClock bool
    The server will supply its local system time as valid if others are not available.
    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.
    AuthKey string
    NTP symmetric key, used for authentication between the NTP client and server. Key Identifier (Key ID) - an integer identifying the cryptographic key used to generate the message-authentication code.
    Broadcast bool
    Enable certain NTP server mode, for this mode to work you have to set up broadcast-addresses field.
    BroadcastAddresses string
    Set broadcast address to use for NTP server broadcast mode.
    Enabled bool
    Enable NTP server.
    LocalClockStratum float64
    Manually set stratum if use_local_clock = true.
    Manycast bool
    Enable certain NTP server mode.
    Multicast bool
    Enable certain NTP server mode.
    SystemNtpServerId string
    The ID of this resource.
    UseLocalClock bool
    The server will supply its local system time as valid if others are not available.
    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.
    authKey String
    NTP symmetric key, used for authentication between the NTP client and server. Key Identifier (Key ID) - an integer identifying the cryptographic key used to generate the message-authentication code.
    broadcast Boolean
    Enable certain NTP server mode, for this mode to work you have to set up broadcast-addresses field.
    broadcastAddresses String
    Set broadcast address to use for NTP server broadcast mode.
    enabled Boolean
    Enable NTP server.
    localClockStratum Double
    Manually set stratum if use_local_clock = true.
    manycast Boolean
    Enable certain NTP server mode.
    multicast Boolean
    Enable certain NTP server mode.
    systemNtpServerId String
    The ID of this resource.
    useLocalClock Boolean
    The server will supply its local system time as valid if others are not available.
    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.
    authKey string
    NTP symmetric key, used for authentication between the NTP client and server. Key Identifier (Key ID) - an integer identifying the cryptographic key used to generate the message-authentication code.
    broadcast boolean
    Enable certain NTP server mode, for this mode to work you have to set up broadcast-addresses field.
    broadcastAddresses string
    Set broadcast address to use for NTP server broadcast mode.
    enabled boolean
    Enable NTP server.
    localClockStratum number
    Manually set stratum if use_local_clock = true.
    manycast boolean
    Enable certain NTP server mode.
    multicast boolean
    Enable certain NTP server mode.
    systemNtpServerId string
    The ID of this resource.
    useLocalClock boolean
    The server will supply its local system time as valid if others are not available.
    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.
    auth_key str
    NTP symmetric key, used for authentication between the NTP client and server. Key Identifier (Key ID) - an integer identifying the cryptographic key used to generate the message-authentication code.
    broadcast bool
    Enable certain NTP server mode, for this mode to work you have to set up broadcast-addresses field.
    broadcast_addresses str
    Set broadcast address to use for NTP server broadcast mode.
    enabled bool
    Enable NTP server.
    local_clock_stratum float
    Manually set stratum if use_local_clock = true.
    manycast bool
    Enable certain NTP server mode.
    multicast bool
    Enable certain NTP server mode.
    system_ntp_server_id str
    The ID of this resource.
    use_local_clock bool
    The server will supply its local system time as valid if others are not available.
    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.
    authKey String
    NTP symmetric key, used for authentication between the NTP client and server. Key Identifier (Key ID) - an integer identifying the cryptographic key used to generate the message-authentication code.
    broadcast Boolean
    Enable certain NTP server mode, for this mode to work you have to set up broadcast-addresses field.
    broadcastAddresses String
    Set broadcast address to use for NTP server broadcast mode.
    enabled Boolean
    Enable NTP server.
    localClockStratum Number
    Manually set stratum if use_local_clock = true.
    manycast Boolean
    Enable certain NTP server mode.
    multicast Boolean
    Enable certain NTP server mode.
    systemNtpServerId String
    The ID of this resource.
    useLocalClock Boolean
    The server will supply its local system time as valid if others are not available.
    vrf String
    The VRF table this resource operates on.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SystemNtpServer Resource

    Get an existing SystemNtpServer 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?: SystemNtpServerState, opts?: CustomResourceOptions): SystemNtpServer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ___id_: Optional[float] = None,
            ___path_: Optional[str] = None,
            auth_key: Optional[str] = None,
            broadcast: Optional[bool] = None,
            broadcast_addresses: Optional[str] = None,
            enabled: Optional[bool] = None,
            local_clock_stratum: Optional[float] = None,
            manycast: Optional[bool] = None,
            multicast: Optional[bool] = None,
            system_ntp_server_id: Optional[str] = None,
            use_local_clock: Optional[bool] = None,
            vrf: Optional[str] = None) -> SystemNtpServer
    func GetSystemNtpServer(ctx *Context, name string, id IDInput, state *SystemNtpServerState, opts ...ResourceOption) (*SystemNtpServer, error)
    public static SystemNtpServer Get(string name, Input<string> id, SystemNtpServerState? state, CustomResourceOptions? opts = null)
    public static SystemNtpServer get(String name, Output<String> id, SystemNtpServerState state, CustomResourceOptions options)
    resources:  _:    type: routeros:SystemNtpServer    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:
    AuthKey string
    NTP symmetric key, used for authentication between the NTP client and server. Key Identifier (Key ID) - an integer identifying the cryptographic key used to generate the message-authentication code.
    Broadcast bool
    Enable certain NTP server mode, for this mode to work you have to set up broadcast-addresses field.
    BroadcastAddresses string
    Set broadcast address to use for NTP server broadcast mode.
    Enabled bool
    Enable NTP server.
    LocalClockStratum double
    Manually set stratum if use_local_clock = true.
    Manycast bool
    Enable certain NTP server mode.
    Multicast bool
    Enable certain NTP server mode.
    SystemNtpServerId string
    The ID of this resource.
    UseLocalClock bool
    The server will supply its local system time as valid if others are not available.
    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.
    AuthKey string
    NTP symmetric key, used for authentication between the NTP client and server. Key Identifier (Key ID) - an integer identifying the cryptographic key used to generate the message-authentication code.
    Broadcast bool
    Enable certain NTP server mode, for this mode to work you have to set up broadcast-addresses field.
    BroadcastAddresses string
    Set broadcast address to use for NTP server broadcast mode.
    Enabled bool
    Enable NTP server.
    LocalClockStratum float64
    Manually set stratum if use_local_clock = true.
    Manycast bool
    Enable certain NTP server mode.
    Multicast bool
    Enable certain NTP server mode.
    SystemNtpServerId string
    The ID of this resource.
    UseLocalClock bool
    The server will supply its local system time as valid if others are not available.
    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.
    authKey String
    NTP symmetric key, used for authentication between the NTP client and server. Key Identifier (Key ID) - an integer identifying the cryptographic key used to generate the message-authentication code.
    broadcast Boolean
    Enable certain NTP server mode, for this mode to work you have to set up broadcast-addresses field.
    broadcastAddresses String
    Set broadcast address to use for NTP server broadcast mode.
    enabled Boolean
    Enable NTP server.
    localClockStratum Double
    Manually set stratum if use_local_clock = true.
    manycast Boolean
    Enable certain NTP server mode.
    multicast Boolean
    Enable certain NTP server mode.
    systemNtpServerId String
    The ID of this resource.
    useLocalClock Boolean
    The server will supply its local system time as valid if others are not available.
    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.
    authKey string
    NTP symmetric key, used for authentication between the NTP client and server. Key Identifier (Key ID) - an integer identifying the cryptographic key used to generate the message-authentication code.
    broadcast boolean
    Enable certain NTP server mode, for this mode to work you have to set up broadcast-addresses field.
    broadcastAddresses string
    Set broadcast address to use for NTP server broadcast mode.
    enabled boolean
    Enable NTP server.
    localClockStratum number
    Manually set stratum if use_local_clock = true.
    manycast boolean
    Enable certain NTP server mode.
    multicast boolean
    Enable certain NTP server mode.
    systemNtpServerId string
    The ID of this resource.
    useLocalClock boolean
    The server will supply its local system time as valid if others are not available.
    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.
    auth_key str
    NTP symmetric key, used for authentication between the NTP client and server. Key Identifier (Key ID) - an integer identifying the cryptographic key used to generate the message-authentication code.
    broadcast bool
    Enable certain NTP server mode, for this mode to work you have to set up broadcast-addresses field.
    broadcast_addresses str
    Set broadcast address to use for NTP server broadcast mode.
    enabled bool
    Enable NTP server.
    local_clock_stratum float
    Manually set stratum if use_local_clock = true.
    manycast bool
    Enable certain NTP server mode.
    multicast bool
    Enable certain NTP server mode.
    system_ntp_server_id str
    The ID of this resource.
    use_local_clock bool
    The server will supply its local system time as valid if others are not available.
    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.
    authKey String
    NTP symmetric key, used for authentication between the NTP client and server. Key Identifier (Key ID) - an integer identifying the cryptographic key used to generate the message-authentication code.
    broadcast Boolean
    Enable certain NTP server mode, for this mode to work you have to set up broadcast-addresses field.
    broadcastAddresses String
    Set broadcast address to use for NTP server broadcast mode.
    enabled Boolean
    Enable NTP server.
    localClockStratum Number
    Manually set stratum if use_local_clock = true.
    manycast Boolean
    Enable certain NTP server mode.
    multicast Boolean
    Enable certain NTP server mode.
    systemNtpServerId String
    The ID of this resource.
    useLocalClock Boolean
    The server will supply its local system time as valid if others are not available.
    vrf String
    The VRF table this resource operates on.

    Import

    $ pulumi import routeros:index/systemNtpServer:SystemNtpServer 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