Viewing docs for Zscaler Private Access v1.0.3
published on Wednesday, Jan 21, 2026 by Zscaler
published on Wednesday, Jan 21, 2026 by Zscaler
Viewing docs for Zscaler Private Access v1.0.3
published on Wednesday, Jan 21, 2026 by Zscaler
published on Wednesday, Jan 21, 2026 by Zscaler
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@bdzscaler/pulumi-zpa";
// ZPA Server Group Data Source
const example = zpa.getServerGroup({
name: "server_group_name",
});
import pulumi
import pulumi_zpa as zpa
# ZPA Server Group Data Source
example = zpa.get_server_group(name="server_group_name")
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 {
// ZPA Server Group Data Source
_, err := zpa.LookupServerGroup(ctx, &zpa.LookupServerGroupArgs{
Name: pulumi.StringRef("server_group_name"),
}, 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(() =>
{
// ZPA Server Group Data Source
var example = Zpa.GetServerGroup.Invoke(new()
{
Name = "server_group_name",
});
});
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.GetServerGroupArgs;
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) {
// ZPA Server Group Data Source
final var example = ZpaFunctions.getServerGroup(GetServerGroupArgs.builder()
.name("server_group_name")
.build());
}
}
variables:
# ZPA Server Group Data Source
example:
fn::invoke:
function: zpa:getServerGroup
arguments:
name: server_group_name
Using getServerGroup
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 getServerGroup(args: GetServerGroupArgs, opts?: InvokeOptions): Promise<GetServerGroupResult>
function getServerGroupOutput(args: GetServerGroupOutputArgs, opts?: InvokeOptions): Output<GetServerGroupResult>def get_server_group(id: Optional[str] = None,
microtenant_id: Optional[str] = None,
microtenant_name: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServerGroupResult
def get_server_group_output(id: Optional[pulumi.Input[str]] = None,
microtenant_id: Optional[pulumi.Input[str]] = None,
microtenant_name: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServerGroupResult]func LookupServerGroup(ctx *Context, args *LookupServerGroupArgs, opts ...InvokeOption) (*LookupServerGroupResult, error)
func LookupServerGroupOutput(ctx *Context, args *LookupServerGroupOutputArgs, opts ...InvokeOption) LookupServerGroupResultOutput> Note: This function is named LookupServerGroup in the Go SDK.
public static class GetServerGroup
{
public static Task<GetServerGroupResult> InvokeAsync(GetServerGroupArgs args, InvokeOptions? opts = null)
public static Output<GetServerGroupResult> Invoke(GetServerGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServerGroupResult> getServerGroup(GetServerGroupArgs args, InvokeOptions options)
public static Output<GetServerGroupResult> getServerGroup(GetServerGroupArgs args, InvokeOptions options)
fn::invoke:
function: zpa:index/getServerGroup:getServerGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Microtenant
Id string - Microtenant
Name string - Name string
- Id string
- Microtenant
Id string - Microtenant
Name string - Name string
- id String
- microtenant
Id String - microtenant
Name String - name String
- id string
- microtenant
Id string - microtenant
Name string - name string
- id str
- microtenant_
id str - microtenant_
name str - name str
- id String
- microtenant
Id String - microtenant
Name String - name String
getServerGroup Result
The following output properties are available:
- App
Connector List<zscaler.Groups Pulumi Package. Zpa. Outputs. Get Server Group App Connector Group> - Applications
List<zscaler.
Pulumi Package. Zpa. Outputs. Get Server Group Application> - Config
Space string - Creation
Time string - Description string
- Dynamic
Discovery bool - Enabled bool
- Ip
Anchored bool - Modified
Time string - Modifiedby string
- Servers
List<zscaler.
Pulumi Package. Zpa. Outputs. Get Server Group Server> - Id string
- Microtenant
Id string - Microtenant
Name string - Name string
- App
Connector []GetGroups Server Group App Connector Group - Applications
[]Get
Server Group Application - Config
Space string - Creation
Time string - Description string
- Dynamic
Discovery bool - Enabled bool
- Ip
Anchored bool - Modified
Time string - Modifiedby string
- Servers
[]Get
Server Group Server - Id string
- Microtenant
Id string - Microtenant
Name string - Name string
- app
Connector List<GetGroups Server Group App Connector Group> - applications
List<Get
Server Group Application> - config
Space String - creation
Time String - description String
- dynamic
Discovery Boolean - enabled Boolean
- ip
Anchored Boolean - modified
Time String - modifiedby String
- servers
List<Get
Server Group Server> - id String
- microtenant
Id String - microtenant
Name String - name String
- app
Connector GetGroups Server Group App Connector Group[] - applications
Get
Server Group Application[] - config
Space string - creation
Time string - description string
- dynamic
Discovery boolean - enabled boolean
- ip
Anchored boolean - modified
Time string - modifiedby string
- servers
Get
Server Group Server[] - id string
- microtenant
Id string - microtenant
Name string - name string
- app_
connector_ Sequence[Getgroups Server Group App Connector Group] - applications
Sequence[Get
Server Group Application] - config_
space str - creation_
time str - description str
- dynamic_
discovery bool - enabled bool
- ip_
anchored bool - modified_
time str - modifiedby str
- servers
Sequence[Get
Server Group Server] - id str
- microtenant_
id str - microtenant_
name str - name str
- app
Connector List<Property Map>Groups - applications List<Property Map>
- config
Space String - creation
Time String - description String
- dynamic
Discovery Boolean - enabled Boolean
- ip
Anchored Boolean - modified
Time String - modifiedby String
- servers List<Property Map>
- id String
- microtenant
Id String - microtenant
Name String - name String
Supporting Types
GetServerGroupAppConnectorGroup
GetServerGroupApplication
GetServerGroupServer
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the
zpaTerraform Provider.
Viewing docs for Zscaler Private Access v1.0.3
published on Wednesday, Jan 21, 2026 by Zscaler
published on Wednesday, Jan 21, 2026 by Zscaler
