1. Packages
  2. Zscaler Private Access (ZPA)
  3. API Docs
  4. getApplicationSegmentByType
Zscaler Private Access v1.0.2 published on Friday, Jun 20, 2025 by Zscaler

zpa.getApplicationSegmentByType

Start a Neo task
Explain and create a zpa.getApplicationSegmentByType resource
zpa logo
Zscaler Private Access v1.0.2 published on Friday, Jun 20, 2025 by Zscaler

    Use the zpa_application_segment_by_type data source to get all configured Application Segments by Access Type (e.g., BROWSER_ACCESS, INSPECT, or SECURE_REMOTE_ACCESS) for the specified customer.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@bdzscaler/pulumi-zpa";
    
    const _this = zpa.getApplicationSegmentByType({
        applicationType: "SECURE_REMOTE_ACCESS",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    this = zpa.get_application_segment_by_type(application_type="SECURE_REMOTE_ACCESS")
    
    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.GetApplicationSegmentByType(ctx, &zpa.GetApplicationSegmentByTypeArgs{
    			ApplicationType: "SECURE_REMOTE_ACCESS",
    		}, 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.GetApplicationSegmentByType.Invoke(new()
        {
            ApplicationType = "SECURE_REMOTE_ACCESS",
        });
    
    });
    
    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.GetApplicationSegmentByTypeArgs;
    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.getApplicationSegmentByType(GetApplicationSegmentByTypeArgs.builder()
                .applicationType("SECURE_REMOTE_ACCESS")
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: zpa:getApplicationSegmentByType
          arguments:
            applicationType: SECURE_REMOTE_ACCESS
    

    Using getApplicationSegmentByType

    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 getApplicationSegmentByType(args: GetApplicationSegmentByTypeArgs, opts?: InvokeOptions): Promise<GetApplicationSegmentByTypeResult>
    function getApplicationSegmentByTypeOutput(args: GetApplicationSegmentByTypeOutputArgs, opts?: InvokeOptions): Output<GetApplicationSegmentByTypeResult>
    def get_application_segment_by_type(application_type: Optional[str] = None,
                                        microtenant_id: Optional[str] = None,
                                        name: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetApplicationSegmentByTypeResult
    def get_application_segment_by_type_output(application_type: Optional[pulumi.Input[str]] = None,
                                        microtenant_id: Optional[pulumi.Input[str]] = None,
                                        name: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetApplicationSegmentByTypeResult]
    func GetApplicationSegmentByType(ctx *Context, args *GetApplicationSegmentByTypeArgs, opts ...InvokeOption) (*GetApplicationSegmentByTypeResult, error)
    func GetApplicationSegmentByTypeOutput(ctx *Context, args *GetApplicationSegmentByTypeOutputArgs, opts ...InvokeOption) GetApplicationSegmentByTypeResultOutput

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

    public static class GetApplicationSegmentByType 
    {
        public static Task<GetApplicationSegmentByTypeResult> InvokeAsync(GetApplicationSegmentByTypeArgs args, InvokeOptions? opts = null)
        public static Output<GetApplicationSegmentByTypeResult> Invoke(GetApplicationSegmentByTypeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetApplicationSegmentByTypeResult> getApplicationSegmentByType(GetApplicationSegmentByTypeArgs args, InvokeOptions options)
    public static Output<GetApplicationSegmentByTypeResult> getApplicationSegmentByType(GetApplicationSegmentByTypeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zpa:index/getApplicationSegmentByType:getApplicationSegmentByType
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getApplicationSegmentByType Result

    The following output properties are available:

    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 v1.0.2 published on Friday, Jun 20, 2025 by Zscaler
      Meet Neo: Your AI Platform Teammate