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

iosxe.LoggingIpv4HostTransport

Explore with Pulumi AI

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

    This resource can manage the Logging IPv4 Host Transport 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.LoggingIpv4HostTransport;
    import com.pulumi.iosxe.LoggingIpv4HostTransportArgs;
    import com.pulumi.iosxe.inputs.LoggingIpv4HostTransportTransportTcpPortArgs;
    import com.pulumi.iosxe.inputs.LoggingIpv4HostTransportTransportTlsPortArgs;
    import com.pulumi.iosxe.inputs.LoggingIpv4HostTransportTransportUdpPortArgs;
    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 LoggingIpv4HostTransport("example", LoggingIpv4HostTransportArgs.builder()        
                .ipv4Host("2.2.2.2")
                .transportTcpPorts(LoggingIpv4HostTransportTransportTcpPortArgs.builder()
                    .port_number(10001)
                    .build())
                .transportTlsPorts(LoggingIpv4HostTransportTransportTlsPortArgs.builder()
                    .port_number(10002)
                    .build())
                .transportUdpPorts(LoggingIpv4HostTransportTransportUdpPortArgs.builder()
                    .port_number(10000)
                    .build())
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    resources:
      example:
        type: iosxe:LoggingIpv4HostTransport
        properties:
          ipv4Host: 2.2.2.2
          transportTcpPorts:
            - port_number: 10001
          transportTlsPorts:
            - port_number: 10002
          transportUdpPorts:
            - port_number: 10000
    

    Create LoggingIpv4HostTransport Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LoggingIpv4HostTransport(name: string, args: LoggingIpv4HostTransportArgs, opts?: CustomResourceOptions);
    @overload
    def LoggingIpv4HostTransport(resource_name: str,
                                 args: LoggingIpv4HostTransportArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def LoggingIpv4HostTransport(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 ipv4_host: Optional[str] = None,
                                 delete_mode: Optional[str] = None,
                                 device: Optional[str] = None,
                                 transport_tcp_ports: Optional[Sequence[LoggingIpv4HostTransportTransportTcpPortArgs]] = None,
                                 transport_tls_ports: Optional[Sequence[LoggingIpv4HostTransportTransportTlsPortArgs]] = None,
                                 transport_udp_ports: Optional[Sequence[LoggingIpv4HostTransportTransportUdpPortArgs]] = None)
    func NewLoggingIpv4HostTransport(ctx *Context, name string, args LoggingIpv4HostTransportArgs, opts ...ResourceOption) (*LoggingIpv4HostTransport, error)
    public LoggingIpv4HostTransport(string name, LoggingIpv4HostTransportArgs args, CustomResourceOptions? opts = null)
    public LoggingIpv4HostTransport(String name, LoggingIpv4HostTransportArgs args)
    public LoggingIpv4HostTransport(String name, LoggingIpv4HostTransportArgs args, CustomResourceOptions options)
    
    type: iosxe:LoggingIpv4HostTransport
    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 LoggingIpv4HostTransportArgs
    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 LoggingIpv4HostTransportArgs
    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 LoggingIpv4HostTransportArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LoggingIpv4HostTransportArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LoggingIpv4HostTransportArgs
    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 loggingIpv4HostTransportResource = new Iosxe.LoggingIpv4HostTransport("loggingIpv4HostTransportResource", new()
    {
        Ipv4Host = "string",
        DeleteMode = "string",
        Device = "string",
        TransportTcpPorts = new[]
        {
            new Iosxe.Inputs.LoggingIpv4HostTransportTransportTcpPortArgs
            {
                PortNumber = 0,
            },
        },
        TransportTlsPorts = new[]
        {
            new Iosxe.Inputs.LoggingIpv4HostTransportTransportTlsPortArgs
            {
                PortNumber = 0,
                Profile = "string",
            },
        },
        TransportUdpPorts = new[]
        {
            new Iosxe.Inputs.LoggingIpv4HostTransportTransportUdpPortArgs
            {
                PortNumber = 0,
            },
        },
    });
    
    example, err := iosxe.NewLoggingIpv4HostTransport(ctx, "loggingIpv4HostTransportResource", &iosxe.LoggingIpv4HostTransportArgs{
    	Ipv4Host:   pulumi.String("string"),
    	DeleteMode: pulumi.String("string"),
    	Device:     pulumi.String("string"),
    	TransportTcpPorts: iosxe.LoggingIpv4HostTransportTransportTcpPortArray{
    		&iosxe.LoggingIpv4HostTransportTransportTcpPortArgs{
    			PortNumber: pulumi.Int(0),
    		},
    	},
    	TransportTlsPorts: iosxe.LoggingIpv4HostTransportTransportTlsPortArray{
    		&iosxe.LoggingIpv4HostTransportTransportTlsPortArgs{
    			PortNumber: pulumi.Int(0),
    			Profile:    pulumi.String("string"),
    		},
    	},
    	TransportUdpPorts: iosxe.LoggingIpv4HostTransportTransportUdpPortArray{
    		&iosxe.LoggingIpv4HostTransportTransportUdpPortArgs{
    			PortNumber: pulumi.Int(0),
    		},
    	},
    })
    
    var loggingIpv4HostTransportResource = new LoggingIpv4HostTransport("loggingIpv4HostTransportResource", LoggingIpv4HostTransportArgs.builder()
        .ipv4Host("string")
        .deleteMode("string")
        .device("string")
        .transportTcpPorts(LoggingIpv4HostTransportTransportTcpPortArgs.builder()
            .portNumber(0)
            .build())
        .transportTlsPorts(LoggingIpv4HostTransportTransportTlsPortArgs.builder()
            .portNumber(0)
            .profile("string")
            .build())
        .transportUdpPorts(LoggingIpv4HostTransportTransportUdpPortArgs.builder()
            .portNumber(0)
            .build())
        .build());
    
    logging_ipv4_host_transport_resource = iosxe.LoggingIpv4HostTransport("loggingIpv4HostTransportResource",
        ipv4_host="string",
        delete_mode="string",
        device="string",
        transport_tcp_ports=[{
            "port_number": 0,
        }],
        transport_tls_ports=[{
            "port_number": 0,
            "profile": "string",
        }],
        transport_udp_ports=[{
            "port_number": 0,
        }])
    
    const loggingIpv4HostTransportResource = new iosxe.LoggingIpv4HostTransport("loggingIpv4HostTransportResource", {
        ipv4Host: "string",
        deleteMode: "string",
        device: "string",
        transportTcpPorts: [{
            portNumber: 0,
        }],
        transportTlsPorts: [{
            portNumber: 0,
            profile: "string",
        }],
        transportUdpPorts: [{
            portNumber: 0,
        }],
    });
    
    type: iosxe:LoggingIpv4HostTransport
    properties:
        deleteMode: string
        device: string
        ipv4Host: string
        transportTcpPorts:
            - portNumber: 0
        transportTlsPorts:
            - portNumber: 0
              profile: string
        transportUdpPorts:
            - portNumber: 0
    

    LoggingIpv4HostTransport 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 LoggingIpv4HostTransport resource accepts the following input properties:

    Ipv4Host string
    DeleteMode 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.
    TransportTcpPorts List<Lbrlabs.PulumiPackage.Iosxe.Inputs.LoggingIpv4HostTransportTransportTcpPort>
    Port Number List
    TransportTlsPorts List<Lbrlabs.PulumiPackage.Iosxe.Inputs.LoggingIpv4HostTransportTransportTlsPort>
    Port Number List
    TransportUdpPorts List<Lbrlabs.PulumiPackage.Iosxe.Inputs.LoggingIpv4HostTransportTransportUdpPort>
    Port Number List
    Ipv4Host string
    DeleteMode 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.
    TransportTcpPorts []LoggingIpv4HostTransportTransportTcpPortArgs
    Port Number List
    TransportTlsPorts []LoggingIpv4HostTransportTransportTlsPortArgs
    Port Number List
    TransportUdpPorts []LoggingIpv4HostTransportTransportUdpPortArgs
    Port Number List
    ipv4Host String
    deleteMode 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.
    transportTcpPorts List<LoggingIpv4HostTransportTransportTcpPort>
    Port Number List
    transportTlsPorts List<LoggingIpv4HostTransportTransportTlsPort>
    Port Number List
    transportUdpPorts List<LoggingIpv4HostTransportTransportUdpPort>
    Port Number List
    ipv4Host string
    deleteMode 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.
    transportTcpPorts LoggingIpv4HostTransportTransportTcpPort[]
    Port Number List
    transportTlsPorts LoggingIpv4HostTransportTransportTlsPort[]
    Port Number List
    transportUdpPorts LoggingIpv4HostTransportTransportUdpPort[]
    Port Number List
    ipv4_host str
    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.
    transport_tcp_ports Sequence[LoggingIpv4HostTransportTransportTcpPortArgs]
    Port Number List
    transport_tls_ports Sequence[LoggingIpv4HostTransportTransportTlsPortArgs]
    Port Number List
    transport_udp_ports Sequence[LoggingIpv4HostTransportTransportUdpPortArgs]
    Port Number List
    ipv4Host String
    deleteMode 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.
    transportTcpPorts List<Property Map>
    Port Number List
    transportTlsPorts List<Property Map>
    Port Number List
    transportUdpPorts List<Property Map>
    Port Number List

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LoggingIpv4HostTransport 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 LoggingIpv4HostTransport Resource

    Get an existing LoggingIpv4HostTransport 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?: LoggingIpv4HostTransportState, opts?: CustomResourceOptions): LoggingIpv4HostTransport
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            delete_mode: Optional[str] = None,
            device: Optional[str] = None,
            ipv4_host: Optional[str] = None,
            transport_tcp_ports: Optional[Sequence[LoggingIpv4HostTransportTransportTcpPortArgs]] = None,
            transport_tls_ports: Optional[Sequence[LoggingIpv4HostTransportTransportTlsPortArgs]] = None,
            transport_udp_ports: Optional[Sequence[LoggingIpv4HostTransportTransportUdpPortArgs]] = None) -> LoggingIpv4HostTransport
    func GetLoggingIpv4HostTransport(ctx *Context, name string, id IDInput, state *LoggingIpv4HostTransportState, opts ...ResourceOption) (*LoggingIpv4HostTransport, error)
    public static LoggingIpv4HostTransport Get(string name, Input<string> id, LoggingIpv4HostTransportState? state, CustomResourceOptions? opts = null)
    public static LoggingIpv4HostTransport get(String name, Output<String> id, LoggingIpv4HostTransportState 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.
    The following state arguments are supported:
    DeleteMode 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.
    Ipv4Host string
    TransportTcpPorts List<Lbrlabs.PulumiPackage.Iosxe.Inputs.LoggingIpv4HostTransportTransportTcpPort>
    Port Number List
    TransportTlsPorts List<Lbrlabs.PulumiPackage.Iosxe.Inputs.LoggingIpv4HostTransportTransportTlsPort>
    Port Number List
    TransportUdpPorts List<Lbrlabs.PulumiPackage.Iosxe.Inputs.LoggingIpv4HostTransportTransportUdpPort>
    Port Number List
    DeleteMode 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.
    Ipv4Host string
    TransportTcpPorts []LoggingIpv4HostTransportTransportTcpPortArgs
    Port Number List
    TransportTlsPorts []LoggingIpv4HostTransportTransportTlsPortArgs
    Port Number List
    TransportUdpPorts []LoggingIpv4HostTransportTransportUdpPortArgs
    Port Number List
    deleteMode 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.
    ipv4Host String
    transportTcpPorts List<LoggingIpv4HostTransportTransportTcpPort>
    Port Number List
    transportTlsPorts List<LoggingIpv4HostTransportTransportTlsPort>
    Port Number List
    transportUdpPorts List<LoggingIpv4HostTransportTransportUdpPort>
    Port Number List
    deleteMode 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.
    ipv4Host string
    transportTcpPorts LoggingIpv4HostTransportTransportTcpPort[]
    Port Number List
    transportTlsPorts LoggingIpv4HostTransportTransportTlsPort[]
    Port Number List
    transportUdpPorts LoggingIpv4HostTransportTransportUdpPort[]
    Port Number List
    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.
    ipv4_host str
    transport_tcp_ports Sequence[LoggingIpv4HostTransportTransportTcpPortArgs]
    Port Number List
    transport_tls_ports Sequence[LoggingIpv4HostTransportTransportTlsPortArgs]
    Port Number List
    transport_udp_ports Sequence[LoggingIpv4HostTransportTransportUdpPortArgs]
    Port Number List
    deleteMode 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.
    ipv4Host String
    transportTcpPorts List<Property Map>
    Port Number List
    transportTlsPorts List<Property Map>
    Port Number List
    transportUdpPorts List<Property Map>
    Port Number List

    Supporting Types

    LoggingIpv4HostTransportTransportTcpPort, LoggingIpv4HostTransportTransportTcpPortArgs

    portNumber Integer
    portNumber number
    portNumber Number

    LoggingIpv4HostTransportTransportTlsPort, LoggingIpv4HostTransportTransportTlsPortArgs

    portNumber Integer
    profile String
    portNumber number
    profile string
    portNumber Number
    profile String

    LoggingIpv4HostTransportTransportUdpPort, LoggingIpv4HostTransportTransportUdpPortArgs

    portNumber Integer
    portNumber number
    portNumber Number

    Import

     $ pulumi import iosxe:index/loggingIpv4HostTransport:LoggingIpv4HostTransport example "Cisco-IOS-XE-native:native/logging/host/ipv4-host-transport-list=2.2.2.2"
    

    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.
    iosxe logo
    Cisco IOS XE v0.0.1 published on Friday, Sep 22, 2023 by lbrlabs