1. Packages
  2. Cisco IOS XE Resource Provider
  3. API Docs
  4. getLogging
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

iosxe.getLogging

Explore with Pulumi AI

iosxe logo
Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs

    This data source can read the Logging configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetLogging.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.LookupLogging(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.GetLoggingArgs;
    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.getLogging();
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_logging()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getLogging({});
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getLogging
          Arguments: {}
    

    Using getLogging

    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 getLogging(args: GetLoggingArgs, opts?: InvokeOptions): Promise<GetLoggingResult>
    function getLoggingOutput(args: GetLoggingOutputArgs, opts?: InvokeOptions): Output<GetLoggingResult>
    def get_logging(device: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetLoggingResult
    def get_logging_output(device: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetLoggingResult]
    func LookupLogging(ctx *Context, args *LookupLoggingArgs, opts ...InvokeOption) (*LookupLoggingResult, error)
    func LookupLoggingOutput(ctx *Context, args *LookupLoggingOutputArgs, opts ...InvokeOption) LookupLoggingResultOutput

    > Note: This function is named LookupLogging in the Go SDK.

    public static class GetLogging 
    {
        public static Task<GetLoggingResult> InvokeAsync(GetLoggingArgs args, InvokeOptions? opts = null)
        public static Output<GetLoggingResult> Invoke(GetLoggingInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLoggingResult> getLogging(GetLoggingArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: iosxe:index/getLogging:getLogging
      arguments:
        # arguments dictionary

    The 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.

    getLogging Result

    The following output properties are available:

    BufferedSeverity string
    Logging severity level
    BufferedSize int
    Logging buffer size
    ConsoleSeverity string
    Facility string
    Facility parameter for syslog messages
    FileMaxSize int
    FileMinSize int
    FileName string
    FileSeverity string
    HistorySeverity string
    HistorySize int
    Set history table size
    Id string
    The path of the retrieved object.
    Ipv4Hosts List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetLoggingIpv4Host>
    Ipv4VrfHosts List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetLoggingIpv4VrfHost>
    Ipv6Hosts List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetLoggingIpv6Host>
    Ipv6VrfHosts List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetLoggingIpv6VrfHost>
    MonitorSeverity string
    OriginIdName string
    Define a unique text string as ID
    OriginIdType string
    Use origin hostname/ip/ipv6 as ID
    SourceInterface string
    SourceInterfacesVrves List<Lbrlabs.PulumiPackage.Iosxe.Outputs.GetLoggingSourceInterfacesVrf>
    Specify interface and vrf for source address in logging transactions
    Trap bool
    Set trap server logging level
    TrapSeverity string
    Device string
    A device name from the provider configuration.
    BufferedSeverity string
    Logging severity level
    BufferedSize int
    Logging buffer size
    ConsoleSeverity string
    Facility string
    Facility parameter for syslog messages
    FileMaxSize int
    FileMinSize int
    FileName string
    FileSeverity string
    HistorySeverity string
    HistorySize int
    Set history table size
    Id string
    The path of the retrieved object.
    Ipv4Hosts []GetLoggingIpv4Host
    Ipv4VrfHosts []GetLoggingIpv4VrfHost
    Ipv6Hosts []GetLoggingIpv6Host
    Ipv6VrfHosts []GetLoggingIpv6VrfHost
    MonitorSeverity string
    OriginIdName string
    Define a unique text string as ID
    OriginIdType string
    Use origin hostname/ip/ipv6 as ID
    SourceInterface string
    SourceInterfacesVrves []GetLoggingSourceInterfacesVrf
    Specify interface and vrf for source address in logging transactions
    Trap bool
    Set trap server logging level
    TrapSeverity string
    Device string
    A device name from the provider configuration.
    bufferedSeverity String
    Logging severity level
    bufferedSize Integer
    Logging buffer size
    consoleSeverity String
    facility String
    Facility parameter for syslog messages
    fileMaxSize Integer
    fileMinSize Integer
    fileName String
    fileSeverity String
    historySeverity String
    historySize Integer
    Set history table size
    id String
    The path of the retrieved object.
    ipv4Hosts List<GetLoggingIpv4Host>
    ipv4VrfHosts List<GetLoggingIpv4VrfHost>
    ipv6Hosts List<GetLoggingIpv6Host>
    ipv6VrfHosts List<GetLoggingIpv6VrfHost>
    monitorSeverity String
    originIdName String
    Define a unique text string as ID
    originIdType String
    Use origin hostname/ip/ipv6 as ID
    sourceInterface String
    sourceInterfacesVrves List<GetLoggingSourceInterfacesVrf>
    Specify interface and vrf for source address in logging transactions
    trap Boolean
    Set trap server logging level
    trapSeverity String
    device String
    A device name from the provider configuration.
    bufferedSeverity string
    Logging severity level
    bufferedSize number
    Logging buffer size
    consoleSeverity string
    facility string
    Facility parameter for syslog messages
    fileMaxSize number
    fileMinSize number
    fileName string
    fileSeverity string
    historySeverity string
    historySize number
    Set history table size
    id string
    The path of the retrieved object.
    ipv4Hosts GetLoggingIpv4Host[]
    ipv4VrfHosts GetLoggingIpv4VrfHost[]
    ipv6Hosts GetLoggingIpv6Host[]
    ipv6VrfHosts GetLoggingIpv6VrfHost[]
    monitorSeverity string
    originIdName string
    Define a unique text string as ID
    originIdType string
    Use origin hostname/ip/ipv6 as ID
    sourceInterface string
    sourceInterfacesVrves GetLoggingSourceInterfacesVrf[]
    Specify interface and vrf for source address in logging transactions
    trap boolean
    Set trap server logging level
    trapSeverity string
    device string
    A device name from the provider configuration.
    buffered_severity str
    Logging severity level
    buffered_size int
    Logging buffer size
    console_severity str
    facility str
    Facility parameter for syslog messages
    file_max_size int
    file_min_size int
    file_name str
    file_severity str
    history_severity str
    history_size int
    Set history table size
    id str
    The path of the retrieved object.
    ipv4_hosts Sequence[GetLoggingIpv4Host]
    ipv4_vrf_hosts Sequence[GetLoggingIpv4VrfHost]
    ipv6_hosts Sequence[GetLoggingIpv6Host]
    ipv6_vrf_hosts Sequence[GetLoggingIpv6VrfHost]
    monitor_severity str
    origin_id_name str
    Define a unique text string as ID
    origin_id_type str
    Use origin hostname/ip/ipv6 as ID
    source_interface str
    source_interfaces_vrves Sequence[GetLoggingSourceInterfacesVrf]
    Specify interface and vrf for source address in logging transactions
    trap bool
    Set trap server logging level
    trap_severity str
    device str
    A device name from the provider configuration.
    bufferedSeverity String
    Logging severity level
    bufferedSize Number
    Logging buffer size
    consoleSeverity String
    facility String
    Facility parameter for syslog messages
    fileMaxSize Number
    fileMinSize Number
    fileName String
    fileSeverity String
    historySeverity String
    historySize Number
    Set history table size
    id String
    The path of the retrieved object.
    ipv4Hosts List<Property Map>
    ipv4VrfHosts List<Property Map>
    ipv6Hosts List<Property Map>
    ipv6VrfHosts List<Property Map>
    monitorSeverity String
    originIdName String
    Define a unique text string as ID
    originIdType String
    Use origin hostname/ip/ipv6 as ID
    sourceInterface String
    sourceInterfacesVrves List<Property Map>
    Specify interface and vrf for source address in logging transactions
    trap Boolean
    Set trap server logging level
    trapSeverity String
    device String
    A device name from the provider configuration.

    Supporting Types

    GetLoggingIpv4Host

    Ipv4Host string
    Ipv4Host string
    ipv4Host String
    ipv4Host string
    ipv4Host String

    GetLoggingIpv4VrfHost

    Ipv4Host string
    Vrf string
    Set VRF option
    Ipv4Host string
    Vrf string
    Set VRF option
    ipv4Host String
    vrf String
    Set VRF option
    ipv4Host string
    vrf string
    Set VRF option
    ipv4_host str
    vrf str
    Set VRF option
    ipv4Host String
    vrf String
    Set VRF option

    GetLoggingIpv6Host

    Ipv6Host string
    Ipv6Host string
    ipv6Host String
    ipv6Host string
    ipv6Host String

    GetLoggingIpv6VrfHost

    Ipv6Host string
    Vrf string
    Set VRF option
    Ipv6Host string
    Vrf string
    Set VRF option
    ipv6Host String
    vrf String
    Set VRF option
    ipv6Host string
    vrf string
    Set VRF option
    ipv6_host str
    vrf str
    Set VRF option
    ipv6Host String
    vrf String
    Set VRF option

    GetLoggingSourceInterfacesVrf

    InterfaceName string
    Vrf string
    Specify the vrf of source interface for logging transactions
    InterfaceName string
    Vrf string
    Specify the vrf of source interface for logging transactions
    interfaceName String
    vrf String
    Specify the vrf of source interface for logging transactions
    interfaceName string
    vrf string
    Specify the vrf of source interface for logging transactions
    interface_name str
    vrf str
    Specify the vrf of source interface for logging transactions
    interfaceName String
    vrf String
    Specify the vrf of source interface for logging transactions

    Package Details

    Repository
    iosxe lbrlabs/pulumi-iosxe
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the iosxe Terraform Provider.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs