1. Packages
  2. Zscaler Private Access (ZPA)
  3. API Docs
  4. getLSSLogTypeFormats
Zscaler Private Access v0.0.11 published on Saturday, May 4, 2024 by Zscaler

zpa.getLSSLogTypeFormats

Explore with Pulumi AI

zpa logo
Zscaler Private Access v0.0.11 published on Saturday, May 4, 2024 by Zscaler

    Use the zpa_lss_config_log_type_formats data source to get information about all LSS log type formats in the Zscaler Private Access cloud. This data source is required when creating an LSS Config Controller resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const zpnTransLog = zpa.getLSSLogTypeFormats({
        logType: "zpn_trans_log",
    });
    const zpnAuthLog = zpa.getLSSLogTypeFormats({
        logType: "zpn_auth_log",
    });
    const zpnAstAuthLog = zpa.getLSSLogTypeFormats({
        logType: "zpn_ast_auth_log",
    });
    const zpnHttpTransLog = zpa.getLSSLogTypeFormats({
        logType: "zpn_http_trans_log",
    });
    const zpnAuditLog = zpa.getLSSLogTypeFormats({
        logType: "zpn_audit_log",
    });
    const zpnSysAuthLog = zpa.getLSSLogTypeFormats({
        logType: "zpn_sys_auth_log",
    });
    const zpnAstComprehensiveStats = zpa.getLSSLogTypeFormats({
        logType: "zpn_ast_comprehensive_stats",
    });
    const zpnWafHttpExchangesLog = zpa.getLSSLogTypeFormats({
        logType: "zpn_waf_http_exchanges_log",
    });
    const zpnPbrokerComprehensiveStats = zpa.getLSSLogTypeFormats({
        logType: "zpn_pbroker_comprehensive_stats",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    zpn_trans_log = zpa.get_lss_log_type_formats(log_type="zpn_trans_log")
    zpn_auth_log = zpa.get_lss_log_type_formats(log_type="zpn_auth_log")
    zpn_ast_auth_log = zpa.get_lss_log_type_formats(log_type="zpn_ast_auth_log")
    zpn_http_trans_log = zpa.get_lss_log_type_formats(log_type="zpn_http_trans_log")
    zpn_audit_log = zpa.get_lss_log_type_formats(log_type="zpn_audit_log")
    zpn_sys_auth_log = zpa.get_lss_log_type_formats(log_type="zpn_sys_auth_log")
    zpn_ast_comprehensive_stats = zpa.get_lss_log_type_formats(log_type="zpn_ast_comprehensive_stats")
    zpn_waf_http_exchanges_log = zpa.get_lss_log_type_formats(log_type="zpn_waf_http_exchanges_log")
    zpn_pbroker_comprehensive_stats = zpa.get_lss_log_type_formats(log_type="zpn_pbroker_comprehensive_stats")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/zscaler/pulumi-zpa/sdk/go/zpa"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zpa.GetLSSLogTypeFormats(ctx, &zpa.GetLSSLogTypeFormatsArgs{
    			LogType: "zpn_trans_log",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetLSSLogTypeFormats(ctx, &zpa.GetLSSLogTypeFormatsArgs{
    			LogType: "zpn_auth_log",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetLSSLogTypeFormats(ctx, &zpa.GetLSSLogTypeFormatsArgs{
    			LogType: "zpn_ast_auth_log",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetLSSLogTypeFormats(ctx, &zpa.GetLSSLogTypeFormatsArgs{
    			LogType: "zpn_http_trans_log",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetLSSLogTypeFormats(ctx, &zpa.GetLSSLogTypeFormatsArgs{
    			LogType: "zpn_audit_log",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetLSSLogTypeFormats(ctx, &zpa.GetLSSLogTypeFormatsArgs{
    			LogType: "zpn_sys_auth_log",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetLSSLogTypeFormats(ctx, &zpa.GetLSSLogTypeFormatsArgs{
    			LogType: "zpn_ast_comprehensive_stats",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetLSSLogTypeFormats(ctx, &zpa.GetLSSLogTypeFormatsArgs{
    			LogType: "zpn_waf_http_exchanges_log",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetLSSLogTypeFormats(ctx, &zpa.GetLSSLogTypeFormatsArgs{
    			LogType: "zpn_pbroker_comprehensive_stats",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zpa = Pulumi.Zpa;
    
    return await Deployment.RunAsync(() => 
    {
        var zpnTransLog = Zpa.GetLSSLogTypeFormats.Invoke(new()
        {
            LogType = "zpn_trans_log",
        });
    
        var zpnAuthLog = Zpa.GetLSSLogTypeFormats.Invoke(new()
        {
            LogType = "zpn_auth_log",
        });
    
        var zpnAstAuthLog = Zpa.GetLSSLogTypeFormats.Invoke(new()
        {
            LogType = "zpn_ast_auth_log",
        });
    
        var zpnHttpTransLog = Zpa.GetLSSLogTypeFormats.Invoke(new()
        {
            LogType = "zpn_http_trans_log",
        });
    
        var zpnAuditLog = Zpa.GetLSSLogTypeFormats.Invoke(new()
        {
            LogType = "zpn_audit_log",
        });
    
        var zpnSysAuthLog = Zpa.GetLSSLogTypeFormats.Invoke(new()
        {
            LogType = "zpn_sys_auth_log",
        });
    
        var zpnAstComprehensiveStats = Zpa.GetLSSLogTypeFormats.Invoke(new()
        {
            LogType = "zpn_ast_comprehensive_stats",
        });
    
        var zpnWafHttpExchangesLog = Zpa.GetLSSLogTypeFormats.Invoke(new()
        {
            LogType = "zpn_waf_http_exchanges_log",
        });
    
        var zpnPbrokerComprehensiveStats = Zpa.GetLSSLogTypeFormats.Invoke(new()
        {
            LogType = "zpn_pbroker_comprehensive_stats",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zpa.ZpaFunctions;
    import com.pulumi.zpa.inputs.GetLSSLogTypeFormatsArgs;
    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 zpnTransLog = ZpaFunctions.getLSSLogTypeFormats(GetLSSLogTypeFormatsArgs.builder()
                .logType("zpn_trans_log")
                .build());
    
            final var zpnAuthLog = ZpaFunctions.getLSSLogTypeFormats(GetLSSLogTypeFormatsArgs.builder()
                .logType("zpn_auth_log")
                .build());
    
            final var zpnAstAuthLog = ZpaFunctions.getLSSLogTypeFormats(GetLSSLogTypeFormatsArgs.builder()
                .logType("zpn_ast_auth_log")
                .build());
    
            final var zpnHttpTransLog = ZpaFunctions.getLSSLogTypeFormats(GetLSSLogTypeFormatsArgs.builder()
                .logType("zpn_http_trans_log")
                .build());
    
            final var zpnAuditLog = ZpaFunctions.getLSSLogTypeFormats(GetLSSLogTypeFormatsArgs.builder()
                .logType("zpn_audit_log")
                .build());
    
            final var zpnSysAuthLog = ZpaFunctions.getLSSLogTypeFormats(GetLSSLogTypeFormatsArgs.builder()
                .logType("zpn_sys_auth_log")
                .build());
    
            final var zpnAstComprehensiveStats = ZpaFunctions.getLSSLogTypeFormats(GetLSSLogTypeFormatsArgs.builder()
                .logType("zpn_ast_comprehensive_stats")
                .build());
    
            final var zpnWafHttpExchangesLog = ZpaFunctions.getLSSLogTypeFormats(GetLSSLogTypeFormatsArgs.builder()
                .logType("zpn_waf_http_exchanges_log")
                .build());
    
            final var zpnPbrokerComprehensiveStats = ZpaFunctions.getLSSLogTypeFormats(GetLSSLogTypeFormatsArgs.builder()
                .logType("zpn_pbroker_comprehensive_stats")
                .build());
    
        }
    }
    
    variables:
      zpnTransLog:
        fn::invoke:
          Function: zpa:getLSSLogTypeFormats
          Arguments:
            logType: zpn_trans_log
      zpnAuthLog:
        fn::invoke:
          Function: zpa:getLSSLogTypeFormats
          Arguments:
            logType: zpn_auth_log
      zpnAstAuthLog:
        fn::invoke:
          Function: zpa:getLSSLogTypeFormats
          Arguments:
            logType: zpn_ast_auth_log
      zpnHttpTransLog:
        fn::invoke:
          Function: zpa:getLSSLogTypeFormats
          Arguments:
            logType: zpn_http_trans_log
      zpnAuditLog:
        fn::invoke:
          Function: zpa:getLSSLogTypeFormats
          Arguments:
            logType: zpn_audit_log
      zpnSysAuthLog:
        fn::invoke:
          Function: zpa:getLSSLogTypeFormats
          Arguments:
            logType: zpn_sys_auth_log
      zpnAstComprehensiveStats:
        fn::invoke:
          Function: zpa:getLSSLogTypeFormats
          Arguments:
            logType: zpn_ast_comprehensive_stats
      zpnWafHttpExchangesLog:
        fn::invoke:
          Function: zpa:getLSSLogTypeFormats
          Arguments:
            logType: zpn_waf_http_exchanges_log
      zpnPbrokerComprehensiveStats:
        fn::invoke:
          Function: zpa:getLSSLogTypeFormats
          Arguments:
            logType: zpn_pbroker_comprehensive_stats
    

    Read-Only

    The following arguments are supported:

    • log_type - (Required) The type of log to be exported.
      • zpn_trans_log
      • zpn_auth_log
      • zpn_ast_auth_log
      • zpn_http_trans_log
      • zpn_audit_log
      • zpn_sys_auth_log
      • zpn_ast_comprehensive_stats
      • zpn_waf_http_exchanges_log
      • zpn_pbroker_comprehensive_stats

    Using getLSSLogTypeFormats

    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 getLSSLogTypeFormats(args: GetLSSLogTypeFormatsArgs, opts?: InvokeOptions): Promise<GetLSSLogTypeFormatsResult>
    function getLSSLogTypeFormatsOutput(args: GetLSSLogTypeFormatsOutputArgs, opts?: InvokeOptions): Output<GetLSSLogTypeFormatsResult>
    def get_lss_log_type_formats(log_type: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetLSSLogTypeFormatsResult
    def get_lss_log_type_formats_output(log_type: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetLSSLogTypeFormatsResult]
    func GetLSSLogTypeFormats(ctx *Context, args *GetLSSLogTypeFormatsArgs, opts ...InvokeOption) (*GetLSSLogTypeFormatsResult, error)
    func GetLSSLogTypeFormatsOutput(ctx *Context, args *GetLSSLogTypeFormatsOutputArgs, opts ...InvokeOption) GetLSSLogTypeFormatsResultOutput

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

    public static class GetLSSLogTypeFormats 
    {
        public static Task<GetLSSLogTypeFormatsResult> InvokeAsync(GetLSSLogTypeFormatsArgs args, InvokeOptions? opts = null)
        public static Output<GetLSSLogTypeFormatsResult> Invoke(GetLSSLogTypeFormatsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLSSLogTypeFormatsResult> getLSSLogTypeFormats(GetLSSLogTypeFormatsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: zpa:index/getLSSLogTypeFormats:getLSSLogTypeFormats
      arguments:
        # arguments dictionary

    The following arguments are supported:

    LogType string
    LogType string
    logType String
    logType string
    logType String

    getLSSLogTypeFormats Result

    The following output properties are available:

    Csv string
    Id string
    The provider-assigned unique ID for this managed resource.
    Json string
    LogType string
    Tsv string
    Csv string
    Id string
    The provider-assigned unique ID for this managed resource.
    Json string
    LogType string
    Tsv string
    csv String
    id String
    The provider-assigned unique ID for this managed resource.
    json String
    logType String
    tsv String
    csv string
    id string
    The provider-assigned unique ID for this managed resource.
    json string
    logType string
    tsv string
    csv str
    id str
    The provider-assigned unique ID for this managed resource.
    json str
    log_type str
    tsv str
    csv String
    id String
    The provider-assigned unique ID for this managed resource.
    json String
    logType String
    tsv String

    Package Details

    Repository
    zpa zscaler/pulumi-zpa
    License
    MIT
    Notes
    This Pulumi package is based on the zpa Terraform Provider.
    zpa logo
    Zscaler Private Access v0.0.11 published on Saturday, May 4, 2024 by Zscaler