1. Packages
  2. Zscaler Private Access (ZPA)
  3. API Docs
  4. getServerGroup
Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler

zpa.getServerGroup

Explore with Pulumi AI

zpa logo
Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const example = zpa.getServerGroup({
        name: "server_group_name",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    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 {
    		_, 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(() => 
    {
        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) {
            final var example = ZpaFunctions.getServerGroup(GetServerGroupArgs.builder()
                .name("server_group_name")
                .build());
    
        }
    }
    
    variables:
      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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: zpa:index/getServerGroup:getServerGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    MicrotenantId string
    MicrotenantName string
    Name string
    Id string
    MicrotenantId string
    MicrotenantName string
    Name string
    id String
    microtenantId String
    microtenantName String
    name String
    id string
    microtenantId string
    microtenantName string
    name string
    id String
    microtenantId String
    microtenantName String
    name String

    getServerGroup Result

    The following output properties are available:

    Supporting Types

    GetServerGroupAppConnectorGroup

    GetServerGroupAppConnectorGroupConnector

    CreationTime string
    Description string
    Enabled bool
    Fingerprint string
    Id string
    IssuedCertId string
    ModifiedTime string
    Modifiedby string
    UpgradeAttempt string
    Name string
    CreationTime string
    Description string
    Enabled bool
    Fingerprint string
    Id string
    IssuedCertId string
    ModifiedTime string
    Modifiedby string
    UpgradeAttempt string
    Name string
    creationTime String
    description String
    enabled Boolean
    fingerprint String
    id String
    issuedCertId String
    modifiedTime String
    modifiedby String
    upgradeAttempt String
    name String
    creationTime string
    description string
    enabled boolean
    fingerprint string
    id string
    issuedCertId string
    modifiedTime string
    modifiedby string
    upgradeAttempt string
    name string
    creationTime String
    description String
    enabled Boolean
    fingerprint String
    id String
    issuedCertId String
    modifiedTime String
    modifiedby String
    upgradeAttempt String
    name String

    GetServerGroupAppConnectorGroupServerGroup

    ConfigSpace string
    CreationTime string
    Description string
    DynamicDiscovery bool
    Enabled bool
    Id string
    ModifiedTime string
    Modifiedby string
    Name string
    ConfigSpace string
    CreationTime string
    Description string
    DynamicDiscovery bool
    Enabled bool
    Id string
    ModifiedTime string
    Modifiedby string
    Name string
    configSpace String
    creationTime String
    description String
    dynamicDiscovery Boolean
    enabled Boolean
    id String
    modifiedTime String
    modifiedby String
    name String
    configSpace string
    creationTime string
    description string
    dynamicDiscovery boolean
    enabled boolean
    id string
    modifiedTime string
    modifiedby string
    name string
    configSpace String
    creationTime String
    description String
    dynamicDiscovery Boolean
    enabled Boolean
    id String
    modifiedTime String
    modifiedby String
    name String

    GetServerGroupApplication

    Id string
    Name string
    Id string
    Name string
    id String
    name String
    id string
    name string
    id str
    name str
    id String
    name String

    GetServerGroupServer

    Address string
    AppServerGroupIds List<string>
    ConfigSpace string
    CreationTime string
    Description string
    Enabled bool
    Id string
    ModifiedTime string
    Modifiedby string
    Name string
    Address string
    AppServerGroupIds []string
    ConfigSpace string
    CreationTime string
    Description string
    Enabled bool
    Id string
    ModifiedTime string
    Modifiedby string
    Name string
    address String
    appServerGroupIds List<String>
    configSpace String
    creationTime String
    description String
    enabled Boolean
    id String
    modifiedTime String
    modifiedby String
    name String
    address string
    appServerGroupIds string[]
    configSpace string
    creationTime string
    description string
    enabled boolean
    id string
    modifiedTime string
    modifiedby string
    name string
    address String
    appServerGroupIds List<String>
    configSpace String
    creationTime String
    description String
    enabled Boolean
    id String
    modifiedTime String
    modifiedby String
    name String

    Package Details

    Repository
    zpa zscaler/pulumi-zpa
    License
    MIT
    Notes
    This Pulumi package is based on the zpa Terraform Provider.
    zpa logo
    Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler