Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler
zpa.getApplicationSegmentByType
Explore with Pulumi AI
Use the zpa_application_segment_by_type data source to get all configured Application Segments by Access Type (e.g., BROWSER_ACCESS
, INSPECT
, or SECURE_REMOTE_ACCESS
) for the specified customer.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@pulumi/zpa";
const this = zpa.getApplicationSegmentByType({
applicationType: "SECURE_REMOTE_ACCESS",
});
import pulumi
import pulumi_zpa as zpa
this = zpa.get_application_segment_by_type(application_type="SECURE_REMOTE_ACCESS")
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.GetApplicationSegmentByType(ctx, &zpa.GetApplicationSegmentByTypeArgs{
ApplicationType: "SECURE_REMOTE_ACCESS",
}, 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.GetApplicationSegmentByType.Invoke(new()
{
ApplicationType = "SECURE_REMOTE_ACCESS",
});
});
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.GetApplicationSegmentByTypeArgs;
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.getApplicationSegmentByType(GetApplicationSegmentByTypeArgs.builder()
.applicationType("SECURE_REMOTE_ACCESS")
.build());
}
}
variables:
this:
fn::invoke:
Function: zpa:getApplicationSegmentByType
Arguments:
applicationType: SECURE_REMOTE_ACCESS
Using getApplicationSegmentByType
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 getApplicationSegmentByType(args: GetApplicationSegmentByTypeArgs, opts?: InvokeOptions): Promise<GetApplicationSegmentByTypeResult>
function getApplicationSegmentByTypeOutput(args: GetApplicationSegmentByTypeOutputArgs, opts?: InvokeOptions): Output<GetApplicationSegmentByTypeResult>
def get_application_segment_by_type(application_type: Optional[str] = None,
microtenant_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApplicationSegmentByTypeResult
def get_application_segment_by_type_output(application_type: Optional[pulumi.Input[str]] = None,
microtenant_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApplicationSegmentByTypeResult]
func GetApplicationSegmentByType(ctx *Context, args *GetApplicationSegmentByTypeArgs, opts ...InvokeOption) (*GetApplicationSegmentByTypeResult, error)
func GetApplicationSegmentByTypeOutput(ctx *Context, args *GetApplicationSegmentByTypeOutputArgs, opts ...InvokeOption) GetApplicationSegmentByTypeResultOutput
> Note: This function is named GetApplicationSegmentByType
in the Go SDK.
public static class GetApplicationSegmentByType
{
public static Task<GetApplicationSegmentByTypeResult> InvokeAsync(GetApplicationSegmentByTypeArgs args, InvokeOptions? opts = null)
public static Output<GetApplicationSegmentByTypeResult> Invoke(GetApplicationSegmentByTypeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApplicationSegmentByTypeResult> getApplicationSegmentByType(GetApplicationSegmentByTypeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: zpa:index/getApplicationSegmentByType:getApplicationSegmentByType
arguments:
# arguments dictionary
The following arguments are supported:
- Application
Type string - Microtenant
Id string - Name string
- Application
Type string - Microtenant
Id string - Name string
- application
Type String - microtenant
Id String - name String
- application
Type string - microtenant
Id string - name string
- application_
type str - microtenant_
id str - name str
- application
Type String - microtenant
Id String - name String
getApplicationSegmentByType Result
The following output properties are available:
- App
Id string - Application
Port string - Application
Protocol string - Application
Type string - Certificate
Id string - Certificate
Name string - Domain string
- Enabled bool
- Id string
- Microtenant
Name string - Microtenant
Id string - Name string
- App
Id string - Application
Port string - Application
Protocol string - Application
Type string - Certificate
Id string - Certificate
Name string - Domain string
- Enabled bool
- Id string
- Microtenant
Name string - Microtenant
Id string - Name string
- app
Id String - application
Port String - application
Protocol String - application
Type String - certificate
Id String - certificate
Name String - domain String
- enabled Boolean
- id String
- microtenant
Name String - microtenant
Id String - name String
- app
Id string - application
Port string - application
Protocol string - application
Type string - certificate
Id string - certificate
Name string - domain string
- enabled boolean
- id string
- microtenant
Name string - microtenant
Id string - name string
- app_
id str - application_
port str - application_
protocol str - application_
type str - certificate_
id str - certificate_
name str - domain str
- enabled bool
- id str
- microtenant_
name str - microtenant_
id str - name str
- app
Id String - application
Port String - application
Protocol String - application
Type String - certificate
Id String - certificate
Name String - domain String
- enabled Boolean
- id String
- microtenant
Name String - microtenant
Id String - name String
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the
zpa
Terraform Provider.