Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getNtp
This data source can read the NTP configuration.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Iosxe = Pulumi.Iosxe;
return await Deployment.RunAsync(() => 
{
    var example = Iosxe.GetNtp.Invoke();
});
package main
import (
	"github.com/lbrlabs/pulumi-iosxe/sdk/go/iosxe"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iosxe.LookupNtp(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.iosxe.IosxeFunctions;
import com.pulumi.iosxe.inputs.GetNtpArgs;
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) {
        final var example = IosxeFunctions.getNtp();
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getNtp({});
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_ntp()
variables:
  example:
    fn::invoke:
      Function: iosxe:getNtp
      Arguments: {}
Using getNtp
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNtp(args: GetNtpArgs, opts?: InvokeOptions): Promise<GetNtpResult>
function getNtpOutput(args: GetNtpOutputArgs, opts?: InvokeOptions): Output<GetNtpResult>def get_ntp(device: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> GetNtpResult
def get_ntp_output(device: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetNtpResult]func LookupNtp(ctx *Context, args *LookupNtpArgs, opts ...InvokeOption) (*LookupNtpResult, error)
func LookupNtpOutput(ctx *Context, args *LookupNtpOutputArgs, opts ...InvokeOption) LookupNtpResultOutput> Note: This function is named LookupNtp in the Go SDK.
public static class GetNtp 
{
    public static Task<GetNtpResult> InvokeAsync(GetNtpArgs args, InvokeOptions? opts = null)
    public static Output<GetNtpResult> Invoke(GetNtpInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNtpResult> getNtp(GetNtpArgs args, InvokeOptions options)
public static Output<GetNtpResult> getNtp(GetNtpArgs args, InvokeOptions options)
fn::invoke:
  function: iosxe:index/getNtp:getNtp
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Device string
- A device name from the provider configuration.
- Device string
- A device name from the provider configuration.
- device String
- A device name from the provider configuration.
- device string
- A device name from the provider configuration.
- device str
- A device name from the provider configuration.
- device String
- A device name from the provider configuration.
getNtp Result
The following output properties are available:
- AccessGroup stringPeer Acl 
- AccessGroup stringQuery Only Acl 
- AccessGroup stringServe Acl 
- AccessGroup stringServe Only Acl 
- Authenticate bool
- Authenticate time sources
- AuthenticationKeys List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Ntp Authentication Key> 
- Authentication key for trusted time sources
- ClockPeriod int
- Length of hardware clock tick
- Id string
- The path of the retrieved object.
- Logging bool
- Enable NTP message logging
- Master bool
- Act as NTP master clock
- MasterStratum int
- Passive bool
- NTP passive mode
- PeerVrfs List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Ntp Peer Vrf> 
- VPN Routing/Forwarding Information
- Peers
List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Ntp Peer> 
- ServerVrfs List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Ntp Server Vrf> 
- VPN Routing/Forwarding Information
- Servers
List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Ntp Server> 
- TrapSource stringForty Gigabit Ethernet 
- Forty GigabitEthernet
- TrapSource stringGigabit Ethernet 
- GigabitEthernet IEEE 802.3z
- TrapSource stringHundred Gig E 
- Hundred GigabitEthernet
- TrapSource intLoopback 
- Loopback interface
- TrapSource intPort Channel 
- Ethernet Channel of interfaces
- TrapSource stringPort Channel Subinterface 
- TrapSource stringTen Gigabit Ethernet 
- Ten Gigabit Ethernet
- TrapSource intVlan 
- Iosxr Vlans
- UpdateCalendar bool
- Periodically update calendar with NTP time
- Device string
- A device name from the provider configuration.
- AccessGroup stringPeer Acl 
- AccessGroup stringQuery Only Acl 
- AccessGroup stringServe Acl 
- AccessGroup stringServe Only Acl 
- Authenticate bool
- Authenticate time sources
- AuthenticationKeys []GetNtp Authentication Key 
- Authentication key for trusted time sources
- ClockPeriod int
- Length of hardware clock tick
- Id string
- The path of the retrieved object.
- Logging bool
- Enable NTP message logging
- Master bool
- Act as NTP master clock
- MasterStratum int
- Passive bool
- NTP passive mode
- PeerVrfs []GetNtp Peer Vrf 
- VPN Routing/Forwarding Information
- Peers
[]GetNtp Peer 
- ServerVrfs []GetNtp Server Vrf 
- VPN Routing/Forwarding Information
- Servers
[]GetNtp Server 
- TrapSource stringForty Gigabit Ethernet 
- Forty GigabitEthernet
- TrapSource stringGigabit Ethernet 
- GigabitEthernet IEEE 802.3z
- TrapSource stringHundred Gig E 
- Hundred GigabitEthernet
- TrapSource intLoopback 
- Loopback interface
- TrapSource intPort Channel 
- Ethernet Channel of interfaces
- TrapSource stringPort Channel Subinterface 
- TrapSource stringTen Gigabit Ethernet 
- Ten Gigabit Ethernet
- TrapSource intVlan 
- Iosxr Vlans
- UpdateCalendar bool
- Periodically update calendar with NTP time
- Device string
- A device name from the provider configuration.
- accessGroup StringPeer Acl 
- accessGroup StringQuery Only Acl 
- accessGroup StringServe Acl 
- accessGroup StringServe Only Acl 
- authenticate Boolean
- Authenticate time sources
- authenticationKeys List<GetNtp Authentication Key> 
- Authentication key for trusted time sources
- clockPeriod Integer
- Length of hardware clock tick
- id String
- The path of the retrieved object.
- logging Boolean
- Enable NTP message logging
- master Boolean
- Act as NTP master clock
- masterStratum Integer
- passive Boolean
- NTP passive mode
- peerVrfs List<GetNtp Peer Vrf> 
- VPN Routing/Forwarding Information
- peers
List<GetNtp Peer> 
- serverVrfs List<GetNtp Server Vrf> 
- VPN Routing/Forwarding Information
- servers
List<GetNtp Server> 
- trapSource StringForty Gigabit Ethernet 
- Forty GigabitEthernet
- trapSource StringGigabit Ethernet 
- GigabitEthernet IEEE 802.3z
- trapSource StringHundred Gig E 
- Hundred GigabitEthernet
- trapSource IntegerLoopback 
- Loopback interface
- trapSource IntegerPort Channel 
- Ethernet Channel of interfaces
- trapSource StringPort Channel Subinterface 
- trapSource StringTen Gigabit Ethernet 
- Ten Gigabit Ethernet
- trapSource IntegerVlan 
- Iosxr Vlans
- updateCalendar Boolean
- Periodically update calendar with NTP time
- device String
- A device name from the provider configuration.
- accessGroup stringPeer Acl 
- accessGroup stringQuery Only Acl 
- accessGroup stringServe Acl 
- accessGroup stringServe Only Acl 
- authenticate boolean
- Authenticate time sources
- authenticationKeys GetNtp Authentication Key[] 
- Authentication key for trusted time sources
- clockPeriod number
- Length of hardware clock tick
- id string
- The path of the retrieved object.
- logging boolean
- Enable NTP message logging
- master boolean
- Act as NTP master clock
- masterStratum number
- passive boolean
- NTP passive mode
- peerVrfs GetNtp Peer Vrf[] 
- VPN Routing/Forwarding Information
- peers
GetNtp Peer[] 
- serverVrfs GetNtp Server Vrf[] 
- VPN Routing/Forwarding Information
- servers
GetNtp Server[] 
- trapSource stringForty Gigabit Ethernet 
- Forty GigabitEthernet
- trapSource stringGigabit Ethernet 
- GigabitEthernet IEEE 802.3z
- trapSource stringHundred Gig E 
- Hundred GigabitEthernet
- trapSource numberLoopback 
- Loopback interface
- trapSource numberPort Channel 
- Ethernet Channel of interfaces
- trapSource stringPort Channel Subinterface 
- trapSource stringTen Gigabit Ethernet 
- Ten Gigabit Ethernet
- trapSource numberVlan 
- Iosxr Vlans
- updateCalendar boolean
- Periodically update calendar with NTP time
- device string
- A device name from the provider configuration.
- 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[GetNtp Authentication Key] 
- Authentication key for trusted time sources
- clock_period int
- Length of hardware clock tick
- id str
- The path of the retrieved object.
- logging bool
- Enable NTP message logging
- master bool
- Act as NTP master clock
- master_stratum int
- passive bool
- NTP passive mode
- peer_vrfs Sequence[GetNtp Peer Vrf] 
- VPN Routing/Forwarding Information
- peers
Sequence[GetNtp Peer] 
- server_vrfs Sequence[GetNtp Server Vrf] 
- VPN Routing/Forwarding Information
- servers
Sequence[GetNtp Server] 
- 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
- trap_source_ intport_ channel 
- Ethernet Channel of interfaces
- trap_source_ strport_ channel_ subinterface 
- trap_source_ strten_ gigabit_ ethernet 
- Ten Gigabit Ethernet
- trap_source_ intvlan 
- Iosxr Vlans
- update_calendar bool
- Periodically update calendar with NTP time
- device str
- A device name from the provider configuration.
- accessGroup StringPeer Acl 
- accessGroup StringQuery Only Acl 
- accessGroup StringServe Acl 
- accessGroup StringServe Only Acl 
- authenticate Boolean
- Authenticate time sources
- authenticationKeys List<Property Map>
- Authentication key for trusted time sources
- clockPeriod Number
- Length of hardware clock tick
- id String
- The path of the retrieved object.
- logging Boolean
- Enable NTP message logging
- master Boolean
- Act as NTP master clock
- masterStratum Number
- passive Boolean
- NTP passive mode
- peerVrfs List<Property Map>
- VPN Routing/Forwarding Information
- peers List<Property Map>
- serverVrfs List<Property Map>
- VPN Routing/Forwarding Information
- servers List<Property Map>
- trapSource StringForty Gigabit Ethernet 
- Forty GigabitEthernet
- trapSource StringGigabit Ethernet 
- GigabitEthernet IEEE 802.3z
- trapSource StringHundred Gig E 
- Hundred GigabitEthernet
- trapSource NumberLoopback 
- Loopback interface
- trapSource NumberPort Channel 
- Ethernet Channel of interfaces
- trapSource StringPort Channel Subinterface 
- trapSource StringTen Gigabit Ethernet 
- Ten Gigabit Ethernet
- trapSource NumberVlan 
- Iosxr Vlans
- updateCalendar Boolean
- Periodically update calendar with NTP time
- device String
- A device name from the provider configuration.
Supporting Types
GetNtpAuthenticationKey   
- CmacAes128 string
- CMAC-AES-128 (digest length = 128 bits, key length = [16 or 32] bytes)
- EncryptionType int
- Authentication key encryption type
- HmacSha1 string
- HMAC-SHA1 (digest length = 160 bits, key length = [1-32] bytes)
- HmacSha2256 string
- HMAC-SHA2-256 (digest length = 256 bits, key length = [1-32] bytes)
- Md5 string
- MD5 authentication
- Number int
- Sha1 string
- SHA1 (digest length = 160 bits, key length = [1-32] bytes)
- Sha2 string
- SHA-256 (digest length = 256 bits, key length = [1-32] bytes)
- CmacAes128 string
- CMAC-AES-128 (digest length = 128 bits, key length = [16 or 32] bytes)
- EncryptionType int
- Authentication key encryption type
- HmacSha1 string
- HMAC-SHA1 (digest length = 160 bits, key length = [1-32] bytes)
- HmacSha2256 string
- HMAC-SHA2-256 (digest length = 256 bits, key length = [1-32] bytes)
- Md5 string
- MD5 authentication
- Number int
- Sha1 string
- SHA1 (digest length = 160 bits, key length = [1-32] bytes)
- Sha2 string
- SHA-256 (digest length = 256 bits, key length = [1-32] bytes)
- cmacAes128 String
- CMAC-AES-128 (digest length = 128 bits, key length = [16 or 32] bytes)
- encryptionType Integer
- Authentication key encryption type
- hmacSha1 String
- HMAC-SHA1 (digest length = 160 bits, key length = [1-32] bytes)
- hmacSha2256 String
- HMAC-SHA2-256 (digest length = 256 bits, key length = [1-32] bytes)
- md5 String
- MD5 authentication
- number Integer
- sha1 String
- SHA1 (digest length = 160 bits, key length = [1-32] bytes)
- sha2 String
- SHA-256 (digest length = 256 bits, key length = [1-32] bytes)
- cmacAes128 string
- CMAC-AES-128 (digest length = 128 bits, key length = [16 or 32] bytes)
- encryptionType number
- Authentication key encryption type
- hmacSha1 string
- HMAC-SHA1 (digest length = 160 bits, key length = [1-32] bytes)
- hmacSha2256 string
- HMAC-SHA2-256 (digest length = 256 bits, key length = [1-32] bytes)
- md5 string
- MD5 authentication
- number number
- sha1 string
- SHA1 (digest length = 160 bits, key length = [1-32] bytes)
- sha2 string
- SHA-256 (digest length = 256 bits, key length = [1-32] bytes)
- cmac_aes128 str
- CMAC-AES-128 (digest length = 128 bits, key length = [16 or 32] bytes)
- encryption_type int
- Authentication key encryption type
- hmac_sha1 str
- HMAC-SHA1 (digest length = 160 bits, key length = [1-32] bytes)
- hmac_sha2256 str
- HMAC-SHA2-256 (digest length = 256 bits, key length = [1-32] bytes)
- md5 str
- MD5 authentication
- number int
- sha1 str
- SHA1 (digest length = 160 bits, key length = [1-32] bytes)
- sha2 str
- SHA-256 (digest length = 256 bits, key length = [1-32] bytes)
- cmacAes128 String
- CMAC-AES-128 (digest length = 128 bits, key length = [16 or 32] bytes)
- encryptionType Number
- Authentication key encryption type
- hmacSha1 String
- HMAC-SHA1 (digest length = 160 bits, key length = [1-32] bytes)
- hmacSha2256 String
- HMAC-SHA2-256 (digest length = 256 bits, key length = [1-32] bytes)
- md5 String
- MD5 authentication
- number Number
- sha1 String
- SHA1 (digest length = 160 bits, key length = [1-32] bytes)
- sha2 String
- SHA-256 (digest length = 256 bits, key length = [1-32] bytes)
GetNtpPeer  
- ip_address str
- key int
- Configure peer authentication key
- prefer bool
- Prefer this peer when possible
- source str
- Interface for source address
- version int
- Configure NTP version
GetNtpPeerVrf   
- Name string
- Peers
[]GetNtp Peer Vrf Peer 
- name String
- peers
List<GetNtp Peer Vrf Peer> 
- name string
- peers
GetNtp Peer Vrf Peer[] 
- name String
- peers List<Property Map>
GetNtpPeerVrfPeer    
- ip_address str
- key int
- Configure peer authentication key
- prefer bool
- Prefer this peer when possible
- version int
- Configure NTP version
GetNtpServer  
- ip_address str
- key int
- Configure peer authentication key
- prefer bool
- Prefer this peer when possible
- source str
- Interface for source address
- version int
- Configure NTP version
GetNtpServerVrf   
- name String
- servers List<Property Map>
GetNtpServerVrfServer    
- ip_address str
- key int
- Configure peer authentication key
- prefer bool
- Prefer this peer when possible
- version int
- Configure NTP version
Package Details
- Repository
- iosxe lbrlabs/pulumi-iosxe
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the iosxeTerraform Provider.
