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

iosxe.getLoggingIpv4HostTransport

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 IPv4 Host Transport configuration.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Iosxe = Pulumi.Iosxe;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Iosxe.GetLoggingIpv4HostTransport.Invoke(new()
        {
            Ipv4Host = "2.2.2.2",
        });
    
    });
    
    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.LookupLoggingIpv4HostTransport(ctx, &iosxe.LookupLoggingIpv4HostTransportArgs{
    			Ipv4Host: "2.2.2.2",
    		}, 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.GetLoggingIpv4HostTransportArgs;
    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.getLoggingIpv4HostTransport(GetLoggingIpv4HostTransportArgs.builder()
                .ipv4Host("2.2.2.2")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_iosxe as iosxe
    
    example = iosxe.get_logging_ipv4_host_transport(ipv4_host="2.2.2.2")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as iosxe from "@pulumi/iosxe";
    
    const example = iosxe.getLoggingIpv4HostTransport({
        ipv4Host: "2.2.2.2",
    });
    
    variables:
      example:
        fn::invoke:
          Function: iosxe:getLoggingIpv4HostTransport
          Arguments:
            ipv4Host: 2.2.2.2
    

    Using getLoggingIpv4HostTransport

    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 getLoggingIpv4HostTransport(args: GetLoggingIpv4HostTransportArgs, opts?: InvokeOptions): Promise<GetLoggingIpv4HostTransportResult>
    function getLoggingIpv4HostTransportOutput(args: GetLoggingIpv4HostTransportOutputArgs, opts?: InvokeOptions): Output<GetLoggingIpv4HostTransportResult>
    def get_logging_ipv4_host_transport(device: Optional[str] = None,
                                        ipv4_host: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetLoggingIpv4HostTransportResult
    def get_logging_ipv4_host_transport_output(device: Optional[pulumi.Input[str]] = None,
                                        ipv4_host: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetLoggingIpv4HostTransportResult]
    func LookupLoggingIpv4HostTransport(ctx *Context, args *LookupLoggingIpv4HostTransportArgs, opts ...InvokeOption) (*LookupLoggingIpv4HostTransportResult, error)
    func LookupLoggingIpv4HostTransportOutput(ctx *Context, args *LookupLoggingIpv4HostTransportOutputArgs, opts ...InvokeOption) LookupLoggingIpv4HostTransportResultOutput

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

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

    The following arguments are supported:

    Ipv4Host string
    Device string
    A device name from the provider configuration.
    Ipv4Host string
    Device string
    A device name from the provider configuration.
    ipv4Host String
    device String
    A device name from the provider configuration.
    ipv4Host string
    device string
    A device name from the provider configuration.
    ipv4_host str
    device str
    A device name from the provider configuration.
    ipv4Host String
    device String
    A device name from the provider configuration.

    getLoggingIpv4HostTransport Result

    The following output properties are available:

    Id string
    The path of the retrieved object.
    Ipv4Host string
    TransportTcpPorts []GetLoggingIpv4HostTransportTransportTcpPort
    Port Number List
    TransportTlsPorts []GetLoggingIpv4HostTransportTransportTlsPort
    Port Number List
    TransportUdpPorts []GetLoggingIpv4HostTransportTransportUdpPort
    Port Number List
    Device string
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    ipv4Host String
    transportTcpPorts List<GetLoggingIpv4HostTransportTransportTcpPort>
    Port Number List
    transportTlsPorts List<GetLoggingIpv4HostTransportTransportTlsPort>
    Port Number List
    transportUdpPorts List<GetLoggingIpv4HostTransportTransportUdpPort>
    Port Number List
    device String
    A device name from the provider configuration.
    id string
    The path of the retrieved object.
    ipv4Host string
    transportTcpPorts GetLoggingIpv4HostTransportTransportTcpPort[]
    Port Number List
    transportTlsPorts GetLoggingIpv4HostTransportTransportTlsPort[]
    Port Number List
    transportUdpPorts GetLoggingIpv4HostTransportTransportUdpPort[]
    Port Number List
    device string
    A device name from the provider configuration.
    id String
    The path of the retrieved object.
    ipv4Host String
    transportTcpPorts List<Property Map>
    Port Number List
    transportTlsPorts List<Property Map>
    Port Number List
    transportUdpPorts List<Property Map>
    Port Number List
    device String
    A device name from the provider configuration.

    Supporting Types

    GetLoggingIpv4HostTransportTransportTcpPort

    PortNumber int
    Specify the TCP port number (default=601)
    PortNumber int
    Specify the TCP port number (default=601)
    portNumber Integer
    Specify the TCP port number (default=601)
    portNumber number
    Specify the TCP port number (default=601)
    port_number int
    Specify the TCP port number (default=601)
    portNumber Number
    Specify the TCP port number (default=601)

    GetLoggingIpv4HostTransportTransportTlsPort

    PortNumber int
    Specify the TLS port number (default=6514)
    Profile string
    Specify the TLS profile
    PortNumber int
    Specify the TLS port number (default=6514)
    Profile string
    Specify the TLS profile
    portNumber Integer
    Specify the TLS port number (default=6514)
    profile String
    Specify the TLS profile
    portNumber number
    Specify the TLS port number (default=6514)
    profile string
    Specify the TLS profile
    port_number int
    Specify the TLS port number (default=6514)
    profile str
    Specify the TLS profile
    portNumber Number
    Specify the TLS port number (default=6514)
    profile String
    Specify the TLS profile

    GetLoggingIpv4HostTransportTransportUdpPort

    PortNumber int
    Specify the UDP port number (default=514)
    PortNumber int
    Specify the UDP port number (default=514)
    portNumber Integer
    Specify the UDP port number (default=514)
    portNumber number
    Specify the UDP port number (default=514)
    port_number int
    Specify the UDP port number (default=514)
    portNumber Number
    Specify the UDP port number (default=514)

    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