zpa.ApplicationSegment.getApplicationSegmentPRA
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
using System.Collections.Generic;
using Pulumi;
using Zpa = Pulumi.Zpa;
return await Deployment.RunAsync(() =>
{
var @this = Zpa.ApplicationSegment.GetApplicationSegmentPRA.Invoke(new()
{
Name = "PRA_Example",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zpa/sdk/go/zpa/ApplicationSegment"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ApplicationSegment.GetApplicationSegmentPRA(ctx, &applicationsegment.GetApplicationSegmentPRAArgs{
Name: pulumi.StringRef("PRA_Example"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zpa.ApplicationSegment.ApplicationSegmentFunctions;
import com.pulumi.zpa.ApplicationSegment.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 = ApplicationSegmentFunctions.getApplicationSegmentPRA(GetApplicationSegmentPRAArgs.builder()
.name("PRA_Example")
.build());
}
}
import pulumi
import pulumi_zpa as zpa
this = zpa.ApplicationSegment.get_application_segment_pra(name="PRA_Example")
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@pulumi/zpa";
const this = zpa.ApplicationSegment.getApplicationSegmentPRA({
name: "PRA_Example",
});
variables:
this:
fn::invoke:
Function: zpa:ApplicationSegment:getApplicationSegmentPRA
Arguments:
name: PRA_Example
using System.Collections.Generic;
using Pulumi;
using Zpa = Pulumi.Zpa;
return await Deployment.RunAsync(() =>
{
var @this = Zpa.ApplicationSegment.GetApplicationSegmentPRA.Invoke(new()
{
Id = "123456789",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zpa/sdk/go/zpa/ApplicationSegment"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ApplicationSegment.GetApplicationSegmentPRA(ctx, &applicationsegment.GetApplicationSegmentPRAArgs{
Id: pulumi.StringRef("123456789"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zpa.ApplicationSegment.ApplicationSegmentFunctions;
import com.pulumi.zpa.ApplicationSegment.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 = ApplicationSegmentFunctions.getApplicationSegmentPRA(GetApplicationSegmentPRAArgs.builder()
.id("123456789")
.build());
}
}
import pulumi
import pulumi_zpa as zpa
this = zpa.ApplicationSegment.get_application_segment_pra(id="123456789")
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@pulumi/zpa";
const this = zpa.ApplicationSegment.getApplicationSegmentPRA({
id: "123456789",
});
variables:
this:
fn::invoke:
Function: zpa:ApplicationSegment: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,
name: Optional[str] = None,
tcp_port_ranges: Optional[Sequence[_applicationsegment.GetApplicationSegmentPRATcpPortRange]] = None,
udp_port_ranges: Optional[Sequence[_applicationsegment.GetApplicationSegmentPRAUdpPortRange]] = None,
opts: Optional[InvokeOptions] = None) -> GetApplicationSegmentPRAResult
def get_application_segment_pra_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tcp_port_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[_applicationsegment.GetApplicationSegmentPRATcpPortRangeArgs]]]] = None,
udp_port_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[_applicationsegment.GetApplicationSegmentPRAUdpPortRangeArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApplicationSegmentPRAResult]
func GetApplicationSegmentPRA(ctx *Context, args *GetApplicationSegmentPRAArgs, opts ...InvokeOption) (*GetApplicationSegmentPRAResult, error)
func GetApplicationSegmentPRAOutput(ctx *Context, args *GetApplicationSegmentPRAOutputArgs, opts ...InvokeOption) GetApplicationSegmentPRAResultOutput
> Note: This function is named GetApplicationSegmentPRA
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:ApplicationSegment/getApplicationSegmentPRA:getApplicationSegmentPRA
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Name string
The name of the PRA Application Segment to be exported.
- Tcp
Port List<zscaler.Ranges Pulumi Package. Zpa. Application Segment. Inputs. Get Application Segment PRATcp Port Range> (string) TCP port ranges used to access the app.
from:
to:
- Udp
Port List<zscaler.Ranges Pulumi Package. Zpa. Application Segment. Inputs. Get Application Segment PRAUdp Port Range> (string) UDP port ranges used to access the app.
from:
to:
- Id string
- Name string
The name of the PRA Application Segment to be exported.
- Tcp
Port []GetRanges Application Segment PRATcp Port Range (string) TCP port ranges used to access the app.
from:
to:
- Udp
Port []GetRanges Application Segment PRAUdp Port Range (string) UDP port ranges used to access the app.
from:
to:
- id String
- name String
The name of the PRA Application Segment to be exported.
- tcp
Port List<GetRanges PRATcp Port Range> (string) TCP port ranges used to access the app.
from:
to:
- udp
Port List<GetRanges PRAUdp Port Range> (string) UDP port ranges used to access the app.
from:
to:
- id string
- name string
The name of the PRA Application Segment to be exported.
- tcp
Port GetRanges Application Segment PRATcp Port Range[] (string) TCP port ranges used to access the app.
from:
to:
- udp
Port GetRanges Application Segment PRAUdp Port Range[] (string) UDP port ranges used to access the app.
from:
to:
- id str
- name str
The name of the PRA Application Segment to be exported.
- tcp_
port_ Getranges Application Segment PRATcp Port Range] (string) TCP port ranges used to access the app.
from:
to:
- udp_
port_ Getranges Application Segment PRAUdp Port Range] (string) UDP port ranges used to access the app.
from:
to:
- id String
- name String
The name of the PRA Application Segment to be exported.
- tcp
Port List<Property Map>Ranges (string) TCP port ranges used to access the app.
from:
to:
- udp
Port List<Property Map>Ranges (string) UDP port ranges used to access the app.
from:
to:
getApplicationSegmentPRA Result
The following output properties are available:
- Bypass
Type string (string) Indicates whether users can bypass ZPA to access applications.
- Config
Space string (string)
- Description string
(string) Description of the application.
- Domain
Names List<string> (string) List of domains and IPs.
- Double
Encrypt bool (bool) Whether Double Encryption is enabled or disabled for the app.
- Enabled bool
(bool) Whether this application is enabled or not
- Health
Check stringType (string)
- Health
Reporting string (string) Whether health reporting for the app is Continuous or On Access. Supported values: NONE, ON_ACCESS, CONTINUOUS.
- Ip
Anchored bool (bool)
- Is
Cname boolEnabled (bool) Indicates if the Zscaler Client Connector (formerly Zscaler App or Z App) receives CNAME DNS records from the connectors.
- Passive
Health boolEnabled (bool)
- Segment
Group stringId (String) Segment Group IDs
- Segment
Group stringName - Server
Groups List<zscaler.Pulumi Package. Zpa. Application Segment. Outputs. Get Application Segment PRAServer Group> (string) List of Server Group IDs
id:
- (string) List of Server Group IDs
- Sra
Apps List<zscaler.Pulumi Package. Zpa. Application Segment. Outputs. Get Application Segment PRASra App> (string) TCP port ranges used to access the app.
app_id:
- (string)name:
- (string) Name of the Privileged Remote Accessdescription:
- (string) Description of the Privileged Remote Accessdomain:
- (string) Domain name of the Privileged Remote Access
- Tcp
Port List<string>Ranges (string) TCP port ranges used to access the app.
- Udp
Port List<string>Ranges (string) UDP port ranges used to access the app.
- Id string
- Name string
- Bypass
Type string (string) Indicates whether users can bypass ZPA to access applications.
- Config
Space string (string)
- Description string
(string) Description of the application.
- Domain
Names []string (string) List of domains and IPs.
- Double
Encrypt bool (bool) Whether Double Encryption is enabled or disabled for the app.
- Enabled bool
(bool) Whether this application is enabled or not
- Health
Check stringType (string)
- Health
Reporting string (string) Whether health reporting for the app is Continuous or On Access. Supported values: NONE, ON_ACCESS, CONTINUOUS.
- Ip
Anchored bool (bool)
- Is
Cname boolEnabled (bool) Indicates if the Zscaler Client Connector (formerly Zscaler App or Z App) receives CNAME DNS records from the connectors.
- Passive
Health boolEnabled (bool)
- Segment
Group stringId (String) Segment Group IDs
- Segment
Group stringName - Server
Groups []GetApplication Segment PRAServer Group (string) List of Server Group IDs
id:
- (string) List of Server Group IDs
- Sra
Apps []GetApplication Segment PRASra App (string) TCP port ranges used to access the app.
app_id:
- (string)name:
- (string) Name of the Privileged Remote Accessdescription:
- (string) Description of the Privileged Remote Accessdomain:
- (string) Domain name of the Privileged Remote Access
- Tcp
Port []stringRanges (string) TCP port ranges used to access the app.
- Udp
Port []stringRanges (string) UDP port ranges used to access the app.
- Id string
- Name string
- bypass
Type String (string) Indicates whether users can bypass ZPA to access applications.
- config
Space String (string)
- description String
(string) Description of the application.
- domain
Names List<String> (string) List of domains and IPs.
- double
Encrypt Boolean (bool) Whether Double Encryption is enabled or disabled for the app.
- enabled Boolean
(bool) Whether this application is enabled or not
- health
Check StringType (string)
- health
Reporting String (string) Whether health reporting for the app is Continuous or On Access. Supported values: NONE, ON_ACCESS, CONTINUOUS.
- ip
Anchored Boolean (bool)
- is
Cname BooleanEnabled (bool) Indicates if the Zscaler Client Connector (formerly Zscaler App or Z App) receives CNAME DNS records from the connectors.
- passive
Health BooleanEnabled (bool)
- segment
Group StringId (String) Segment Group IDs
- segment
Group StringName - server
Groups List<GetPRAServer Group> (string) List of Server Group IDs
id:
- (string) List of Server Group IDs
- sra
Apps List<GetPRASra App> (string) TCP port ranges used to access the app.
app_id:
- (string)name:
- (string) Name of the Privileged Remote Accessdescription:
- (string) Description of the Privileged Remote Accessdomain:
- (string) Domain name of the Privileged Remote Access
- tcp
Port List<String>Ranges (string) TCP port ranges used to access the app.
- udp
Port List<String>Ranges (string) UDP port ranges used to access the app.
- id String
- name String
- bypass
Type string (string) Indicates whether users can bypass ZPA to access applications.
- config
Space string (string)
- description string
(string) Description of the application.
- domain
Names string[] (string) List of domains and IPs.
- double
Encrypt boolean (bool) Whether Double Encryption is enabled or disabled for the app.
- enabled boolean
(bool) Whether this application is enabled or not
- health
Check stringType (string)
- health
Reporting string (string) Whether health reporting for the app is Continuous or On Access. Supported values: NONE, ON_ACCESS, CONTINUOUS.
- ip
Anchored boolean (bool)
- is
Cname booleanEnabled (bool) Indicates if the Zscaler Client Connector (formerly Zscaler App or Z App) receives CNAME DNS records from the connectors.
- passive
Health booleanEnabled (bool)
- segment
Group stringId (String) Segment Group IDs
- segment
Group stringName - server
Groups GetApplication Segment PRAServer Group[] (string) List of Server Group IDs
id:
- (string) List of Server Group IDs
- sra
Apps GetApplication Segment PRASra App[] (string) TCP port ranges used to access the app.
app_id:
- (string)name:
- (string) Name of the Privileged Remote Accessdescription:
- (string) Description of the Privileged Remote Accessdomain:
- (string) Domain name of the Privileged Remote Access
- tcp
Port string[]Ranges (string) TCP port ranges used to access the app.
- udp
Port string[]Ranges (string) UDP port ranges used to access the app.
- id string
- name string
- bypass_
type str (string) Indicates whether users can bypass ZPA to access applications.
- config_
space str (string)
- description str
(string) Description of the application.
- domain_
names Sequence[str] (string) List of domains and IPs.
- double_
encrypt bool (bool) Whether Double Encryption is enabled or disabled for the app.
- enabled bool
(bool) Whether this application is enabled or not
- health_
check_ strtype (string)
- health_
reporting str (string) Whether health reporting for the app is Continuous or On Access. Supported values: NONE, ON_ACCESS, CONTINUOUS.
- ip_
anchored bool (bool)
- is_
cname_ boolenabled (bool) Indicates if the Zscaler Client Connector (formerly Zscaler App or Z App) receives CNAME DNS records from the connectors.
- passive_
health_ boolenabled (bool)
- segment_
group_ strid (String) Segment Group IDs
- segment_
group_ strname - server_
groups GetApplication Segment PRAServer Group] (string) List of Server Group IDs
id:
- (string) List of Server Group IDs
- sra_
apps GetApplication Segment PRASra App] (string) TCP port ranges used to access the app.
app_id:
- (string)name:
- (string) Name of the Privileged Remote Accessdescription:
- (string) Description of the Privileged Remote Accessdomain:
- (string) Domain name of the Privileged Remote Access
- tcp_
port_ Sequence[str]ranges (string) TCP port ranges used to access the app.
- udp_
port_ Sequence[str]ranges (string) UDP port ranges used to access the app.
- id str
- name str
- bypass
Type String (string) Indicates whether users can bypass ZPA to access applications.
- config
Space String (string)
- description String
(string) Description of the application.
- domain
Names List<String> (string) List of domains and IPs.
- double
Encrypt Boolean (bool) Whether Double Encryption is enabled or disabled for the app.
- enabled Boolean
(bool) Whether this application is enabled or not
- health
Check StringType (string)
- health
Reporting String (string) Whether health reporting for the app is Continuous or On Access. Supported values: NONE, ON_ACCESS, CONTINUOUS.
- ip
Anchored Boolean (bool)
- is
Cname BooleanEnabled (bool) Indicates if the Zscaler Client Connector (formerly Zscaler App or Z App) receives CNAME DNS records from the connectors.
- passive
Health BooleanEnabled (bool)
- segment
Group StringId (String) Segment Group IDs
- segment
Group StringName - server
Groups List<Property Map> (string) List of Server Group IDs
id:
- (string) List of Server Group IDs
- sra
Apps List<Property Map> (string) TCP port ranges used to access the app.
app_id:
- (string)name:
- (string) Name of the Privileged Remote Accessdescription:
- (string) Description of the Privileged Remote Accessdomain:
- (string) Domain name of the Privileged Remote Access
- tcp
Port List<String>Ranges (string) TCP port ranges used to access the app.
- udp
Port List<String>Ranges (string) UDP port ranges used to access the app.
- id 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 (string) Port for the Privileged Remote Accessvalues:
RDP
andSSH
- Application
Protocol string (string) Protocol for the Privileged Remote Access. Supported values:
RDP
andSSH
- Certificate
Id string - Certificate
Name string - Connection
Security string (string) - Parameter required when
application_protocol
is of typeRDP
- Description string
(string) Description of the application.
- Domain string
- Enabled bool
(bool) Whether this application is enabled or not
- bool
- Id string
- Name string
The name of the PRA Application Segment to be exported.
- Portal bool
- App
Id string - Application
Port string (string) Port for the Privileged Remote Accessvalues:
RDP
andSSH
- Application
Protocol string (string) Protocol for the Privileged Remote Access. Supported values:
RDP
andSSH
- Certificate
Id string - Certificate
Name string - Connection
Security string (string) - Parameter required when
application_protocol
is of typeRDP
- Description string
(string) Description of the application.
- Domain string
- Enabled bool
(bool) Whether this application is enabled or not
- bool
- Id string
- Name string
The name of the PRA Application Segment to be exported.
- Portal bool
- app
Id String - application
Port String (string) Port for the Privileged Remote Accessvalues:
RDP
andSSH
- application
Protocol String (string) Protocol for the Privileged Remote Access. Supported values:
RDP
andSSH
- certificate
Id String - certificate
Name String - connection
Security String (string) - Parameter required when
application_protocol
is of typeRDP
- description String
(string) Description of the application.
- domain String
- enabled Boolean
(bool) Whether this application is enabled or not
- Boolean
- id String
- name String
The name of the PRA Application Segment to be exported.
- portal Boolean
- app
Id string - application
Port string (string) Port for the Privileged Remote Accessvalues:
RDP
andSSH
- application
Protocol string (string) Protocol for the Privileged Remote Access. Supported values:
RDP
andSSH
- certificate
Id string - certificate
Name string - connection
Security string (string) - Parameter required when
application_protocol
is of typeRDP
- description string
(string) Description of the application.
- domain string
- enabled boolean
(bool) Whether this application is enabled or not
- boolean
- id string
- name string
The name of the PRA Application Segment to be exported.
- portal boolean
- app_
id str - application_
port str (string) Port for the Privileged Remote Accessvalues:
RDP
andSSH
- application_
protocol str (string) Protocol for the Privileged Remote Access. Supported values:
RDP
andSSH
- certificate_
id str - certificate_
name str - connection_
security str (string) - Parameter required when
application_protocol
is of typeRDP
- description str
(string) Description of the application.
- domain str
- enabled bool
(bool) Whether this application is enabled or not
- bool
- id str
- name str
The name of the PRA Application Segment to be exported.
- portal bool
- app
Id String - application
Port String (string) Port for the Privileged Remote Accessvalues:
RDP
andSSH
- application
Protocol String (string) Protocol for the Privileged Remote Access. Supported values:
RDP
andSSH
- certificate
Id String - certificate
Name String - connection
Security String (string) - Parameter required when
application_protocol
is of typeRDP
- description String
(string) Description of the application.
- domain String
- enabled Boolean
(bool) Whether this application is enabled or not
- Boolean
- id String
- name String
The name of the PRA Application Segment to be exported.
- portal Boolean
GetApplicationSegmentPRATcpPortRange
GetApplicationSegmentPRAUdpPortRange
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
This Pulumi package is based on the
zpa
Terraform Provider.