Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler
zpa.getApplicationSegment
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@pulumi/zpa";
const this = zpa.getApplicationSegment({
name: "example",
});
import pulumi
import pulumi_zpa as zpa
this = zpa.get_application_segment(name="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.LookupApplicationSegment(ctx, &zpa.LookupApplicationSegmentArgs{
Name: pulumi.StringRef("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.GetApplicationSegment.Invoke(new()
{
Name = "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.GetApplicationSegmentArgs;
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.getApplicationSegment(GetApplicationSegmentArgs.builder()
.name("example")
.build());
}
}
variables:
this:
fn::invoke:
Function: zpa:getApplicationSegment
Arguments:
name: example
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@pulumi/zpa";
const this = zpa.getApplicationSegment({
id: "123456789",
});
import pulumi
import pulumi_zpa as zpa
this = zpa.get_application_segment(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.LookupApplicationSegment(ctx, &zpa.LookupApplicationSegmentArgs{
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.GetApplicationSegment.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.GetApplicationSegmentArgs;
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.getApplicationSegment(GetApplicationSegmentArgs.builder()
.id("123456789")
.build());
}
}
variables:
this:
fn::invoke:
Function: zpa:getApplicationSegment
Arguments:
id: '123456789'
Using getApplicationSegment
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 getApplicationSegment(args: GetApplicationSegmentArgs, opts?: InvokeOptions): Promise<GetApplicationSegmentResult>
function getApplicationSegmentOutput(args: GetApplicationSegmentOutputArgs, opts?: InvokeOptions): Output<GetApplicationSegmentResult>
def get_application_segment(id: Optional[str] = None,
is_incomplete_dr_config: Optional[bool] = None,
microtenant_id: Optional[str] = None,
microtenant_name: Optional[str] = None,
name: Optional[str] = None,
tcp_port_range: Optional[Sequence[GetApplicationSegmentTcpPortRange]] = None,
udp_port_range: Optional[Sequence[GetApplicationSegmentUdpPortRange]] = None,
opts: Optional[InvokeOptions] = None) -> GetApplicationSegmentResult
def get_application_segment_output(id: Optional[pulumi.Input[str]] = None,
is_incomplete_dr_config: Optional[pulumi.Input[bool]] = 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[GetApplicationSegmentTcpPortRangeArgs]]]] = None,
udp_port_range: Optional[pulumi.Input[Sequence[pulumi.Input[GetApplicationSegmentUdpPortRangeArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApplicationSegmentResult]
func LookupApplicationSegment(ctx *Context, args *LookupApplicationSegmentArgs, opts ...InvokeOption) (*LookupApplicationSegmentResult, error)
func LookupApplicationSegmentOutput(ctx *Context, args *LookupApplicationSegmentOutputArgs, opts ...InvokeOption) LookupApplicationSegmentResultOutput
> Note: This function is named LookupApplicationSegment
in the Go SDK.
public static class GetApplicationSegment
{
public static Task<GetApplicationSegmentResult> InvokeAsync(GetApplicationSegmentArgs args, InvokeOptions? opts = null)
public static Output<GetApplicationSegmentResult> Invoke(GetApplicationSegmentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApplicationSegmentResult> getApplicationSegment(GetApplicationSegmentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: zpa:index/getApplicationSegment:getApplicationSegment
arguments:
# arguments dictionary
The following arguments are supported:
- id string
- is
Incomplete booleanDr Config - microtenant
Id string - microtenant
Name string - name string
- tcp
Port GetRange Application Segment Tcp Port Range[] - udp
Port GetRange Application Segment Udp Port Range[]
- id String
- is
Incomplete BooleanDr Config - microtenant
Id String - microtenant
Name String - name String
- tcp
Port List<Property Map>Range - udp
Port List<Property Map>Range
getApplicationSegment Result
The following output properties are available:
- Bypass
Type string - Config
Space string - Creation
Time string - Default
Idle stringTimeout - Default
Max stringAge - Description string
- Domain
Names List<string> - Double
Encrypt bool - Enabled bool
- Health
Check stringType - Health
Reporting string - Ip
Anchored bool - Is
Cname boolEnabled - Is
Incomplete boolDr Config - Modified
Time string - Modifiedby string
- Passive
Health boolEnabled - Segment
Group stringId - Segment
Group stringName - Select
Connector boolClose To App - Server
Groups List<Zscaler.Zpa. Outputs. Get Application Segment Server Group> - Tcp
Port List<Zscaler.Range Zpa. Outputs. Get Application Segment Tcp Port Range> - Tcp
Port List<string>Ranges - Udp
Port List<Zscaler.Range Zpa. Outputs. Get Application Segment Udp Port Range> - Udp
Port List<string>Ranges - Use
In boolDr Mode - Id string
- Microtenant
Id string - Microtenant
Name string - Name string
- Bypass
Type string - Config
Space string - Creation
Time string - Default
Idle stringTimeout - Default
Max stringAge - Description string
- Domain
Names []string - Double
Encrypt bool - Enabled bool
- Health
Check stringType - Health
Reporting string - Ip
Anchored bool - Is
Cname boolEnabled - Is
Incomplete boolDr Config - Modified
Time string - Modifiedby string
- Passive
Health boolEnabled - Segment
Group stringId - Segment
Group stringName - Select
Connector boolClose To App - Server
Groups []GetApplication Segment Server Group - Tcp
Port []GetRange Application Segment Tcp Port Range - Tcp
Port []stringRanges - Udp
Port []GetRange Application Segment Udp Port Range - Udp
Port []stringRanges - Use
In boolDr Mode - Id string
- Microtenant
Id string - Microtenant
Name string - Name string
- bypass
Type String - config
Space String - creation
Time String - default
Idle StringTimeout - default
Max StringAge - description String
- domain
Names List<String> - double
Encrypt Boolean - enabled Boolean
- health
Check StringType - health
Reporting String - ip
Anchored Boolean - is
Cname BooleanEnabled - is
Incomplete BooleanDr Config - modified
Time String - modifiedby String
- passive
Health BooleanEnabled - segment
Group StringId - segment
Group StringName - select
Connector BooleanClose To App - server
Groups List<GetApplication Segment Server Group> - tcp
Port List<GetRange Application Segment Tcp Port Range> - tcp
Port List<String>Ranges - udp
Port List<GetRange Application Segment Udp Port Range> - udp
Port List<String>Ranges - use
In BooleanDr Mode - id String
- microtenant
Id String - microtenant
Name String - name String
- bypass
Type string - config
Space string - creation
Time string - default
Idle stringTimeout - default
Max stringAge - description string
- domain
Names string[] - double
Encrypt boolean - enabled boolean
- health
Check stringType - health
Reporting string - ip
Anchored boolean - is
Cname booleanEnabled - is
Incomplete booleanDr Config - modified
Time string - modifiedby string
- passive
Health booleanEnabled - segment
Group stringId - segment
Group stringName - select
Connector booleanClose To App - server
Groups GetApplication Segment Server Group[] - tcp
Port GetRange Application Segment Tcp Port Range[] - tcp
Port string[]Ranges - udp
Port GetRange Application Segment Udp Port Range[] - udp
Port string[]Ranges - use
In booleanDr Mode - id string
- microtenant
Id string - microtenant
Name string - name string
- bypass_
type str - config_
space str - creation_
time str - default_
idle_ strtimeout - default_
max_ strage - description str
- domain_
names Sequence[str] - double_
encrypt bool - enabled bool
- health_
check_ strtype - health_
reporting str - ip_
anchored bool - is_
cname_ boolenabled - is_
incomplete_ booldr_ config - modified_
time str - modifiedby str
- passive_
health_ boolenabled - segment_
group_ strid - segment_
group_ strname - select_
connector_ boolclose_ to_ app - server_
groups Sequence[GetApplication Segment Server Group] - tcp_
port_ Sequence[Getrange Application Segment Tcp Port Range] - tcp_
port_ Sequence[str]ranges - udp_
port_ Sequence[Getrange Application Segment Udp Port Range] - udp_
port_ Sequence[str]ranges - use_
in_ booldr_ mode - id str
- microtenant_
id str - microtenant_
name str - name str
- bypass
Type String - config
Space String - creation
Time String - default
Idle StringTimeout - default
Max StringAge - description String
- domain
Names List<String> - double
Encrypt Boolean - enabled Boolean
- health
Check StringType - health
Reporting String - ip
Anchored Boolean - is
Cname BooleanEnabled - is
Incomplete BooleanDr Config - modified
Time String - modifiedby String
- passive
Health BooleanEnabled - segment
Group StringId - segment
Group StringName - select
Connector BooleanClose To App - server
Groups 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 - use
In BooleanDr Mode - id String
- microtenant
Id String - microtenant
Name String - name String
Supporting Types
GetApplicationSegmentServerGroup
- Config
Space string - Creation
Time string - Description string
- Dynamic
Discovery bool - Enabled bool
- Id string
- Modified
Time string - Modifiedby string
- Name string
- Config
Space string - Creation
Time string - Description string
- Dynamic
Discovery bool - Enabled bool
- Id string
- Modified
Time string - Modifiedby string
- Name string
- config
Space String - creation
Time String - description String
- dynamic
Discovery Boolean - enabled Boolean
- id String
- modified
Time String - modifiedby String
- name String
- config
Space string - creation
Time string - description string
- dynamic
Discovery boolean - enabled boolean
- id string
- modified
Time string - modifiedby string
- name string
- config_
space str - creation_
time str - description str
- dynamic_
discovery bool - enabled bool
- id str
- modified_
time str - modifiedby str
- name str
- config
Space String - creation
Time String - description String
- dynamic
Discovery Boolean - enabled Boolean
- id String
- modified
Time String - modifiedby String
- name String
GetApplicationSegmentTcpPortRange
GetApplicationSegmentUdpPortRange
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the
zpa
Terraform Provider.