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)
public static Output<GetApplicationSegmentByTypeResult> getApplicationSegmentByType(GetApplicationSegmentByTypeArgs args, InvokeOptions options)
fn::invoke:
  function: zpa:index/getApplicationSegmentByType:getApplicationSegmentByType
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ApplicationType string
- MicrotenantId string
- Name string
- ApplicationType string
- MicrotenantId string
- Name string
- applicationType String
- microtenantId String
- name String
- applicationType string
- microtenantId string
- name string
- application_type str
- microtenant_id str
- name str
- applicationType String
- microtenantId String
- name String
getApplicationSegmentByType Result
The following output properties are available:
- AppId string
- ApplicationPort string
- ApplicationProtocol string
- ApplicationType string
- CertificateId string
- CertificateName string
- Domain string
- Enabled bool
- Id string
- MicrotenantName string
- MicrotenantId string
- Name string
- AppId string
- ApplicationPort string
- ApplicationProtocol string
- ApplicationType string
- CertificateId string
- CertificateName string
- Domain string
- Enabled bool
- Id string
- MicrotenantName string
- MicrotenantId string
- Name string
- appId String
- applicationPort String
- applicationProtocol String
- applicationType String
- certificateId String
- certificateName String
- domain String
- enabled Boolean
- id String
- microtenantName String
- microtenantId String
- name String
- appId string
- applicationPort string
- applicationProtocol string
- applicationType string
- certificateId string
- certificateName string
- domain string
- enabled boolean
- id string
- microtenantName string
- microtenantId 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
- appId String
- applicationPort String
- applicationProtocol String
- applicationType String
- certificateId String
- certificateName String
- domain String
- enabled Boolean
- id String
- microtenantName String
- microtenantId String
- name String
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the zpaTerraform Provider.
