zpa.getApplicationSegmentPRA
Explore with Pulumi AI
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:
- id String
- microtenant
Id String - microtenant
Name String - name String
- tcp
Port List<Property Map>Range - udp
Port List<Property Map>Range
getApplicationSegmentPRA Result
The following output properties are available:
- Bypass
Type string - Config
Space string - Description string
- Domain
Names List<string> - Double
Encrypt bool - Enabled bool
- Health
Check stringType - Health
Reporting string - Ip
Anchored bool - Is
Cname boolEnabled - Passive
Health boolEnabled - Segment
Group stringId - Segment
Group stringName - Server
Groups List<Zscaler.Zpa. Outputs. Get Application Segment PRAServer Group> - Sra
Apps List<Zscaler.Zpa. Outputs. Get Application Segment PRASra App> - Tcp
Port List<Zscaler.Range Zpa. Outputs. Get Application Segment PRATcp Port Range> - Tcp
Port List<string>Ranges - Udp
Port List<Zscaler.Range Zpa. Outputs. Get Application Segment PRAUdp Port Range> - Udp
Port List<string>Ranges - Id string
- Microtenant
Id string - Microtenant
Name string - Name string
- Bypass
Type string - Config
Space string - Description string
- Domain
Names []string - Double
Encrypt bool - Enabled bool
- Health
Check stringType - Health
Reporting string - Ip
Anchored bool - Is
Cname boolEnabled - Passive
Health boolEnabled - Segment
Group stringId - Segment
Group stringName - Server
Groups []GetApplication Segment PRAServer Group - Sra
Apps []GetApplication Segment PRASra App - Tcp
Port []GetRange Application Segment PRATcp Port Range - Tcp
Port []stringRanges - Udp
Port []GetRange Application Segment PRAUdp Port Range - Udp
Port []stringRanges - Id string
- Microtenant
Id string - Microtenant
Name string - Name string
- bypass
Type String - config
Space String - description String
- domain
Names List<String> - double
Encrypt Boolean - enabled Boolean
- health
Check StringType - health
Reporting String - ip
Anchored Boolean - is
Cname BooleanEnabled - passive
Health BooleanEnabled - segment
Group StringId - segment
Group StringName - server
Groups List<GetApplication Segment PRAServer Group> - sra
Apps List<GetApplication Segment PRASra App> - tcp
Port List<GetRange Application Segment PRATcp Port Range> - tcp
Port List<String>Ranges - udp
Port List<GetRange Application Segment PRAUdp Port Range> - udp
Port List<String>Ranges - id String
- microtenant
Id String - microtenant
Name String - name String
- bypass
Type string - config
Space string - description string
- domain
Names string[] - double
Encrypt boolean - enabled boolean
- health
Check stringType - health
Reporting string - ip
Anchored boolean - is
Cname booleanEnabled - passive
Health booleanEnabled - segment
Group stringId - segment
Group stringName - server
Groups GetApplication Segment PRAServer Group[] - sra
Apps GetApplication Segment PRASra App[] - tcp
Port GetRange Application Segment PRATcp Port Range[] - tcp
Port string[]Ranges - udp
Port GetRange Application Segment PRAUdp Port Range[] - udp
Port string[]Ranges - id string
- microtenant
Id string - microtenant
Name string - name string
- bypass_
type str - config_
space str - description str
- domain_
names Sequence[str] - double_
encrypt bool - enabled bool
- health_
check_ strtype - health_
reporting str - ip_
anchored bool - is_
cname_ boolenabled - passive_
health_ boolenabled - segment_
group_ strid - segment_
group_ strname - server_
groups Sequence[GetApplication Segment PRAServer Group] - sra_
apps Sequence[GetApplication Segment PRASra App] - tcp_
port_ Sequence[Getrange Application Segment PRATcp Port Range] - tcp_
port_ Sequence[str]ranges - udp_
port_ Sequence[Getrange Application Segment PRAUdp Port Range] - udp_
port_ Sequence[str]ranges - id str
- microtenant_
id str - microtenant_
name str - name str
- bypass
Type String - config
Space String - description String
- domain
Names List<String> - double
Encrypt Boolean - enabled Boolean
- health
Check StringType - health
Reporting String - ip
Anchored Boolean - is
Cname BooleanEnabled - passive
Health BooleanEnabled - segment
Group StringId - segment
Group StringName - server
Groups List<Property Map> - sra
Apps List<Property Map> - tcp
Port List<Property Map>Range - tcp
Port List<String>Ranges - udp
Port List<Property Map>Range - udp
Port List<String>Ranges - id String
- microtenant
Id String - microtenant
Name String - name String
Supporting Types
GetApplicationSegmentPRAServerGroup
- Ids List<string>
- Ids []string
- ids List<String>
- ids string[]
- ids Sequence[str]
- ids List<String>
GetApplicationSegmentPRASraApp
- App
Id string - Application
Port string - Application
Protocol string - Certificate
Id string - Certificate
Name string - Connection
Security string - Description string
- Domain string
- Enabled bool
- bool
- Id string
- Microtenant
Id string - Microtenant
Name string - Name string
- Portal bool
- App
Id string - Application
Port string - Application
Protocol string - Certificate
Id string - Certificate
Name string - Connection
Security string - Description string
- Domain string
- Enabled bool
- bool
- Id string
- Microtenant
Id string - Microtenant
Name string - Name string
- Portal bool
- app
Id String - application
Port String - application
Protocol String - certificate
Id String - certificate
Name String - connection
Security String - description String
- domain String
- enabled Boolean
- Boolean
- id String
- microtenant
Id String - microtenant
Name String - name String
- portal Boolean
- app
Id string - application
Port string - application
Protocol string - certificate
Id string - certificate
Name string - connection
Security string - description string
- domain string
- enabled boolean
- boolean
- id string
- microtenant
Id string - microtenant
Name string - name string
- portal boolean
- app_
id str - application_
port str - application_
protocol str - certificate_
id str - certificate_
name str - connection_
security str - description str
- domain str
- enabled bool
- bool
- id str
- microtenant_
id str - microtenant_
name str - name str
- portal bool
- app
Id String - application
Port String - application
Protocol String - certificate
Id String - certificate
Name String - connection
Security String - description String
- domain String
- enabled Boolean
- Boolean
- id String
- microtenant
Id String - microtenant
Name String - name String
- portal Boolean
GetApplicationSegmentPRATcpPortRange
GetApplicationSegmentPRAUdpPortRange
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the
zpa
Terraform Provider.