zpa.ApplicationSegment.getApplicationSegment
Example Usage
using System.Collections.Generic;
using Pulumi;
using Zpa = Pulumi.Zpa;
return await Deployment.RunAsync(() =>
{
var @this = Zpa.ApplicationSegment.GetApplicationSegment.Invoke(new()
{
Name = "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.GetApplicationSegment(ctx, &applicationsegment.GetApplicationSegmentArgs{
Name: pulumi.StringRef("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.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 = ApplicationSegmentFunctions.getApplicationSegment(GetApplicationSegmentArgs.builder()
.name("example")
.build());
}
}
import pulumi
import pulumi_zpa as zpa
this = zpa.ApplicationSegment.get_application_segment(name="example")
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@pulumi/zpa";
const this = zpa.ApplicationSegment.getApplicationSegment({
name: "example",
});
variables:
this:
fn::invoke:
Function: zpa:ApplicationSegment:getApplicationSegment
Arguments:
name: example
using System.Collections.Generic;
using Pulumi;
using Zpa = Pulumi.Zpa;
return await Deployment.RunAsync(() =>
{
var @this = Zpa.ApplicationSegment.GetApplicationSegment.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.GetApplicationSegment(ctx, &applicationsegment.GetApplicationSegmentArgs{
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.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 = ApplicationSegmentFunctions.getApplicationSegment(GetApplicationSegmentArgs.builder()
.id("123456789")
.build());
}
}
import pulumi
import pulumi_zpa as zpa
this = zpa.ApplicationSegment.get_application_segment(id="123456789")
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@pulumi/zpa";
const this = zpa.ApplicationSegment.getApplicationSegment({
id: "123456789",
});
variables:
this:
fn::invoke:
Function: zpa:ApplicationSegment: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,
name: Optional[str] = None,
tcp_port_ranges: Optional[Sequence[_applicationsegment.GetApplicationSegmentTcpPortRange]] = None,
udp_port_ranges: Optional[Sequence[_applicationsegment.GetApplicationSegmentUdpPortRange]] = None,
opts: Optional[InvokeOptions] = None) -> GetApplicationSegmentResult
def get_application_segment_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tcp_port_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[_applicationsegment.GetApplicationSegmentTcpPortRangeArgs]]]] = None,
udp_port_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[_applicationsegment.GetApplicationSegmentUdpPortRangeArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApplicationSegmentResult]
func GetApplicationSegment(ctx *Context, args *GetApplicationSegmentArgs, opts ...InvokeOption) (*GetApplicationSegmentResult, error)
func GetApplicationSegmentOutput(ctx *Context, args *GetApplicationSegmentOutputArgs, opts ...InvokeOption) GetApplicationSegmentResultOutput
> Note: This function is named GetApplicationSegment
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:ApplicationSegment/getApplicationSegment:getApplicationSegment
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Name string
Name of the application.
- Tcp
Port []GetRanges Application Segment Tcp Port Range - Udp
Port []GetRanges Application Segment Udp Port Range
- id String
- name String
Name of the application.
- tcp
Port List<GetRanges Tcp Port Range> - udp
Port List<GetRanges Udp Port Range>
- id string
- name string
Name of the application.
- tcp
Port GetRanges Application Segment Tcp Port Range[] - udp
Port GetRanges Application Segment Udp Port Range[]
- id str
- name str
Name of the application.
- tcp_
port_ Getranges Application Segment Tcp Port Range] - udp_
port_ Getranges Application Segment Udp Port Range]
- id String
- name String
Name of the application.
- tcp
Port List<Property Map>Ranges - udp
Port List<Property Map>Ranges
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 - Modified
Time string - Modifiedby string
- Passive
Health boolEnabled - Segment
Group stringId - Segment
Group stringName - Select
Connector boolClose To App - Server
Groups List<zscaler.Pulumi Package. Zpa. Application Segment. Outputs. Get Application Segment Server Group> - Tcp
Port List<string>Ranges - Udp
Port List<string>Ranges - Id 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 - 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 []stringRanges - Udp
Port []stringRanges - Id 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 - modified
Time String - modifiedby String
- passive
Health BooleanEnabled - segment
Group StringId - segment
Group StringName - select
Connector BooleanClose To App - server
Groups List<GetServer Group> - tcp
Port List<String>Ranges - udp
Port List<String>Ranges - id 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 - 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 string[]Ranges - udp
Port string[]Ranges - id 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 - modified_
time str - modifiedby str
- passive_
health_ boolenabled - segment_
group_ strid - segment_
group_ strname - select_
connector_ boolclose_ to_ app - server_
groups GetApplication Segment Server Group] - tcp_
port_ Sequence[str]ranges - udp_
port_ Sequence[str]ranges - id 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 - 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<String>Ranges - udp
Port List<String>Ranges - id String
- name String
Supporting Types
GetApplicationSegmentServerGroup
- Config
Space string - Creation
Time string - Description string
Description of the application.
- Dynamic
Discovery bool - Enabled bool
Whether this application is enabled or not. Default: false. Supported values:
true
,false
.- Id string
- Modified
Time string - Modifiedby string
- Name string
Name of the application.
- Config
Space string - Creation
Time string - Description string
Description of the application.
- Dynamic
Discovery bool - Enabled bool
Whether this application is enabled or not. Default: false. Supported values:
true
,false
.- Id string
- Modified
Time string - Modifiedby string
- Name string
Name of the application.
- config
Space String - creation
Time String - description String
Description of the application.
- dynamic
Discovery Boolean - enabled Boolean
Whether this application is enabled or not. Default: false. Supported values:
true
,false
.- id String
- modified
Time String - modifiedby String
- name String
Name of the application.
- config
Space string - creation
Time string - description string
Description of the application.
- dynamic
Discovery boolean - enabled boolean
Whether this application is enabled or not. Default: false. Supported values:
true
,false
.- id string
- modified
Time string - modifiedby string
- name string
Name of the application.
- config_
space str - creation_
time str - description str
Description of the application.
- dynamic_
discovery bool - enabled bool
Whether this application is enabled or not. Default: false. Supported values:
true
,false
.- id str
- modified_
time str - modifiedby str
- name str
Name of the application.
- config
Space String - creation
Time String - description String
Description of the application.
- dynamic
Discovery Boolean - enabled Boolean
Whether this application is enabled or not. Default: false. Supported values:
true
,false
.- id String
- modified
Time String - modifiedby String
- name String
Name of the application.
GetApplicationSegmentTcpPortRange
GetApplicationSegmentUdpPortRange
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
This Pulumi package is based on the
zpa
Terraform Provider.