1. Packages
  2. Zscaler Private Access (ZPA)
  3. API Docs
  4. getApplicationSegmentInspection
Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler

zpa.getApplicationSegmentInspection

Explore with Pulumi AI

zpa logo
Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler

    Use the zpa_application_segment_inspection data source to get information about an inspection application segment in the Zscaler Private Access cloud. This resource can then be referenced in a ZPA access inspection policy. This resource supports ZPA Inspection for both HTTP and HTTPS.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const this = zpa.getApplicationSegmentInspection({
        name: "ZPA_Inspection_Example",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    this = zpa.get_application_segment_inspection(name="ZPA_Inspection_Example")
    
    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.LookupApplicationSegmentInspection(ctx, &zpa.LookupApplicationSegmentInspectionArgs{
    			Name: pulumi.StringRef("ZPA_Inspection_Example"),
    		}, 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 @this = Zpa.GetApplicationSegmentInspection.Invoke(new()
        {
            Name = "ZPA_Inspection_Example",
        });
    
    });
    
    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.GetApplicationSegmentInspectionArgs;
    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 this = ZpaFunctions.getApplicationSegmentInspection(GetApplicationSegmentInspectionArgs.builder()
                .name("ZPA_Inspection_Example")
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          Function: zpa:getApplicationSegmentInspection
          Arguments:
            name: ZPA_Inspection_Example
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const this = zpa.getApplicationSegmentInspection({
        id: "123456789",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    this = zpa.get_application_segment_inspection(id="123456789")
    
    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.LookupApplicationSegmentInspection(ctx, &zpa.LookupApplicationSegmentInspectionArgs{
    			Id: pulumi.StringRef("123456789"),
    		}, 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 @this = Zpa.GetApplicationSegmentInspection.Invoke(new()
        {
            Id = "123456789",
        });
    
    });
    
    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.GetApplicationSegmentInspectionArgs;
    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 this = ZpaFunctions.getApplicationSegmentInspection(GetApplicationSegmentInspectionArgs.builder()
                .id("123456789")
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          Function: zpa:getApplicationSegmentInspection
          Arguments:
            id: '123456789'
    

    Using getApplicationSegmentInspection

    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 getApplicationSegmentInspection(args: GetApplicationSegmentInspectionArgs, opts?: InvokeOptions): Promise<GetApplicationSegmentInspectionResult>
    function getApplicationSegmentInspectionOutput(args: GetApplicationSegmentInspectionOutputArgs, opts?: InvokeOptions): Output<GetApplicationSegmentInspectionResult>
    def get_application_segment_inspection(id: Optional[str] = None,
                                           microtenant_id: Optional[str] = None,
                                           microtenant_name: Optional[str] = None,
                                           name: Optional[str] = None,
                                           tcp_port_range: Optional[Sequence[GetApplicationSegmentInspectionTcpPortRange]] = None,
                                           udp_port_range: Optional[Sequence[GetApplicationSegmentInspectionUdpPortRange]] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetApplicationSegmentInspectionResult
    def get_application_segment_inspection_output(id: Optional[pulumi.Input[str]] = None,
                                           microtenant_id: Optional[pulumi.Input[str]] = None,
                                           microtenant_name: Optional[pulumi.Input[str]] = None,
                                           name: Optional[pulumi.Input[str]] = None,
                                           tcp_port_range: Optional[pulumi.Input[Sequence[pulumi.Input[GetApplicationSegmentInspectionTcpPortRangeArgs]]]] = None,
                                           udp_port_range: Optional[pulumi.Input[Sequence[pulumi.Input[GetApplicationSegmentInspectionUdpPortRangeArgs]]]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetApplicationSegmentInspectionResult]
    func LookupApplicationSegmentInspection(ctx *Context, args *LookupApplicationSegmentInspectionArgs, opts ...InvokeOption) (*LookupApplicationSegmentInspectionResult, error)
    func LookupApplicationSegmentInspectionOutput(ctx *Context, args *LookupApplicationSegmentInspectionOutputArgs, opts ...InvokeOption) LookupApplicationSegmentInspectionResultOutput

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

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

    The following arguments are supported:

    getApplicationSegmentInspection Result

    The following output properties are available:

    Supporting Types

    GetApplicationSegmentInspectionInspectionApp

    AppId string
    ApplicationPort string
    ApplicationProtocol string
    CertificateId string
    CertificateName string
    Description string
    Domain string
    Enabled bool
    Id string
    Name string
    AppId string
    ApplicationPort string
    ApplicationProtocol string
    CertificateId string
    CertificateName string
    Description string
    Domain string
    Enabled bool
    Id string
    Name string
    appId String
    applicationPort String
    applicationProtocol String
    certificateId String
    certificateName String
    description String
    domain String
    enabled Boolean
    id String
    name String
    appId string
    applicationPort string
    applicationProtocol string
    certificateId string
    certificateName string
    description string
    domain string
    enabled boolean
    id string
    name string
    appId String
    applicationPort String
    applicationProtocol String
    certificateId String
    certificateName String
    description String
    domain String
    enabled Boolean
    id String
    name String

    GetApplicationSegmentInspectionServerGroup

    Ids List<string>
    Ids []string
    ids List<String>
    ids string[]
    ids Sequence[str]
    ids List<String>

    GetApplicationSegmentInspectionTcpPortRange

    From string
    To string
    From string
    To string
    from String
    to String
    from string
    to string
    from_ str
    to str
    from String
    to String

    GetApplicationSegmentInspectionUdpPortRange

    From string
    To string
    From string
    To string
    from String
    to String
    from string
    to string
    from_ str
    to str
    from String
    to 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.12 published on Tuesday, Jul 30, 2024 by Zscaler