fortios.system.Ntp
Explore with Pulumi AI
Configure system NTP information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const trname = new fortios.system.Ntp("trname", {
ntpsync: "enable",
serverMode: "disable",
sourceIp: "0.0.0.0",
sourceIp6: "::",
syncinterval: 1,
type: "fortiguard",
});
import pulumi
import pulumiverse_fortios as fortios
trname = fortios.system.Ntp("trname",
ntpsync="enable",
server_mode="disable",
source_ip="0.0.0.0",
source_ip6="::",
syncinterval=1,
type="fortiguard")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/system"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := system.NewNtp(ctx, "trname", &system.NtpArgs{
Ntpsync: pulumi.String("enable"),
ServerMode: pulumi.String("disable"),
SourceIp: pulumi.String("0.0.0.0"),
SourceIp6: pulumi.String("::"),
Syncinterval: pulumi.Int(1),
Type: pulumi.String("fortiguard"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var trname = new Fortios.System.Ntp("trname", new()
{
Ntpsync = "enable",
ServerMode = "disable",
SourceIp = "0.0.0.0",
SourceIp6 = "::",
Syncinterval = 1,
Type = "fortiguard",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.system.Ntp;
import com.pulumi.fortios.system.NtpArgs;
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 trname = new Ntp("trname", NtpArgs.builder()
.ntpsync("enable")
.serverMode("disable")
.sourceIp("0.0.0.0")
.sourceIp6("::")
.syncinterval(1)
.type("fortiguard")
.build());
}
}
resources:
trname:
type: fortios:system:Ntp
properties:
ntpsync: enable
serverMode: disable
sourceIp: 0.0.0.0
sourceIp6: '::'
syncinterval: 1
type: fortiguard
Create Ntp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ntp(name: string, args?: NtpArgs, opts?: CustomResourceOptions);
@overload
def Ntp(resource_name: str,
args: Optional[NtpArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Ntp(resource_name: str,
opts: Optional[ResourceOptions] = None,
authentication: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
get_all_tables: Optional[str] = None,
interfaces: Optional[Sequence[NtpInterfaceArgs]] = None,
key: Optional[str] = None,
key_id: Optional[int] = None,
key_type: Optional[str] = None,
ntpservers: Optional[Sequence[NtpNtpserverArgs]] = None,
ntpsync: Optional[str] = None,
server_mode: Optional[str] = None,
source_ip: Optional[str] = None,
source_ip6: Optional[str] = None,
syncinterval: Optional[int] = None,
type: Optional[str] = None,
vdomparam: Optional[str] = None)
func NewNtp(ctx *Context, name string, args *NtpArgs, opts ...ResourceOption) (*Ntp, error)
public Ntp(string name, NtpArgs? args = null, CustomResourceOptions? opts = null)
type: fortios:system:Ntp
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 NtpArgs
- 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 NtpArgs
- 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 NtpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NtpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NtpArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ntpResource = new Fortios.System.Ntp("ntpResource", new()
{
Authentication = "string",
DynamicSortSubtable = "string",
GetAllTables = "string",
Interfaces = new[]
{
new Fortios.System.Inputs.NtpInterfaceArgs
{
InterfaceName = "string",
},
},
Key = "string",
KeyId = 0,
KeyType = "string",
Ntpservers = new[]
{
new Fortios.System.Inputs.NtpNtpserverArgs
{
Authentication = "string",
Id = 0,
Interface = "string",
InterfaceSelectMethod = "string",
IpType = "string",
Key = "string",
KeyId = 0,
Ntpv3 = "string",
Server = "string",
},
},
Ntpsync = "string",
ServerMode = "string",
SourceIp = "string",
SourceIp6 = "string",
Syncinterval = 0,
Type = "string",
Vdomparam = "string",
});
example, err := system.NewNtp(ctx, "ntpResource", &system.NtpArgs{
Authentication: pulumi.String("string"),
DynamicSortSubtable: pulumi.String("string"),
GetAllTables: pulumi.String("string"),
Interfaces: system.NtpInterfaceArray{
&system.NtpInterfaceArgs{
InterfaceName: pulumi.String("string"),
},
},
Key: pulumi.String("string"),
KeyId: pulumi.Int(0),
KeyType: pulumi.String("string"),
Ntpservers: system.NtpNtpserverArray{
&system.NtpNtpserverArgs{
Authentication: pulumi.String("string"),
Id: pulumi.Int(0),
Interface: pulumi.String("string"),
InterfaceSelectMethod: pulumi.String("string"),
IpType: pulumi.String("string"),
Key: pulumi.String("string"),
KeyId: pulumi.Int(0),
Ntpv3: pulumi.String("string"),
Server: pulumi.String("string"),
},
},
Ntpsync: pulumi.String("string"),
ServerMode: pulumi.String("string"),
SourceIp: pulumi.String("string"),
SourceIp6: pulumi.String("string"),
Syncinterval: pulumi.Int(0),
Type: pulumi.String("string"),
Vdomparam: pulumi.String("string"),
})
var ntpResource = new Ntp("ntpResource", NtpArgs.builder()
.authentication("string")
.dynamicSortSubtable("string")
.getAllTables("string")
.interfaces(NtpInterfaceArgs.builder()
.interfaceName("string")
.build())
.key("string")
.keyId(0)
.keyType("string")
.ntpservers(NtpNtpserverArgs.builder()
.authentication("string")
.id(0)
.interface_("string")
.interfaceSelectMethod("string")
.ipType("string")
.key("string")
.keyId(0)
.ntpv3("string")
.server("string")
.build())
.ntpsync("string")
.serverMode("string")
.sourceIp("string")
.sourceIp6("string")
.syncinterval(0)
.type("string")
.vdomparam("string")
.build());
ntp_resource = fortios.system.Ntp("ntpResource",
authentication="string",
dynamic_sort_subtable="string",
get_all_tables="string",
interfaces=[fortios.system.NtpInterfaceArgs(
interface_name="string",
)],
key="string",
key_id=0,
key_type="string",
ntpservers=[fortios.system.NtpNtpserverArgs(
authentication="string",
id=0,
interface="string",
interface_select_method="string",
ip_type="string",
key="string",
key_id=0,
ntpv3="string",
server="string",
)],
ntpsync="string",
server_mode="string",
source_ip="string",
source_ip6="string",
syncinterval=0,
type="string",
vdomparam="string")
const ntpResource = new fortios.system.Ntp("ntpResource", {
authentication: "string",
dynamicSortSubtable: "string",
getAllTables: "string",
interfaces: [{
interfaceName: "string",
}],
key: "string",
keyId: 0,
keyType: "string",
ntpservers: [{
authentication: "string",
id: 0,
"interface": "string",
interfaceSelectMethod: "string",
ipType: "string",
key: "string",
keyId: 0,
ntpv3: "string",
server: "string",
}],
ntpsync: "string",
serverMode: "string",
sourceIp: "string",
sourceIp6: "string",
syncinterval: 0,
type: "string",
vdomparam: "string",
});
type: fortios:system:Ntp
properties:
authentication: string
dynamicSortSubtable: string
getAllTables: string
interfaces:
- interfaceName: string
key: string
keyId: 0
keyType: string
ntpservers:
- authentication: string
id: 0
interface: string
interfaceSelectMethod: string
ipType: string
key: string
keyId: 0
ntpv3: string
server: string
ntpsync: string
serverMode: string
sourceIp: string
sourceIp6: string
syncinterval: 0
type: string
vdomparam: string
Ntp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Ntp resource accepts the following input properties:
- Authentication string
- Enable/disable authentication. Valid values:
enable
,disable
. - Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Interfaces
List<Pulumiverse.
Fortios. System. Inputs. Ntp Interface> - FortiGate interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services. The structure of
interface
block is documented below. - Key string
- Key for authentication.
- Key
Id int - Key ID for authentication.
- Key
Type string - Key type for authentication (MD5, SHA1). Valid values:
MD5
,SHA1
. - Ntpservers
List<Pulumiverse.
Fortios. System. Inputs. Ntp Ntpserver> - Configure the FortiGate to connect to any available third-party NTP server. The structure of
ntpserver
block is documented below. - Ntpsync string
- Enable/disable setting the FortiGate system time by synchronizing with an NTP Server. Valid values:
enable
,disable
. - Server
Mode string - Enable/disable FortiGate NTP Server Mode. Your FortiGate becomes an NTP server for other devices on your network. The FortiGate relays NTP requests to its configured NTP server. Valid values:
enable
,disable
. - Source
Ip string - Source IP address for communication to the NTP server.
- Source
Ip6 string - Source IPv6 address for communication to the NTP server.
- Syncinterval int
- NTP synchronization interval (1 - 1440 min).
- Type string
- Use the FortiGuard NTP server or any other available NTP Server. Valid values:
fortiguard
,custom
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Authentication string
- Enable/disable authentication. Valid values:
enable
,disable
. - Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Interfaces
[]Ntp
Interface Args - FortiGate interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services. The structure of
interface
block is documented below. - Key string
- Key for authentication.
- Key
Id int - Key ID for authentication.
- Key
Type string - Key type for authentication (MD5, SHA1). Valid values:
MD5
,SHA1
. - Ntpservers
[]Ntp
Ntpserver Args - Configure the FortiGate to connect to any available third-party NTP server. The structure of
ntpserver
block is documented below. - Ntpsync string
- Enable/disable setting the FortiGate system time by synchronizing with an NTP Server. Valid values:
enable
,disable
. - Server
Mode string - Enable/disable FortiGate NTP Server Mode. Your FortiGate becomes an NTP server for other devices on your network. The FortiGate relays NTP requests to its configured NTP server. Valid values:
enable
,disable
. - Source
Ip string - Source IP address for communication to the NTP server.
- Source
Ip6 string - Source IPv6 address for communication to the NTP server.
- Syncinterval int
- NTP synchronization interval (1 - 1440 min).
- Type string
- Use the FortiGuard NTP server or any other available NTP Server. Valid values:
fortiguard
,custom
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authentication String
- Enable/disable authentication. Valid values:
enable
,disable
. - dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interfaces
List<Ntp
Interface> - FortiGate interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services. The structure of
interface
block is documented below. - key String
- Key for authentication.
- key
Id Integer - Key ID for authentication.
- key
Type String - Key type for authentication (MD5, SHA1). Valid values:
MD5
,SHA1
. - ntpservers
List<Ntp
Ntpserver> - Configure the FortiGate to connect to any available third-party NTP server. The structure of
ntpserver
block is documented below. - ntpsync String
- Enable/disable setting the FortiGate system time by synchronizing with an NTP Server. Valid values:
enable
,disable
. - server
Mode String - Enable/disable FortiGate NTP Server Mode. Your FortiGate becomes an NTP server for other devices on your network. The FortiGate relays NTP requests to its configured NTP server. Valid values:
enable
,disable
. - source
Ip String - Source IP address for communication to the NTP server.
- source
Ip6 String - Source IPv6 address for communication to the NTP server.
- syncinterval Integer
- NTP synchronization interval (1 - 1440 min).
- type String
- Use the FortiGuard NTP server or any other available NTP Server. Valid values:
fortiguard
,custom
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authentication string
- Enable/disable authentication. Valid values:
enable
,disable
. - dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interfaces
Ntp
Interface[] - FortiGate interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services. The structure of
interface
block is documented below. - key string
- Key for authentication.
- key
Id number - Key ID for authentication.
- key
Type string - Key type for authentication (MD5, SHA1). Valid values:
MD5
,SHA1
. - ntpservers
Ntp
Ntpserver[] - Configure the FortiGate to connect to any available third-party NTP server. The structure of
ntpserver
block is documented below. - ntpsync string
- Enable/disable setting the FortiGate system time by synchronizing with an NTP Server. Valid values:
enable
,disable
. - server
Mode string - Enable/disable FortiGate NTP Server Mode. Your FortiGate becomes an NTP server for other devices on your network. The FortiGate relays NTP requests to its configured NTP server. Valid values:
enable
,disable
. - source
Ip string - Source IP address for communication to the NTP server.
- source
Ip6 string - Source IPv6 address for communication to the NTP server.
- syncinterval number
- NTP synchronization interval (1 - 1440 min).
- type string
- Use the FortiGuard NTP server or any other available NTP Server. Valid values:
fortiguard
,custom
. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authentication str
- Enable/disable authentication. Valid values:
enable
,disable
. - dynamic_
sort_ strsubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get_
all_ strtables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interfaces
Sequence[Ntp
Interface Args] - FortiGate interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services. The structure of
interface
block is documented below. - key str
- Key for authentication.
- key_
id int - Key ID for authentication.
- key_
type str - Key type for authentication (MD5, SHA1). Valid values:
MD5
,SHA1
. - ntpservers
Sequence[Ntp
Ntpserver Args] - Configure the FortiGate to connect to any available third-party NTP server. The structure of
ntpserver
block is documented below. - ntpsync str
- Enable/disable setting the FortiGate system time by synchronizing with an NTP Server. Valid values:
enable
,disable
. - server_
mode str - Enable/disable FortiGate NTP Server Mode. Your FortiGate becomes an NTP server for other devices on your network. The FortiGate relays NTP requests to its configured NTP server. Valid values:
enable
,disable
. - source_
ip str - Source IP address for communication to the NTP server.
- source_
ip6 str - Source IPv6 address for communication to the NTP server.
- syncinterval int
- NTP synchronization interval (1 - 1440 min).
- type str
- Use the FortiGuard NTP server or any other available NTP Server. Valid values:
fortiguard
,custom
. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authentication String
- Enable/disable authentication. Valid values:
enable
,disable
. - dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interfaces List<Property Map>
- FortiGate interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services. The structure of
interface
block is documented below. - key String
- Key for authentication.
- key
Id Number - Key ID for authentication.
- key
Type String - Key type for authentication (MD5, SHA1). Valid values:
MD5
,SHA1
. - ntpservers List<Property Map>
- Configure the FortiGate to connect to any available third-party NTP server. The structure of
ntpserver
block is documented below. - ntpsync String
- Enable/disable setting the FortiGate system time by synchronizing with an NTP Server. Valid values:
enable
,disable
. - server
Mode String - Enable/disable FortiGate NTP Server Mode. Your FortiGate becomes an NTP server for other devices on your network. The FortiGate relays NTP requests to its configured NTP server. Valid values:
enable
,disable
. - source
Ip String - Source IP address for communication to the NTP server.
- source
Ip6 String - Source IPv6 address for communication to the NTP server.
- syncinterval Number
- NTP synchronization interval (1 - 1440 min).
- type String
- Use the FortiGuard NTP server or any other available NTP Server. Valid values:
fortiguard
,custom
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the Ntp 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 Ntp Resource
Get an existing Ntp 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?: NtpState, opts?: CustomResourceOptions): Ntp
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authentication: Optional[str] = None,
dynamic_sort_subtable: Optional[str] = None,
get_all_tables: Optional[str] = None,
interfaces: Optional[Sequence[NtpInterfaceArgs]] = None,
key: Optional[str] = None,
key_id: Optional[int] = None,
key_type: Optional[str] = None,
ntpservers: Optional[Sequence[NtpNtpserverArgs]] = None,
ntpsync: Optional[str] = None,
server_mode: Optional[str] = None,
source_ip: Optional[str] = None,
source_ip6: Optional[str] = None,
syncinterval: Optional[int] = None,
type: Optional[str] = None,
vdomparam: Optional[str] = None) -> Ntp
func GetNtp(ctx *Context, name string, id IDInput, state *NtpState, opts ...ResourceOption) (*Ntp, error)
public static Ntp Get(string name, Input<string> id, NtpState? state, CustomResourceOptions? opts = null)
public static Ntp get(String name, Output<String> id, NtpState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Authentication string
- Enable/disable authentication. Valid values:
enable
,disable
. - Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Interfaces
List<Pulumiverse.
Fortios. System. Inputs. Ntp Interface> - FortiGate interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services. The structure of
interface
block is documented below. - Key string
- Key for authentication.
- Key
Id int - Key ID for authentication.
- Key
Type string - Key type for authentication (MD5, SHA1). Valid values:
MD5
,SHA1
. - Ntpservers
List<Pulumiverse.
Fortios. System. Inputs. Ntp Ntpserver> - Configure the FortiGate to connect to any available third-party NTP server. The structure of
ntpserver
block is documented below. - Ntpsync string
- Enable/disable setting the FortiGate system time by synchronizing with an NTP Server. Valid values:
enable
,disable
. - Server
Mode string - Enable/disable FortiGate NTP Server Mode. Your FortiGate becomes an NTP server for other devices on your network. The FortiGate relays NTP requests to its configured NTP server. Valid values:
enable
,disable
. - Source
Ip string - Source IP address for communication to the NTP server.
- Source
Ip6 string - Source IPv6 address for communication to the NTP server.
- Syncinterval int
- NTP synchronization interval (1 - 1440 min).
- Type string
- Use the FortiGuard NTP server or any other available NTP Server. Valid values:
fortiguard
,custom
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- Authentication string
- Enable/disable authentication. Valid values:
enable
,disable
. - Dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- Get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- Interfaces
[]Ntp
Interface Args - FortiGate interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services. The structure of
interface
block is documented below. - Key string
- Key for authentication.
- Key
Id int - Key ID for authentication.
- Key
Type string - Key type for authentication (MD5, SHA1). Valid values:
MD5
,SHA1
. - Ntpservers
[]Ntp
Ntpserver Args - Configure the FortiGate to connect to any available third-party NTP server. The structure of
ntpserver
block is documented below. - Ntpsync string
- Enable/disable setting the FortiGate system time by synchronizing with an NTP Server. Valid values:
enable
,disable
. - Server
Mode string - Enable/disable FortiGate NTP Server Mode. Your FortiGate becomes an NTP server for other devices on your network. The FortiGate relays NTP requests to its configured NTP server. Valid values:
enable
,disable
. - Source
Ip string - Source IP address for communication to the NTP server.
- Source
Ip6 string - Source IPv6 address for communication to the NTP server.
- Syncinterval int
- NTP synchronization interval (1 - 1440 min).
- Type string
- Use the FortiGuard NTP server or any other available NTP Server. Valid values:
fortiguard
,custom
. - Vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authentication String
- Enable/disable authentication. Valid values:
enable
,disable
. - dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interfaces
List<Ntp
Interface> - FortiGate interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services. The structure of
interface
block is documented below. - key String
- Key for authentication.
- key
Id Integer - Key ID for authentication.
- key
Type String - Key type for authentication (MD5, SHA1). Valid values:
MD5
,SHA1
. - ntpservers
List<Ntp
Ntpserver> - Configure the FortiGate to connect to any available third-party NTP server. The structure of
ntpserver
block is documented below. - ntpsync String
- Enable/disable setting the FortiGate system time by synchronizing with an NTP Server. Valid values:
enable
,disable
. - server
Mode String - Enable/disable FortiGate NTP Server Mode. Your FortiGate becomes an NTP server for other devices on your network. The FortiGate relays NTP requests to its configured NTP server. Valid values:
enable
,disable
. - source
Ip String - Source IP address for communication to the NTP server.
- source
Ip6 String - Source IPv6 address for communication to the NTP server.
- syncinterval Integer
- NTP synchronization interval (1 - 1440 min).
- type String
- Use the FortiGuard NTP server or any other available NTP Server. Valid values:
fortiguard
,custom
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authentication string
- Enable/disable authentication. Valid values:
enable
,disable
. - dynamic
Sort stringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All stringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interfaces
Ntp
Interface[] - FortiGate interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services. The structure of
interface
block is documented below. - key string
- Key for authentication.
- key
Id number - Key ID for authentication.
- key
Type string - Key type for authentication (MD5, SHA1). Valid values:
MD5
,SHA1
. - ntpservers
Ntp
Ntpserver[] - Configure the FortiGate to connect to any available third-party NTP server. The structure of
ntpserver
block is documented below. - ntpsync string
- Enable/disable setting the FortiGate system time by synchronizing with an NTP Server. Valid values:
enable
,disable
. - server
Mode string - Enable/disable FortiGate NTP Server Mode. Your FortiGate becomes an NTP server for other devices on your network. The FortiGate relays NTP requests to its configured NTP server. Valid values:
enable
,disable
. - source
Ip string - Source IP address for communication to the NTP server.
- source
Ip6 string - Source IPv6 address for communication to the NTP server.
- syncinterval number
- NTP synchronization interval (1 - 1440 min).
- type string
- Use the FortiGuard NTP server or any other available NTP Server. Valid values:
fortiguard
,custom
. - vdomparam string
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authentication str
- Enable/disable authentication. Valid values:
enable
,disable
. - dynamic_
sort_ strsubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get_
all_ strtables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interfaces
Sequence[Ntp
Interface Args] - FortiGate interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services. The structure of
interface
block is documented below. - key str
- Key for authentication.
- key_
id int - Key ID for authentication.
- key_
type str - Key type for authentication (MD5, SHA1). Valid values:
MD5
,SHA1
. - ntpservers
Sequence[Ntp
Ntpserver Args] - Configure the FortiGate to connect to any available third-party NTP server. The structure of
ntpserver
block is documented below. - ntpsync str
- Enable/disable setting the FortiGate system time by synchronizing with an NTP Server. Valid values:
enable
,disable
. - server_
mode str - Enable/disable FortiGate NTP Server Mode. Your FortiGate becomes an NTP server for other devices on your network. The FortiGate relays NTP requests to its configured NTP server. Valid values:
enable
,disable
. - source_
ip str - Source IP address for communication to the NTP server.
- source_
ip6 str - Source IPv6 address for communication to the NTP server.
- syncinterval int
- NTP synchronization interval (1 - 1440 min).
- type str
- Use the FortiGuard NTP server or any other available NTP Server. Valid values:
fortiguard
,custom
. - vdomparam str
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
- authentication String
- Enable/disable authentication. Valid values:
enable
,disable
. - dynamic
Sort StringSubtable - Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
- get
All StringTables - Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
- interfaces List<Property Map>
- FortiGate interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services. The structure of
interface
block is documented below. - key String
- Key for authentication.
- key
Id Number - Key ID for authentication.
- key
Type String - Key type for authentication (MD5, SHA1). Valid values:
MD5
,SHA1
. - ntpservers List<Property Map>
- Configure the FortiGate to connect to any available third-party NTP server. The structure of
ntpserver
block is documented below. - ntpsync String
- Enable/disable setting the FortiGate system time by synchronizing with an NTP Server. Valid values:
enable
,disable
. - server
Mode String - Enable/disable FortiGate NTP Server Mode. Your FortiGate becomes an NTP server for other devices on your network. The FortiGate relays NTP requests to its configured NTP server. Valid values:
enable
,disable
. - source
Ip String - Source IP address for communication to the NTP server.
- source
Ip6 String - Source IPv6 address for communication to the NTP server.
- syncinterval Number
- NTP synchronization interval (1 - 1440 min).
- type String
- Use the FortiGuard NTP server or any other available NTP Server. Valid values:
fortiguard
,custom
. - vdomparam String
- Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Supporting Types
NtpInterface, NtpInterfaceArgs
- Interface
Name string - Interface name.
- Interface
Name string - Interface name.
- interface
Name String - Interface name.
- interface
Name string - Interface name.
- interface_
name str - Interface name.
- interface
Name String - Interface name.
NtpNtpserver, NtpNtpserverArgs
- Authentication string
- Enable/disable MD5/SHA1 authentication. Valid values:
enable
,disable
. - Id int
- NTP server ID.
- Interface string
- Specify outgoing interface to reach server.
- Interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - Ip
Type string - Choose to connect to IPv4 or/and IPv6 NTP server. Valid values:
IPv6
,IPv4
,Both
. - Key string
- Key for MD5/SHA1 authentication.
- Key
Id int - Key ID for authentication.
- Ntpv3 string
- Enable to use NTPv3 instead of NTPv4. Valid values:
enable
,disable
. - Server string
- IP address or hostname of the NTP Server.
- Authentication string
- Enable/disable MD5/SHA1 authentication. Valid values:
enable
,disable
. - Id int
- NTP server ID.
- Interface string
- Specify outgoing interface to reach server.
- Interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - Ip
Type string - Choose to connect to IPv4 or/and IPv6 NTP server. Valid values:
IPv6
,IPv4
,Both
. - Key string
- Key for MD5/SHA1 authentication.
- Key
Id int - Key ID for authentication.
- Ntpv3 string
- Enable to use NTPv3 instead of NTPv4. Valid values:
enable
,disable
. - Server string
- IP address or hostname of the NTP Server.
- authentication String
- Enable/disable MD5/SHA1 authentication. Valid values:
enable
,disable
. - id Integer
- NTP server ID.
- interface
Select StringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - interface_ String
- Specify outgoing interface to reach server.
- ip
Type String - Choose to connect to IPv4 or/and IPv6 NTP server. Valid values:
IPv6
,IPv4
,Both
. - key String
- Key for MD5/SHA1 authentication.
- key
Id Integer - Key ID for authentication.
- ntpv3 String
- Enable to use NTPv3 instead of NTPv4. Valid values:
enable
,disable
. - server String
- IP address or hostname of the NTP Server.
- authentication string
- Enable/disable MD5/SHA1 authentication. Valid values:
enable
,disable
. - id number
- NTP server ID.
- interface string
- Specify outgoing interface to reach server.
- interface
Select stringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - ip
Type string - Choose to connect to IPv4 or/and IPv6 NTP server. Valid values:
IPv6
,IPv4
,Both
. - key string
- Key for MD5/SHA1 authentication.
- key
Id number - Key ID for authentication.
- ntpv3 string
- Enable to use NTPv3 instead of NTPv4. Valid values:
enable
,disable
. - server string
- IP address or hostname of the NTP Server.
- authentication str
- Enable/disable MD5/SHA1 authentication. Valid values:
enable
,disable
. - id int
- NTP server ID.
- interface str
- Specify outgoing interface to reach server.
- interface_
select_ strmethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - ip_
type str - Choose to connect to IPv4 or/and IPv6 NTP server. Valid values:
IPv6
,IPv4
,Both
. - key str
- Key for MD5/SHA1 authentication.
- key_
id int - Key ID for authentication.
- ntpv3 str
- Enable to use NTPv3 instead of NTPv4. Valid values:
enable
,disable
. - server str
- IP address or hostname of the NTP Server.
- authentication String
- Enable/disable MD5/SHA1 authentication. Valid values:
enable
,disable
. - id Number
- NTP server ID.
- interface String
- Specify outgoing interface to reach server.
- interface
Select StringMethod - Specify how to select outgoing interface to reach server. Valid values:
auto
,sdwan
,specify
. - ip
Type String - Choose to connect to IPv4 or/and IPv6 NTP server. Valid values:
IPv6
,IPv4
,Both
. - key String
- Key for MD5/SHA1 authentication.
- key
Id Number - Key ID for authentication.
- ntpv3 String
- Enable to use NTPv3 instead of NTPv4. Valid values:
enable
,disable
. - server String
- IP address or hostname of the NTP Server.
Import
System Ntp can be imported using any of these accepted formats:
$ pulumi import fortios:system/ntp:Ntp labelname SystemNtp
If you do not want to import arguments of block:
$ export “FORTIOS_IMPORT_TABLE”=“false”
$ pulumi import fortios:system/ntp:Ntp labelname SystemNtp
$ unset “FORTIOS_IMPORT_TABLE”
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.