Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler
zpa.getApplicationServer
Explore with Pulumi AI
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
- 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
getApplicationServer Result
The following output properties are available:
- Address string
- App
Server List<string>Group Ids - Config
Space string - Creation
Time string - Description string
- Enabled bool
- Modified
Time string - Modifiedby string
- Id string
- Microtenant
Id string - Microtenant
Name string - Name string
- Address string
- App
Server []stringGroup Ids - Config
Space string - Creation
Time string - Description string
- Enabled bool
- Modified
Time string - Modifiedby string
- Id string
- Microtenant
Id string - Microtenant
Name string - Name string
- address String
- app
Server List<String>Group Ids - config
Space String - creation
Time String - description String
- enabled Boolean
- modified
Time String - modifiedby String
- id String
- microtenant
Id String - microtenant
Name String - name String
- address string
- app
Server string[]Group Ids - config
Space string - creation
Time string - description string
- enabled boolean
- modified
Time string - modifiedby string
- id string
- microtenant
Id string - microtenant
Name string - name string
- address str
- app_
server_ Sequence[str]group_ ids - config_
space str - creation_
time str - description str
- enabled bool
- modified_
time str - modifiedby str
- id str
- microtenant_
id str - microtenant_
name str - name str
- address String
- app
Server List<String>Group Ids - config
Space String - creation
Time String - description String
- enabled Boolean
- modified
Time String - modifiedby String
- id String
- microtenant
Id String - microtenant
Name String - name String
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the
zpa
Terraform Provider.