Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs
iosxe.getLogging
Explore with Pulumi AI
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 * as pulumi from "@pulumi/pulumi";
import * as iosxe from "@pulumi/iosxe";
const example = iosxe.getLogging({});
import pulumi
import pulumi_iosxe as iosxe
example = iosxe.get_logging()
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)
public static Output<GetLoggingResult> getLogging(GetLoggingArgs args, InvokeOptions options)
fn::invoke:
  function: iosxe:index/getLogging:getLogging
  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.
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
- FileMax intSize 
- FileMin intSize 
- FileName string
- FileSeverity string
- HistorySeverity string
- HistorySize int
- Set history table size
- Id string
- The path of the retrieved object.
- Ipv4Hosts
List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Logging Ipv4Host> 
- Ipv4VrfHosts List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Logging Ipv4Vrf Host> 
- Ipv6Hosts
List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Logging Ipv6Host> 
- Ipv6VrfHosts List<Lbrlabs.Pulumi Package. Iosxe. Outputs. Get Logging Ipv6Vrf Host> 
- MonitorSeverity string
- OriginId stringName 
- Define a unique text string as ID
- OriginId stringType 
- Use origin hostname/ip/ipv6 as ID
- SourceInterface string
- SourceInterfaces List<Lbrlabs.Vrves Pulumi Package. Iosxe. Outputs. Get Logging Source Interfaces Vrf> 
- 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
- FileMax intSize 
- FileMin intSize 
- FileName string
- FileSeverity string
- HistorySeverity string
- HistorySize int
- Set history table size
- Id string
- The path of the retrieved object.
- Ipv4Hosts
[]GetLogging Ipv4Host 
- Ipv4VrfHosts []GetLogging Ipv4Vrf Host 
- Ipv6Hosts
[]GetLogging Ipv6Host 
- Ipv6VrfHosts []GetLogging Ipv6Vrf Host 
- MonitorSeverity string
- OriginId stringName 
- Define a unique text string as ID
- OriginId stringType 
- Use origin hostname/ip/ipv6 as ID
- SourceInterface string
- SourceInterfaces []GetVrves Logging Source Interfaces Vrf 
- 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
- fileMax IntegerSize 
- fileMin IntegerSize 
- fileName String
- fileSeverity String
- historySeverity String
- historySize Integer
- Set history table size
- id String
- The path of the retrieved object.
- ipv4Hosts
List<GetLogging Ipv4Host> 
- ipv4VrfHosts List<GetLogging Ipv4Vrf Host> 
- ipv6Hosts
List<GetLogging Ipv6Host> 
- ipv6VrfHosts List<GetLogging Ipv6Vrf Host> 
- monitorSeverity String
- originId StringName 
- Define a unique text string as ID
- originId StringType 
- Use origin hostname/ip/ipv6 as ID
- sourceInterface String
- sourceInterfaces List<GetVrves Logging Source Interfaces Vrf> 
- 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
- fileMax numberSize 
- fileMin numberSize 
- fileName string
- fileSeverity string
- historySeverity string
- historySize number
- Set history table size
- id string
- The path of the retrieved object.
- ipv4Hosts
GetLogging Ipv4Host[] 
- ipv4VrfHosts GetLogging Ipv4Vrf Host[] 
- ipv6Hosts
GetLogging Ipv6Host[] 
- ipv6VrfHosts GetLogging Ipv6Vrf Host[] 
- monitorSeverity string
- originId stringName 
- Define a unique text string as ID
- originId stringType 
- Use origin hostname/ip/ipv6 as ID
- sourceInterface string
- sourceInterfaces GetVrves Logging Source Interfaces Vrf[] 
- 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_ intsize 
- file_min_ intsize 
- 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[GetLogging Ipv4Host] 
- ipv4_vrf_ Sequence[Gethosts Logging Ipv4Vrf Host] 
- ipv6_hosts Sequence[GetLogging Ipv6Host] 
- ipv6_vrf_ Sequence[Gethosts Logging Ipv6Vrf Host] 
- monitor_severity str
- origin_id_ strname 
- Define a unique text string as ID
- origin_id_ strtype 
- Use origin hostname/ip/ipv6 as ID
- source_interface str
- source_interfaces_ Sequence[Getvrves Logging Source Interfaces Vrf] 
- 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
- fileMax NumberSize 
- fileMin NumberSize 
- 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
- originId StringName 
- Define a unique text string as ID
- originId StringType 
- Use origin hostname/ip/ipv6 as ID
- sourceInterface String
- sourceInterfaces List<Property Map>Vrves 
- 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
- ipv4_host str
- ipv4Host String
GetLoggingIpv4VrfHost   
GetLoggingIpv6Host  
- Ipv6Host string
- Ipv6Host string
- ipv6Host String
- ipv6Host string
- ipv6_host str
- ipv6Host String
GetLoggingIpv6VrfHost   
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 iosxeTerraform Provider.