zpa logo
Zscaler Private Access v0.0.4, Jan 30 23

zpa.ApplicationServer.getApplicationServer

Example Usage

using System.Collections.Generic;
using Pulumi;
using Zpa = Pulumi.Zpa;

return await Deployment.RunAsync(() => 
{
    var example = Zpa.ApplicationServer.GetApplicationServer.Invoke(new()
    {
        Name = "server.example.com",
    });

});
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/zscaler/pulumi-zpa/sdk/go/zpa/ApplicationServer"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ApplicationServer.GetApplicationServer(ctx, &applicationserver.GetApplicationServerArgs{
			Name: pulumi.StringRef("server.example.com"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zpa.ApplicationServer.ApplicationServerFunctions;
import com.pulumi.zpa.ApplicationServer.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 = ApplicationServerFunctions.getApplicationServer(GetApplicationServerArgs.builder()
            .name("server.example.com")
            .build());

    }
}
import pulumi
import pulumi_zpa as zpa

example = zpa.ApplicationServer.get_application_server(name="server.example.com")
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@pulumi/zpa";

const example = zpa.ApplicationServer.getApplicationServer({
    name: "server.example.com",
});
variables:
  example:
    fn::invoke:
      Function: zpa:ApplicationServer:getApplicationServer
      Arguments:
        name: server.example.com
using System.Collections.Generic;
using Pulumi;
using Zpa = Pulumi.Zpa;

return await Deployment.RunAsync(() => 
{
    var example = Zpa.ApplicationServer.GetApplicationServer.Invoke(new()
    {
        Id = "1234567890",
    });

});
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/zscaler/pulumi-zpa/sdk/go/zpa/ApplicationServer"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ApplicationServer.GetApplicationServer(ctx, &applicationserver.GetApplicationServerArgs{
			Id: pulumi.StringRef("1234567890"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zpa.ApplicationServer.ApplicationServerFunctions;
import com.pulumi.zpa.ApplicationServer.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 = ApplicationServerFunctions.getApplicationServer(GetApplicationServerArgs.builder()
            .id("1234567890")
            .build());

    }
}
import pulumi
import pulumi_zpa as zpa

example = zpa.ApplicationServer.get_application_server(id="1234567890")
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@pulumi/zpa";

const example = zpa.ApplicationServer.getApplicationServer({
    id: "1234567890",
});
variables:
  example:
    fn::invoke:
      Function: zpa:ApplicationServer: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,
                           name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetApplicationServerResult
def get_application_server_output(id: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetApplicationServerResult]
func GetApplicationServer(ctx *Context, args *GetApplicationServerArgs, opts ...InvokeOption) (*GetApplicationServerResult, error)
func GetApplicationServerOutput(ctx *Context, args *GetApplicationServerOutputArgs, opts ...InvokeOption) GetApplicationServerResultOutput

> Note: This function is named GetApplicationServer 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:ApplicationServer/getApplicationServer:getApplicationServer
  arguments:
    # arguments dictionary

The following arguments are supported:

Id string

This field defines the id of the application server.

Name string

This field defines the name of the server.

Id string

This field defines the id of the application server.

Name string

This field defines the name of the server.

id String

This field defines the id of the application server.

name String

This field defines the name of the server.

id string

This field defines the id of the application server.

name string

This field defines the name of the server.

id str

This field defines the id of the application server.

name str

This field defines the name of the server.

id String

This field defines the id of the application server.

name String

This field defines the name of the server.

getApplicationServer Result

The following output properties are available:

Address string

(string) This field defines the domain or IP address of the server.

AppServerGroupIds List<string>

(Set of String) This field defines the list of server groups IDs.

ConfigSpace string
CreationTime string
Description string

(string) This field defines the description of the server.

Enabled bool

(bool) This field defines the status of the server.

ModifiedTime string
Modifiedby string
Id string
Name string
Address string

(string) This field defines the domain or IP address of the server.

AppServerGroupIds []string

(Set of String) This field defines the list of server groups IDs.

ConfigSpace string
CreationTime string
Description string

(string) This field defines the description of the server.

Enabled bool

(bool) This field defines the status of the server.

ModifiedTime string
Modifiedby string
Id string
Name string
address String

(string) This field defines the domain or IP address of the server.

appServerGroupIds List<String>

(Set of String) This field defines the list of server groups IDs.

configSpace String
creationTime String
description String

(string) This field defines the description of the server.

enabled Boolean

(bool) This field defines the status of the server.

modifiedTime String
modifiedby String
id String
name String
address string

(string) This field defines the domain or IP address of the server.

appServerGroupIds string[]

(Set of String) This field defines the list of server groups IDs.

configSpace string
creationTime string
description string

(string) This field defines the description of the server.

enabled boolean

(bool) This field defines the status of the server.

modifiedTime string
modifiedby string
id string
name string
address str

(string) This field defines the domain or IP address of the server.

app_server_group_ids Sequence[str]

(Set of String) This field defines the list of server groups IDs.

config_space str
creation_time str
description str

(string) This field defines the description of the server.

enabled bool

(bool) This field defines the status of the server.

modified_time str
modifiedby str
id str
name str
address String

(string) This field defines the domain or IP address of the server.

appServerGroupIds List<String>

(Set of String) This field defines the list of server groups IDs.

configSpace String
creationTime String
description String

(string) This field defines the description of the server.

enabled Boolean

(bool) This field defines the status of the server.

modifiedTime String
modifiedby String
id String
name String

Package Details

Repository
zpa zscaler/pulumi-zpa
License
MIT
Notes

This Pulumi package is based on the zpa Terraform Provider.