iosxe.Ntp
Explore with Pulumi AI
This resource can manage the NTP configuration.
Example Usage
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.Ntp;
import com.pulumi.iosxe.NtpArgs;
import com.pulumi.iosxe.inputs.NtpAuthenticationKeyArgs;
import com.pulumi.iosxe.inputs.NtpPeerVrfArgs;
import com.pulumi.iosxe.inputs.NtpPeerArgs;
import com.pulumi.iosxe.inputs.NtpServerVrfArgs;
import com.pulumi.iosxe.inputs.NtpServerArgs;
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 example = new Ntp("example", NtpArgs.builder()
.accessGroupPeerAcl("SACL1")
.accessGroupQueryOnlyAcl("SACL1")
.accessGroupServeAcl("SACL1")
.accessGroupServeOnlyAcl("SACL1")
.authenticate(true)
.authenticationKeys(NtpAuthenticationKeyArgs.builder()
.encryption_type(7)
.md5("060506324F41584B564347")
.number(1)
.build())
.logging(false)
.master(true)
.masterStratum(5)
.passive(false)
.peerVrfs(NtpPeerVrfArgs.builder()
.name("VRF1")
.peers(NtpPeerVrfPeerArgs.builder()
.ipAddress("5.4.5.6")
.key(1)
.prefer(true)
.version(2)
.build())
.build())
.peers(NtpPeerArgs.builder()
.ip_address("5.2.3.4")
.key(1)
.prefer(true)
.source("Loopback1")
.version(2)
.build())
.serverVrfs(NtpServerVrfArgs.builder()
.name("VRF1")
.servers(NtpServerVrfServerArgs.builder()
.ipAddress("3.4.5.6")
.key(1)
.prefer(true)
.version(2)
.build())
.build())
.servers(NtpServerArgs.builder()
.ip_address("1.2.3.4")
.key(1)
.prefer(true)
.source("Loopback1")
.version(2)
.build())
.trapSourceLoopback(1)
.updateCalendar(false)
.build());
}
}
Coming soon!
Coming soon!
resources:
example:
type: iosxe:Ntp
properties:
accessGroupPeerAcl: SACL1
accessGroupQueryOnlyAcl: SACL1
accessGroupServeAcl: SACL1
accessGroupServeOnlyAcl: SACL1
authenticate: true
authenticationKeys:
- encryption_type: 7
md5: 060506324F41584B564347
number: 1
logging: false
master: true
masterStratum: 5
passive: false
peerVrfs:
- name: VRF1
peers:
- ipAddress: 5.4.5.6
key: 1
prefer: true
version: 2
peers:
- ip_address: 5.2.3.4
key: 1
prefer: true
source: Loopback1
version: 2
serverVrfs:
- name: VRF1
servers:
- ipAddress: 3.4.5.6
key: 1
prefer: true
version: 2
servers:
- ip_address: 1.2.3.4
key: 1
prefer: true
source: Loopback1
version: 2
trapSourceLoopback: 1
updateCalendar: false
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,
access_group_peer_acl: Optional[str] = None,
access_group_query_only_acl: Optional[str] = None,
access_group_serve_acl: Optional[str] = None,
access_group_serve_only_acl: Optional[str] = None,
authenticate: Optional[bool] = None,
authentication_keys: Optional[Sequence[NtpAuthenticationKeyArgs]] = None,
clock_period: Optional[int] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
logging: Optional[bool] = None,
master: Optional[bool] = None,
master_stratum: Optional[int] = None,
passive: Optional[bool] = None,
peer_vrfs: Optional[Sequence[NtpPeerVrfArgs]] = None,
peers: Optional[Sequence[NtpPeerArgs]] = None,
server_vrfs: Optional[Sequence[NtpServerVrfArgs]] = None,
servers: Optional[Sequence[NtpServerArgs]] = None,
trap_source_forty_gigabit_ethernet: Optional[str] = None,
trap_source_gigabit_ethernet: Optional[str] = None,
trap_source_hundred_gig_e: Optional[str] = None,
trap_source_loopback: Optional[int] = None,
trap_source_port_channel: Optional[int] = None,
trap_source_port_channel_subinterface: Optional[str] = None,
trap_source_ten_gigabit_ethernet: Optional[str] = None,
trap_source_vlan: Optional[int] = None,
update_calendar: Optional[bool] = None)
func NewNtp(ctx *Context, name string, args *NtpArgs, opts ...ResourceOption) (*Ntp, error)
public Ntp(string name, NtpArgs? args = null, CustomResourceOptions? opts = null)
type: iosxe: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 Iosxe.Ntp("ntpResource", new()
{
AccessGroupPeerAcl = "string",
AccessGroupQueryOnlyAcl = "string",
AccessGroupServeAcl = "string",
AccessGroupServeOnlyAcl = "string",
Authenticate = false,
AuthenticationKeys = new[]
{
new Iosxe.Inputs.NtpAuthenticationKeyArgs
{
Number = 0,
CmacAes128 = "string",
EncryptionType = 0,
HmacSha1 = "string",
HmacSha2256 = "string",
Md5 = "string",
Sha1 = "string",
Sha2 = "string",
},
},
ClockPeriod = 0,
DeleteMode = "string",
Device = "string",
Logging = false,
Master = false,
MasterStratum = 0,
Passive = false,
PeerVrfs = new[]
{
new Iosxe.Inputs.NtpPeerVrfArgs
{
Name = "string",
Peers = new[]
{
new Iosxe.Inputs.NtpPeerVrfPeerArgs
{
IpAddress = "string",
Key = 0,
Prefer = false,
Version = 0,
},
},
},
},
Peers = new[]
{
new Iosxe.Inputs.NtpPeerArgs
{
IpAddress = "string",
Key = 0,
Prefer = false,
Source = "string",
Version = 0,
},
},
ServerVrfs = new[]
{
new Iosxe.Inputs.NtpServerVrfArgs
{
Name = "string",
Servers = new[]
{
new Iosxe.Inputs.NtpServerVrfServerArgs
{
IpAddress = "string",
Key = 0,
Prefer = false,
Version = 0,
},
},
},
},
Servers = new[]
{
new Iosxe.Inputs.NtpServerArgs
{
IpAddress = "string",
Key = 0,
Prefer = false,
Source = "string",
Version = 0,
},
},
TrapSourceFortyGigabitEthernet = "string",
TrapSourceGigabitEthernet = "string",
TrapSourceHundredGigE = "string",
TrapSourceLoopback = 0,
TrapSourcePortChannel = 0,
TrapSourcePortChannelSubinterface = "string",
TrapSourceTenGigabitEthernet = "string",
TrapSourceVlan = 0,
UpdateCalendar = false,
});
example, err := iosxe.NewNtp(ctx, "ntpResource", &iosxe.NtpArgs{
AccessGroupPeerAcl: pulumi.String("string"),
AccessGroupQueryOnlyAcl: pulumi.String("string"),
AccessGroupServeAcl: pulumi.String("string"),
AccessGroupServeOnlyAcl: pulumi.String("string"),
Authenticate: pulumi.Bool(false),
AuthenticationKeys: iosxe.NtpAuthenticationKeyArray{
&iosxe.NtpAuthenticationKeyArgs{
Number: pulumi.Int(0),
CmacAes128: pulumi.String("string"),
EncryptionType: pulumi.Int(0),
HmacSha1: pulumi.String("string"),
HmacSha2256: pulumi.String("string"),
Md5: pulumi.String("string"),
Sha1: pulumi.String("string"),
Sha2: pulumi.String("string"),
},
},
ClockPeriod: pulumi.Int(0),
DeleteMode: pulumi.String("string"),
Device: pulumi.String("string"),
Logging: pulumi.Bool(false),
Master: pulumi.Bool(false),
MasterStratum: pulumi.Int(0),
Passive: pulumi.Bool(false),
PeerVrfs: iosxe.NtpPeerVrfArray{
&iosxe.NtpPeerVrfArgs{
Name: pulumi.String("string"),
Peers: iosxe.NtpPeerVrfPeerArray{
&iosxe.NtpPeerVrfPeerArgs{
IpAddress: pulumi.String("string"),
Key: pulumi.Int(0),
Prefer: pulumi.Bool(false),
Version: pulumi.Int(0),
},
},
},
},
Peers: iosxe.NtpPeerArray{
&iosxe.NtpPeerArgs{
IpAddress: pulumi.String("string"),
Key: pulumi.Int(0),
Prefer: pulumi.Bool(false),
Source: pulumi.String("string"),
Version: pulumi.Int(0),
},
},
ServerVrfs: iosxe.NtpServerVrfArray{
&iosxe.NtpServerVrfArgs{
Name: pulumi.String("string"),
Servers: iosxe.NtpServerVrfServerArray{
&iosxe.NtpServerVrfServerArgs{
IpAddress: pulumi.String("string"),
Key: pulumi.Int(0),
Prefer: pulumi.Bool(false),
Version: pulumi.Int(0),
},
},
},
},
Servers: iosxe.NtpServerArray{
&iosxe.NtpServerArgs{
IpAddress: pulumi.String("string"),
Key: pulumi.Int(0),
Prefer: pulumi.Bool(false),
Source: pulumi.String("string"),
Version: pulumi.Int(0),
},
},
TrapSourceFortyGigabitEthernet: pulumi.String("string"),
TrapSourceGigabitEthernet: pulumi.String("string"),
TrapSourceHundredGigE: pulumi.String("string"),
TrapSourceLoopback: pulumi.Int(0),
TrapSourcePortChannel: pulumi.Int(0),
TrapSourcePortChannelSubinterface: pulumi.String("string"),
TrapSourceTenGigabitEthernet: pulumi.String("string"),
TrapSourceVlan: pulumi.Int(0),
UpdateCalendar: pulumi.Bool(false),
})
var ntpResource = new Ntp("ntpResource", NtpArgs.builder()
.accessGroupPeerAcl("string")
.accessGroupQueryOnlyAcl("string")
.accessGroupServeAcl("string")
.accessGroupServeOnlyAcl("string")
.authenticate(false)
.authenticationKeys(NtpAuthenticationKeyArgs.builder()
.number(0)
.cmacAes128("string")
.encryptionType(0)
.hmacSha1("string")
.hmacSha2256("string")
.md5("string")
.sha1("string")
.sha2("string")
.build())
.clockPeriod(0)
.deleteMode("string")
.device("string")
.logging(false)
.master(false)
.masterStratum(0)
.passive(false)
.peerVrfs(NtpPeerVrfArgs.builder()
.name("string")
.peers(NtpPeerVrfPeerArgs.builder()
.ipAddress("string")
.key(0)
.prefer(false)
.version(0)
.build())
.build())
.peers(NtpPeerArgs.builder()
.ipAddress("string")
.key(0)
.prefer(false)
.source("string")
.version(0)
.build())
.serverVrfs(NtpServerVrfArgs.builder()
.name("string")
.servers(NtpServerVrfServerArgs.builder()
.ipAddress("string")
.key(0)
.prefer(false)
.version(0)
.build())
.build())
.servers(NtpServerArgs.builder()
.ipAddress("string")
.key(0)
.prefer(false)
.source("string")
.version(0)
.build())
.trapSourceFortyGigabitEthernet("string")
.trapSourceGigabitEthernet("string")
.trapSourceHundredGigE("string")
.trapSourceLoopback(0)
.trapSourcePortChannel(0)
.trapSourcePortChannelSubinterface("string")
.trapSourceTenGigabitEthernet("string")
.trapSourceVlan(0)
.updateCalendar(false)
.build());
ntp_resource = iosxe.Ntp("ntpResource",
access_group_peer_acl="string",
access_group_query_only_acl="string",
access_group_serve_acl="string",
access_group_serve_only_acl="string",
authenticate=False,
authentication_keys=[{
"number": 0,
"cmac_aes128": "string",
"encryption_type": 0,
"hmac_sha1": "string",
"hmac_sha2256": "string",
"md5": "string",
"sha1": "string",
"sha2": "string",
}],
clock_period=0,
delete_mode="string",
device="string",
logging=False,
master=False,
master_stratum=0,
passive=False,
peer_vrfs=[{
"name": "string",
"peers": [{
"ip_address": "string",
"key": 0,
"prefer": False,
"version": 0,
}],
}],
peers=[{
"ip_address": "string",
"key": 0,
"prefer": False,
"source": "string",
"version": 0,
}],
server_vrfs=[{
"name": "string",
"servers": [{
"ip_address": "string",
"key": 0,
"prefer": False,
"version": 0,
}],
}],
servers=[{
"ip_address": "string",
"key": 0,
"prefer": False,
"source": "string",
"version": 0,
}],
trap_source_forty_gigabit_ethernet="string",
trap_source_gigabit_ethernet="string",
trap_source_hundred_gig_e="string",
trap_source_loopback=0,
trap_source_port_channel=0,
trap_source_port_channel_subinterface="string",
trap_source_ten_gigabit_ethernet="string",
trap_source_vlan=0,
update_calendar=False)
const ntpResource = new iosxe.Ntp("ntpResource", {
accessGroupPeerAcl: "string",
accessGroupQueryOnlyAcl: "string",
accessGroupServeAcl: "string",
accessGroupServeOnlyAcl: "string",
authenticate: false,
authenticationKeys: [{
number: 0,
cmacAes128: "string",
encryptionType: 0,
hmacSha1: "string",
hmacSha2256: "string",
md5: "string",
sha1: "string",
sha2: "string",
}],
clockPeriod: 0,
deleteMode: "string",
device: "string",
logging: false,
master: false,
masterStratum: 0,
passive: false,
peerVrfs: [{
name: "string",
peers: [{
ipAddress: "string",
key: 0,
prefer: false,
version: 0,
}],
}],
peers: [{
ipAddress: "string",
key: 0,
prefer: false,
source: "string",
version: 0,
}],
serverVrfs: [{
name: "string",
servers: [{
ipAddress: "string",
key: 0,
prefer: false,
version: 0,
}],
}],
servers: [{
ipAddress: "string",
key: 0,
prefer: false,
source: "string",
version: 0,
}],
trapSourceFortyGigabitEthernet: "string",
trapSourceGigabitEthernet: "string",
trapSourceHundredGigE: "string",
trapSourceLoopback: 0,
trapSourcePortChannel: 0,
trapSourcePortChannelSubinterface: "string",
trapSourceTenGigabitEthernet: "string",
trapSourceVlan: 0,
updateCalendar: false,
});
type: iosxe:Ntp
properties:
accessGroupPeerAcl: string
accessGroupQueryOnlyAcl: string
accessGroupServeAcl: string
accessGroupServeOnlyAcl: string
authenticate: false
authenticationKeys:
- cmacAes128: string
encryptionType: 0
hmacSha1: string
hmacSha2256: string
md5: string
number: 0
sha1: string
sha2: string
clockPeriod: 0
deleteMode: string
device: string
logging: false
master: false
masterStratum: 0
passive: false
peerVrfs:
- name: string
peers:
- ipAddress: string
key: 0
prefer: false
version: 0
peers:
- ipAddress: string
key: 0
prefer: false
source: string
version: 0
serverVrfs:
- name: string
servers:
- ipAddress: string
key: 0
prefer: false
version: 0
servers:
- ipAddress: string
key: 0
prefer: false
source: string
version: 0
trapSourceFortyGigabitEthernet: string
trapSourceGigabitEthernet: string
trapSourceHundredGigE: string
trapSourceLoopback: 0
trapSourcePortChannel: 0
trapSourcePortChannelSubinterface: string
trapSourceTenGigabitEthernet: string
trapSourceVlan: 0
updateCalendar: false
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Ntp resource accepts the following input properties:
- Access
Group stringPeer Acl - Access
Group stringQuery Only Acl - Access
Group stringServe Acl - Access
Group stringServe Only Acl - Authenticate bool
- Authenticate time sources
- Authentication
Keys List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Ntp Authentication Key> - Authentication key for trusted time sources
- Clock
Period int - Length of hardware clock tick - Range:
0
-4294967295
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Logging bool
- Enable NTP message logging
- Master bool
- Act as NTP master clock
- Master
Stratum int - Range:
1
-15
- Range:
- Passive bool
- NTP passive mode
- Peer
Vrfs List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Ntp Peer Vrf> - VPN Routing/Forwarding Information
- Peers
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Ntp Peer> - Server
Vrfs List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Ntp Server Vrf> - VPN Routing/Forwarding Information
- Servers
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Ntp Server> - Trap
Source stringForty Gigabit Ethernet - Forty GigabitEthernet
- Trap
Source stringGigabit Ethernet - GigabitEthernet IEEE 802.3z
- Trap
Source stringHundred Gig E - Hundred GigabitEthernet
- Trap
Source intLoopback - Loopback interface - Range:
0
-2147483647
- Trap
Source intPort Channel - Ethernet Channel of interfaces - Range:
0
-4294967295
- Trap
Source stringPort Channel Subinterface - Trap
Source stringTen Gigabit Ethernet - Ten Gigabit Ethernet
- Trap
Source intVlan - Iosxr Vlans - Range:
0
-65535
- Update
Calendar bool - Periodically update calendar with NTP time
- Access
Group stringPeer Acl - Access
Group stringQuery Only Acl - Access
Group stringServe Acl - Access
Group stringServe Only Acl - Authenticate bool
- Authenticate time sources
- Authentication
Keys []NtpAuthentication Key Args - Authentication key for trusted time sources
- Clock
Period int - Length of hardware clock tick - Range:
0
-4294967295
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Logging bool
- Enable NTP message logging
- Master bool
- Act as NTP master clock
- Master
Stratum int - Range:
1
-15
- Range:
- Passive bool
- NTP passive mode
- Peer
Vrfs []NtpPeer Vrf Args - VPN Routing/Forwarding Information
- Peers
[]Ntp
Peer Args - Server
Vrfs []NtpServer Vrf Args - VPN Routing/Forwarding Information
- Servers
[]Ntp
Server Args - Trap
Source stringForty Gigabit Ethernet - Forty GigabitEthernet
- Trap
Source stringGigabit Ethernet - GigabitEthernet IEEE 802.3z
- Trap
Source stringHundred Gig E - Hundred GigabitEthernet
- Trap
Source intLoopback - Loopback interface - Range:
0
-2147483647
- Trap
Source intPort Channel - Ethernet Channel of interfaces - Range:
0
-4294967295
- Trap
Source stringPort Channel Subinterface - Trap
Source stringTen Gigabit Ethernet - Ten Gigabit Ethernet
- Trap
Source intVlan - Iosxr Vlans - Range:
0
-65535
- Update
Calendar bool - Periodically update calendar with NTP time
- access
Group StringPeer Acl - access
Group StringQuery Only Acl - access
Group StringServe Acl - access
Group StringServe Only Acl - authenticate Boolean
- Authenticate time sources
- authentication
Keys List<NtpAuthentication Key> - Authentication key for trusted time sources
- clock
Period Integer - Length of hardware clock tick - Range:
0
-4294967295
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- logging Boolean
- Enable NTP message logging
- master Boolean
- Act as NTP master clock
- master
Stratum Integer - Range:
1
-15
- Range:
- passive Boolean
- NTP passive mode
- peer
Vrfs List<NtpPeer Vrf> - VPN Routing/Forwarding Information
- peers
List<Ntp
Peer> - server
Vrfs List<NtpServer Vrf> - VPN Routing/Forwarding Information
- servers
List<Ntp
Server> - trap
Source StringForty Gigabit Ethernet - Forty GigabitEthernet
- trap
Source StringGigabit Ethernet - GigabitEthernet IEEE 802.3z
- trap
Source StringHundred Gig E - Hundred GigabitEthernet
- trap
Source IntegerLoopback - Loopback interface - Range:
0
-2147483647
- trap
Source IntegerPort Channel - Ethernet Channel of interfaces - Range:
0
-4294967295
- trap
Source StringPort Channel Subinterface - trap
Source StringTen Gigabit Ethernet - Ten Gigabit Ethernet
- trap
Source IntegerVlan - Iosxr Vlans - Range:
0
-65535
- update
Calendar Boolean - Periodically update calendar with NTP time
- access
Group stringPeer Acl - access
Group stringQuery Only Acl - access
Group stringServe Acl - access
Group stringServe Only Acl - authenticate boolean
- Authenticate time sources
- authentication
Keys NtpAuthentication Key[] - Authentication key for trusted time sources
- clock
Period number - Length of hardware clock tick - Range:
0
-4294967295
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device string
- A device name from the provider configuration.
- logging boolean
- Enable NTP message logging
- master boolean
- Act as NTP master clock
- master
Stratum number - Range:
1
-15
- Range:
- passive boolean
- NTP passive mode
- peer
Vrfs NtpPeer Vrf[] - VPN Routing/Forwarding Information
- peers
Ntp
Peer[] - server
Vrfs NtpServer Vrf[] - VPN Routing/Forwarding Information
- servers
Ntp
Server[] - trap
Source stringForty Gigabit Ethernet - Forty GigabitEthernet
- trap
Source stringGigabit Ethernet - GigabitEthernet IEEE 802.3z
- trap
Source stringHundred Gig E - Hundred GigabitEthernet
- trap
Source numberLoopback - Loopback interface - Range:
0
-2147483647
- trap
Source numberPort Channel - Ethernet Channel of interfaces - Range:
0
-4294967295
- trap
Source stringPort Channel Subinterface - trap
Source stringTen Gigabit Ethernet - Ten Gigabit Ethernet
- trap
Source numberVlan - Iosxr Vlans - Range:
0
-65535
- update
Calendar boolean - Periodically update calendar with NTP time
- access_
group_ strpeer_ acl - access_
group_ strquery_ only_ acl - access_
group_ strserve_ acl - access_
group_ strserve_ only_ acl - authenticate bool
- Authenticate time sources
- authentication_
keys Sequence[NtpAuthentication Key Args] - Authentication key for trusted time sources
- clock_
period int - Length of hardware clock tick - Range:
0
-4294967295
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device str
- A device name from the provider configuration.
- logging bool
- Enable NTP message logging
- master bool
- Act as NTP master clock
- master_
stratum int - Range:
1
-15
- Range:
- passive bool
- NTP passive mode
- peer_
vrfs Sequence[NtpPeer Vrf Args] - VPN Routing/Forwarding Information
- peers
Sequence[Ntp
Peer Args] - server_
vrfs Sequence[NtpServer Vrf Args] - VPN Routing/Forwarding Information
- servers
Sequence[Ntp
Server Args] - trap_
source_ strforty_ gigabit_ ethernet - Forty GigabitEthernet
- trap_
source_ strgigabit_ ethernet - GigabitEthernet IEEE 802.3z
- trap_
source_ strhundred_ gig_ e - Hundred GigabitEthernet
- trap_
source_ intloopback - Loopback interface - Range:
0
-2147483647
- trap_
source_ intport_ channel - Ethernet Channel of interfaces - Range:
0
-4294967295
- trap_
source_ strport_ channel_ subinterface - trap_
source_ strten_ gigabit_ ethernet - Ten Gigabit Ethernet
- trap_
source_ intvlan - Iosxr Vlans - Range:
0
-65535
- update_
calendar bool - Periodically update calendar with NTP time
- access
Group StringPeer Acl - access
Group StringQuery Only Acl - access
Group StringServe Acl - access
Group StringServe Only Acl - authenticate Boolean
- Authenticate time sources
- authentication
Keys List<Property Map> - Authentication key for trusted time sources
- clock
Period Number - Length of hardware clock tick - Range:
0
-4294967295
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- logging Boolean
- Enable NTP message logging
- master Boolean
- Act as NTP master clock
- master
Stratum Number - Range:
1
-15
- Range:
- passive Boolean
- NTP passive mode
- peer
Vrfs List<Property Map> - VPN Routing/Forwarding Information
- peers List<Property Map>
- server
Vrfs List<Property Map> - VPN Routing/Forwarding Information
- servers List<Property Map>
- trap
Source StringForty Gigabit Ethernet - Forty GigabitEthernet
- trap
Source StringGigabit Ethernet - GigabitEthernet IEEE 802.3z
- trap
Source StringHundred Gig E - Hundred GigabitEthernet
- trap
Source NumberLoopback - Loopback interface - Range:
0
-2147483647
- trap
Source NumberPort Channel - Ethernet Channel of interfaces - Range:
0
-4294967295
- trap
Source StringPort Channel Subinterface - trap
Source StringTen Gigabit Ethernet - Ten Gigabit Ethernet
- trap
Source NumberVlan - Iosxr Vlans - Range:
0
-65535
- update
Calendar Boolean - Periodically update calendar with NTP time
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,
access_group_peer_acl: Optional[str] = None,
access_group_query_only_acl: Optional[str] = None,
access_group_serve_acl: Optional[str] = None,
access_group_serve_only_acl: Optional[str] = None,
authenticate: Optional[bool] = None,
authentication_keys: Optional[Sequence[NtpAuthenticationKeyArgs]] = None,
clock_period: Optional[int] = None,
delete_mode: Optional[str] = None,
device: Optional[str] = None,
logging: Optional[bool] = None,
master: Optional[bool] = None,
master_stratum: Optional[int] = None,
passive: Optional[bool] = None,
peer_vrfs: Optional[Sequence[NtpPeerVrfArgs]] = None,
peers: Optional[Sequence[NtpPeerArgs]] = None,
server_vrfs: Optional[Sequence[NtpServerVrfArgs]] = None,
servers: Optional[Sequence[NtpServerArgs]] = None,
trap_source_forty_gigabit_ethernet: Optional[str] = None,
trap_source_gigabit_ethernet: Optional[str] = None,
trap_source_hundred_gig_e: Optional[str] = None,
trap_source_loopback: Optional[int] = None,
trap_source_port_channel: Optional[int] = None,
trap_source_port_channel_subinterface: Optional[str] = None,
trap_source_ten_gigabit_ethernet: Optional[str] = None,
trap_source_vlan: Optional[int] = None,
update_calendar: Optional[bool] = 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.
- Access
Group stringPeer Acl - Access
Group stringQuery Only Acl - Access
Group stringServe Acl - Access
Group stringServe Only Acl - Authenticate bool
- Authenticate time sources
- Authentication
Keys List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Ntp Authentication Key> - Authentication key for trusted time sources
- Clock
Period int - Length of hardware clock tick - Range:
0
-4294967295
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Logging bool
- Enable NTP message logging
- Master bool
- Act as NTP master clock
- Master
Stratum int - Range:
1
-15
- Range:
- Passive bool
- NTP passive mode
- Peer
Vrfs List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Ntp Peer Vrf> - VPN Routing/Forwarding Information
- Peers
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Ntp Peer> - Server
Vrfs List<Lbrlabs.Pulumi Package. Iosxe. Inputs. Ntp Server Vrf> - VPN Routing/Forwarding Information
- Servers
List<Lbrlabs.
Pulumi Package. Iosxe. Inputs. Ntp Server> - Trap
Source stringForty Gigabit Ethernet - Forty GigabitEthernet
- Trap
Source stringGigabit Ethernet - GigabitEthernet IEEE 802.3z
- Trap
Source stringHundred Gig E - Hundred GigabitEthernet
- Trap
Source intLoopback - Loopback interface - Range:
0
-2147483647
- Trap
Source intPort Channel - Ethernet Channel of interfaces - Range:
0
-4294967295
- Trap
Source stringPort Channel Subinterface - Trap
Source stringTen Gigabit Ethernet - Ten Gigabit Ethernet
- Trap
Source intVlan - Iosxr Vlans - Range:
0
-65535
- Update
Calendar bool - Periodically update calendar with NTP time
- Access
Group stringPeer Acl - Access
Group stringQuery Only Acl - Access
Group stringServe Acl - Access
Group stringServe Only Acl - Authenticate bool
- Authenticate time sources
- Authentication
Keys []NtpAuthentication Key Args - Authentication key for trusted time sources
- Clock
Period int - Length of hardware clock tick - Range:
0
-4294967295
- Delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- Device string
- A device name from the provider configuration.
- Logging bool
- Enable NTP message logging
- Master bool
- Act as NTP master clock
- Master
Stratum int - Range:
1
-15
- Range:
- Passive bool
- NTP passive mode
- Peer
Vrfs []NtpPeer Vrf Args - VPN Routing/Forwarding Information
- Peers
[]Ntp
Peer Args - Server
Vrfs []NtpServer Vrf Args - VPN Routing/Forwarding Information
- Servers
[]Ntp
Server Args - Trap
Source stringForty Gigabit Ethernet - Forty GigabitEthernet
- Trap
Source stringGigabit Ethernet - GigabitEthernet IEEE 802.3z
- Trap
Source stringHundred Gig E - Hundred GigabitEthernet
- Trap
Source intLoopback - Loopback interface - Range:
0
-2147483647
- Trap
Source intPort Channel - Ethernet Channel of interfaces - Range:
0
-4294967295
- Trap
Source stringPort Channel Subinterface - Trap
Source stringTen Gigabit Ethernet - Ten Gigabit Ethernet
- Trap
Source intVlan - Iosxr Vlans - Range:
0
-65535
- Update
Calendar bool - Periodically update calendar with NTP time
- access
Group StringPeer Acl - access
Group StringQuery Only Acl - access
Group StringServe Acl - access
Group StringServe Only Acl - authenticate Boolean
- Authenticate time sources
- authentication
Keys List<NtpAuthentication Key> - Authentication key for trusted time sources
- clock
Period Integer - Length of hardware clock tick - Range:
0
-4294967295
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- logging Boolean
- Enable NTP message logging
- master Boolean
- Act as NTP master clock
- master
Stratum Integer - Range:
1
-15
- Range:
- passive Boolean
- NTP passive mode
- peer
Vrfs List<NtpPeer Vrf> - VPN Routing/Forwarding Information
- peers
List<Ntp
Peer> - server
Vrfs List<NtpServer Vrf> - VPN Routing/Forwarding Information
- servers
List<Ntp
Server> - trap
Source StringForty Gigabit Ethernet - Forty GigabitEthernet
- trap
Source StringGigabit Ethernet - GigabitEthernet IEEE 802.3z
- trap
Source StringHundred Gig E - Hundred GigabitEthernet
- trap
Source IntegerLoopback - Loopback interface - Range:
0
-2147483647
- trap
Source IntegerPort Channel - Ethernet Channel of interfaces - Range:
0
-4294967295
- trap
Source StringPort Channel Subinterface - trap
Source StringTen Gigabit Ethernet - Ten Gigabit Ethernet
- trap
Source IntegerVlan - Iosxr Vlans - Range:
0
-65535
- update
Calendar Boolean - Periodically update calendar with NTP time
- access
Group stringPeer Acl - access
Group stringQuery Only Acl - access
Group stringServe Acl - access
Group stringServe Only Acl - authenticate boolean
- Authenticate time sources
- authentication
Keys NtpAuthentication Key[] - Authentication key for trusted time sources
- clock
Period number - Length of hardware clock tick - Range:
0
-4294967295
- delete
Mode string - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device string
- A device name from the provider configuration.
- logging boolean
- Enable NTP message logging
- master boolean
- Act as NTP master clock
- master
Stratum number - Range:
1
-15
- Range:
- passive boolean
- NTP passive mode
- peer
Vrfs NtpPeer Vrf[] - VPN Routing/Forwarding Information
- peers
Ntp
Peer[] - server
Vrfs NtpServer Vrf[] - VPN Routing/Forwarding Information
- servers
Ntp
Server[] - trap
Source stringForty Gigabit Ethernet - Forty GigabitEthernet
- trap
Source stringGigabit Ethernet - GigabitEthernet IEEE 802.3z
- trap
Source stringHundred Gig E - Hundred GigabitEthernet
- trap
Source numberLoopback - Loopback interface - Range:
0
-2147483647
- trap
Source numberPort Channel - Ethernet Channel of interfaces - Range:
0
-4294967295
- trap
Source stringPort Channel Subinterface - trap
Source stringTen Gigabit Ethernet - Ten Gigabit Ethernet
- trap
Source numberVlan - Iosxr Vlans - Range:
0
-65535
- update
Calendar boolean - Periodically update calendar with NTP time
- access_
group_ strpeer_ acl - access_
group_ strquery_ only_ acl - access_
group_ strserve_ acl - access_
group_ strserve_ only_ acl - authenticate bool
- Authenticate time sources
- authentication_
keys Sequence[NtpAuthentication Key Args] - Authentication key for trusted time sources
- clock_
period int - Length of hardware clock tick - Range:
0
-4294967295
- delete_
mode str - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device str
- A device name from the provider configuration.
- logging bool
- Enable NTP message logging
- master bool
- Act as NTP master clock
- master_
stratum int - Range:
1
-15
- Range:
- passive bool
- NTP passive mode
- peer_
vrfs Sequence[NtpPeer Vrf Args] - VPN Routing/Forwarding Information
- peers
Sequence[Ntp
Peer Args] - server_
vrfs Sequence[NtpServer Vrf Args] - VPN Routing/Forwarding Information
- servers
Sequence[Ntp
Server Args] - trap_
source_ strforty_ gigabit_ ethernet - Forty GigabitEthernet
- trap_
source_ strgigabit_ ethernet - GigabitEthernet IEEE 802.3z
- trap_
source_ strhundred_ gig_ e - Hundred GigabitEthernet
- trap_
source_ intloopback - Loopback interface - Range:
0
-2147483647
- trap_
source_ intport_ channel - Ethernet Channel of interfaces - Range:
0
-4294967295
- trap_
source_ strport_ channel_ subinterface - trap_
source_ strten_ gigabit_ ethernet - Ten Gigabit Ethernet
- trap_
source_ intvlan - Iosxr Vlans - Range:
0
-65535
- update_
calendar bool - Periodically update calendar with NTP time
- access
Group StringPeer Acl - access
Group StringQuery Only Acl - access
Group StringServe Acl - access
Group StringServe Only Acl - authenticate Boolean
- Authenticate time sources
- authentication
Keys List<Property Map> - Authentication key for trusted time sources
- clock
Period Number - Length of hardware clock tick - Range:
0
-4294967295
- delete
Mode String - Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being
managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is.
Default value is
all
. - Choices:all
,attributes
- device String
- A device name from the provider configuration.
- logging Boolean
- Enable NTP message logging
- master Boolean
- Act as NTP master clock
- master
Stratum Number - Range:
1
-15
- Range:
- passive Boolean
- NTP passive mode
- peer
Vrfs List<Property Map> - VPN Routing/Forwarding Information
- peers List<Property Map>
- server
Vrfs List<Property Map> - VPN Routing/Forwarding Information
- servers List<Property Map>
- trap
Source StringForty Gigabit Ethernet - Forty GigabitEthernet
- trap
Source StringGigabit Ethernet - GigabitEthernet IEEE 802.3z
- trap
Source StringHundred Gig E - Hundred GigabitEthernet
- trap
Source NumberLoopback - Loopback interface - Range:
0
-2147483647
- trap
Source NumberPort Channel - Ethernet Channel of interfaces - Range:
0
-4294967295
- trap
Source StringPort Channel Subinterface - trap
Source StringTen Gigabit Ethernet - Ten Gigabit Ethernet
- trap
Source NumberVlan - Iosxr Vlans - Range:
0
-65535
- update
Calendar Boolean - Periodically update calendar with NTP time
Supporting Types
NtpAuthenticationKey, NtpAuthenticationKeyArgs
- Number int
- Cmac
Aes128 string - Encryption
Type int - Hmac
Sha1 string - Hmac
Sha2256 string - Md5 string
- Sha1 string
- Sha2 string
- Number int
- Cmac
Aes128 string - Encryption
Type int - Hmac
Sha1 string - Hmac
Sha2256 string - Md5 string
- Sha1 string
- Sha2 string
- number Integer
- cmac
Aes128 String - encryption
Type Integer - hmac
Sha1 String - hmac
Sha2256 String - md5 String
- sha1 String
- sha2 String
- number number
- cmac
Aes128 string - encryption
Type number - hmac
Sha1 string - hmac
Sha2256 string - md5 string
- sha1 string
- sha2 string
- number int
- cmac_
aes128 str - encryption_
type int - hmac_
sha1 str - hmac_
sha2256 str - md5 str
- sha1 str
- sha2 str
- number Number
- cmac
Aes128 String - encryption
Type Number - hmac
Sha1 String - hmac
Sha2256 String - md5 String
- sha1 String
- sha2 String
NtpPeer, NtpPeerArgs
- ip_
address str - key int
- prefer bool
- source str
- version int
NtpPeerVrf, NtpPeerVrfArgs
- Name string
- Peers
[]Ntp
Peer Vrf Peer
- name String
- peers
List<Ntp
Peer Vrf Peer>
- name string
- peers
Ntp
Peer Vrf Peer[]
- name String
- peers List<Property Map>
NtpPeerVrfPeer, NtpPeerVrfPeerArgs
- ip_
address str - key int
- prefer bool
- version int
NtpServer, NtpServerArgs
- ip_
address str - key int
- prefer bool
- source str
- version int
NtpServerVrf, NtpServerVrfArgs
- Name string
- Servers
[]Ntp
Server Vrf Server
- name string
- servers
Ntp
Server Vrf Server[]
- name String
- servers List<Property Map>
NtpServerVrfServer, NtpServerVrfServerArgs
- ip_
address str - key int
- prefer bool
- version int
Import
$ pulumi import iosxe:index/ntp:Ntp example "Cisco-IOS-XE-native:native/ntp"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
iosxe
Terraform Provider.