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

zpa.getApplicationServer

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.getApplicationServer({
        name: "server.example.com",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    example = zpa.get_application_server(name="server.example.com")
    
    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.LookupApplicationServer(ctx, &zpa.LookupApplicationServerArgs{
    			Name: pulumi.StringRef("server.example.com"),
    		}, 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.GetApplicationServer.Invoke(new()
        {
            Name = "server.example.com",
        });
    
    });
    
    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.GetApplicationServerArgs;
    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.getApplicationServer(GetApplicationServerArgs.builder()
                .name("server.example.com")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: zpa:getApplicationServer
          Arguments:
            name: server.example.com
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const example = zpa.getApplicationServer({
        id: "1234567890",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    example = zpa.get_application_server(id="1234567890")
    
    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.LookupApplicationServer(ctx, &zpa.LookupApplicationServerArgs{
    			Id: pulumi.StringRef("1234567890"),
    		}, 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.GetApplicationServer.Invoke(new()
        {
            Id = "1234567890",
        });
    
    });
    
    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.GetApplicationServerArgs;
    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.getApplicationServer(GetApplicationServerArgs.builder()
                .id("1234567890")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: zpa:getApplicationServer
          Arguments:
            id: '1234567890'
    

    Using getApplicationServer

    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 getApplicationServer(args: GetApplicationServerArgs, opts?: InvokeOptions): Promise<GetApplicationServerResult>
    function getApplicationServerOutput(args: GetApplicationServerOutputArgs, opts?: InvokeOptions): Output<GetApplicationServerResult>
    def get_application_server(id: Optional[str] = None,
                               microtenant_id: Optional[str] = None,
                               microtenant_name: Optional[str] = None,
                               name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetApplicationServerResult
    def get_application_server_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[GetApplicationServerResult]
    func LookupApplicationServer(ctx *Context, args *LookupApplicationServerArgs, opts ...InvokeOption) (*LookupApplicationServerResult, error)
    func LookupApplicationServerOutput(ctx *Context, args *LookupApplicationServerOutputArgs, opts ...InvokeOption) LookupApplicationServerResultOutput

    > Note: This function is named LookupApplicationServer in the Go SDK.

    public static class GetApplicationServer 
    {
        public static Task<GetApplicationServerResult> InvokeAsync(GetApplicationServerArgs args, InvokeOptions? opts = null)
        public static Output<GetApplicationServerResult> Invoke(GetApplicationServerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetApplicationServerResult> getApplicationServer(GetApplicationServerArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: zpa:index/getApplicationServer:getApplicationServer
      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

    getApplicationServer Result

    The following output properties are available:

    Address string
    AppServerGroupIds List<string>
    ConfigSpace string
    CreationTime string
    Description string
    Enabled bool
    ModifiedTime string
    Modifiedby string
    Id string
    MicrotenantId string
    MicrotenantName string
    Name string
    Address string
    AppServerGroupIds []string
    ConfigSpace string
    CreationTime string
    Description string
    Enabled bool
    ModifiedTime string
    Modifiedby string
    Id string
    MicrotenantId string
    MicrotenantName string
    Name string
    address String
    appServerGroupIds List<String>
    configSpace String
    creationTime String
    description String
    enabled Boolean
    modifiedTime String
    modifiedby String
    id String
    microtenantId String
    microtenantName String
    name String
    address string
    appServerGroupIds string[]
    configSpace string
    creationTime string
    description string
    enabled boolean
    modifiedTime string
    modifiedby string
    id string
    microtenantId string
    microtenantName string
    name string
    address String
    appServerGroupIds List<String>
    configSpace String
    creationTime String
    description String
    enabled Boolean
    modifiedTime String
    modifiedby String
    id String
    microtenantId String
    microtenantName 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