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

zpa.getApplicationSegmentPRA

Explore with Pulumi AI

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

    Use the zpa_application_segment_pra data source to get information about an application segment for Privileged Remote Access in the Zscaler Private Access cloud. This resource can then be referenced in an access policy rule, access policy timeout rule, access policy client forwarding rule and inspection policy. This resource supports Privileged Remote Access for both RDP and SSH.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const this = zpa.getApplicationSegmentPRA({
        name: "PRA_Example",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    this = zpa.get_application_segment_pra(name="PRA_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.LookupApplicationSegmentPRA(ctx, &zpa.LookupApplicationSegmentPRAArgs{
    			Name: pulumi.StringRef("PRA_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.GetApplicationSegmentPRA.Invoke(new()
        {
            Name = "PRA_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.GetApplicationSegmentPRAArgs;
    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.getApplicationSegmentPRA(GetApplicationSegmentPRAArgs.builder()
                .name("PRA_Example")
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          Function: zpa:getApplicationSegmentPRA
          Arguments:
            name: PRA_Example
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const this = zpa.getApplicationSegmentPRA({
        id: "123456789",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    this = zpa.get_application_segment_pra(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.LookupApplicationSegmentPRA(ctx, &zpa.LookupApplicationSegmentPRAArgs{
    			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.GetApplicationSegmentPRA.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.GetApplicationSegmentPRAArgs;
    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.getApplicationSegmentPRA(GetApplicationSegmentPRAArgs.builder()
                .id("123456789")
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          Function: zpa:getApplicationSegmentPRA
          Arguments:
            id: '123456789'
    

    Using getApplicationSegmentPRA

    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 getApplicationSegmentPRA(args: GetApplicationSegmentPRAArgs, opts?: InvokeOptions): Promise<GetApplicationSegmentPRAResult>
    function getApplicationSegmentPRAOutput(args: GetApplicationSegmentPRAOutputArgs, opts?: InvokeOptions): Output<GetApplicationSegmentPRAResult>
    def get_application_segment_pra(id: Optional[str] = None,
                                    microtenant_id: Optional[str] = None,
                                    microtenant_name: Optional[str] = None,
                                    name: Optional[str] = None,
                                    tcp_port_range: Optional[Sequence[GetApplicationSegmentPRATcpPortRange]] = None,
                                    udp_port_range: Optional[Sequence[GetApplicationSegmentPRAUdpPortRange]] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetApplicationSegmentPRAResult
    def get_application_segment_pra_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[GetApplicationSegmentPRATcpPortRangeArgs]]]] = None,
                                    udp_port_range: Optional[pulumi.Input[Sequence[pulumi.Input[GetApplicationSegmentPRAUdpPortRangeArgs]]]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetApplicationSegmentPRAResult]
    func LookupApplicationSegmentPRA(ctx *Context, args *LookupApplicationSegmentPRAArgs, opts ...InvokeOption) (*LookupApplicationSegmentPRAResult, error)
    func LookupApplicationSegmentPRAOutput(ctx *Context, args *LookupApplicationSegmentPRAOutputArgs, opts ...InvokeOption) LookupApplicationSegmentPRAResultOutput

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

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

    The following arguments are supported:

    getApplicationSegmentPRA Result

    The following output properties are available:

    Supporting Types

    GetApplicationSegmentPRAServerGroup

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

    GetApplicationSegmentPRASraApp

    appId String
    applicationPort String
    applicationProtocol String
    certificateId String
    certificateName String
    connectionSecurity String
    description String
    domain String
    enabled Boolean
    hidden Boolean
    id String
    microtenantId String
    microtenantName String
    name String
    portal Boolean
    appId string
    applicationPort string
    applicationProtocol string
    certificateId string
    certificateName string
    connectionSecurity string
    description string
    domain string
    enabled boolean
    hidden boolean
    id string
    microtenantId string
    microtenantName string
    name string
    portal boolean
    appId String
    applicationPort String
    applicationProtocol String
    certificateId String
    certificateName String
    connectionSecurity String
    description String
    domain String
    enabled Boolean
    hidden Boolean
    id String
    microtenantId String
    microtenantName String
    name String
    portal Boolean

    GetApplicationSegmentPRATcpPortRange

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

    GetApplicationSegmentPRAUdpPortRange

    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.11 published on Saturday, May 4, 2024 by Zscaler