zpa.ApplicationServer
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@bdzscaler/pulumi-zpa";
// ZPA Application Server resource (IP Address)
const testAppServer = new zpa.ApplicationServer("testAppServer", {
address: "192.168.1.1",
description: "test1-app-server",
enabled: true,
});
import pulumi
import zscaler_pulumi_zpa as zpa
# ZPA Application Server resource (IP Address)
test_app_server = zpa.ApplicationServer("testAppServer",
address="192.168.1.1",
description="test1-app-server",
enabled=True)
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 Application Server resource (IP Address)
_, err := zpa.NewApplicationServer(ctx, "testAppServer", &zpa.ApplicationServerArgs{
Address: pulumi.String("192.168.1.1"),
Description: pulumi.String("test1-app-server"),
Enabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zpa = Zscaler.Zpa;
return await Deployment.RunAsync(() =>
{
// ZPA Application Server resource (IP Address)
var testAppServer = new Zpa.ApplicationServer("testAppServer", new()
{
Address = "192.168.1.1",
Description = "test1-app-server",
Enabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zpa.ApplicationServer;
import com.pulumi.zpa.ApplicationServerArgs;
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 Application Server resource (IP Address)
var testAppServer = new ApplicationServer("testAppServer", ApplicationServerArgs.builder()
.address("192.168.1.1")
.description("test1-app-server")
.enabled(true)
.build());
}
}
resources:
# ZPA Application Server resource (IP Address)
testAppServer:
type: zpa:ApplicationServer
properties:
address: 192.168.1.1
description: test1-app-server
enabled: true
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@bdzscaler/pulumi-zpa";
// ZPA Application Server resource (FQDN Address)
const testAppServer = new zpa.ApplicationServer("testAppServer", {
address: "server1.acme.com",
description: "test1-app-server",
enabled: true,
});
import pulumi
import zscaler_pulumi_zpa as zpa
# ZPA Application Server resource (FQDN Address)
test_app_server = zpa.ApplicationServer("testAppServer",
address="server1.acme.com",
description="test1-app-server",
enabled=True)
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 Application Server resource (FQDN Address)
_, err := zpa.NewApplicationServer(ctx, "testAppServer", &zpa.ApplicationServerArgs{
Address: pulumi.String("server1.acme.com"),
Description: pulumi.String("test1-app-server"),
Enabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zpa = Zscaler.Zpa;
return await Deployment.RunAsync(() =>
{
// ZPA Application Server resource (FQDN Address)
var testAppServer = new Zpa.ApplicationServer("testAppServer", new()
{
Address = "server1.acme.com",
Description = "test1-app-server",
Enabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zpa.ApplicationServer;
import com.pulumi.zpa.ApplicationServerArgs;
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 Application Server resource (FQDN Address)
var testAppServer = new ApplicationServer("testAppServer", ApplicationServerArgs.builder()
.address("server1.acme.com")
.description("test1-app-server")
.enabled(true)
.build());
}
}
resources:
# ZPA Application Server resource (FQDN Address)
testAppServer:
type: zpa:ApplicationServer
properties:
address: server1.acme.com
description: test1-app-server
enabled: true
Create ApplicationServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApplicationServer(name: string, args: ApplicationServerArgs, opts?: CustomResourceOptions);
@overload
def ApplicationServer(resource_name: str,
args: ApplicationServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApplicationServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
app_server_group_ids: Optional[Sequence[str]] = None,
config_space: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
microtenant_id: Optional[str] = None,
name: Optional[str] = None)
func NewApplicationServer(ctx *Context, name string, args ApplicationServerArgs, opts ...ResourceOption) (*ApplicationServer, error)
public ApplicationServer(string name, ApplicationServerArgs args, CustomResourceOptions? opts = null)
public ApplicationServer(String name, ApplicationServerArgs args)
public ApplicationServer(String name, ApplicationServerArgs args, CustomResourceOptions options)
type: zpa:ApplicationServer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ApplicationServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ApplicationServerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ApplicationServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplicationServerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var applicationServerResource = new Zpa.ApplicationServer("applicationServerResource", new()
{
Address = "string",
AppServerGroupIds = new[]
{
"string",
},
ConfigSpace = "string",
Description = "string",
Enabled = false,
MicrotenantId = "string",
Name = "string",
});
example, err := zpa.NewApplicationServer(ctx, "applicationServerResource", &zpa.ApplicationServerArgs{
Address: pulumi.String("string"),
AppServerGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
ConfigSpace: pulumi.String("string"),
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
MicrotenantId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var applicationServerResource = new ApplicationServer("applicationServerResource", ApplicationServerArgs.builder()
.address("string")
.appServerGroupIds("string")
.configSpace("string")
.description("string")
.enabled(false)
.microtenantId("string")
.name("string")
.build());
application_server_resource = zpa.ApplicationServer("applicationServerResource",
address="string",
app_server_group_ids=["string"],
config_space="string",
description="string",
enabled=False,
microtenant_id="string",
name="string")
const applicationServerResource = new zpa.ApplicationServer("applicationServerResource", {
address: "string",
appServerGroupIds: ["string"],
configSpace: "string",
description: "string",
enabled: false,
microtenantId: "string",
name: "string",
});
type: zpa:ApplicationServer
properties:
address: string
appServerGroupIds:
- string
configSpace: string
description: string
enabled: false
microtenantId: string
name: string
ApplicationServer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ApplicationServer resource accepts the following input properties:
- Address string
- This field defines the domain or IP address of the server.
- App
Server List<string>Group Ids - This field defines the list of server groups IDs.
- Config
Space string - Description string
- This field defines the description of the server.
- Enabled bool
- This field defines the status of the server.
- Microtenant
Id string - Name string
- This field defines the name of the server.
- Address string
- This field defines the domain or IP address of the server.
- App
Server []stringGroup Ids - This field defines the list of server groups IDs.
- Config
Space string - Description string
- This field defines the description of the server.
- Enabled bool
- This field defines the status of the server.
- Microtenant
Id string - Name string
- This field defines the name of the server.
- address String
- This field defines the domain or IP address of the server.
- app
Server List<String>Group Ids - This field defines the list of server groups IDs.
- config
Space String - description String
- This field defines the description of the server.
- enabled Boolean
- This field defines the status of the server.
- microtenant
Id String - name String
- This field defines the name of the server.
- address string
- This field defines the domain or IP address of the server.
- app
Server string[]Group Ids - This field defines the list of server groups IDs.
- config
Space string - description string
- This field defines the description of the server.
- enabled boolean
- This field defines the status of the server.
- microtenant
Id string - name string
- This field defines the name of the server.
- address str
- This field defines the domain or IP address of the server.
- app_
server_ Sequence[str]group_ ids - This field defines the list of server groups IDs.
- config_
space str - description str
- This field defines the description of the server.
- enabled bool
- This field defines the status of the server.
- microtenant_
id str - name str
- This field defines the name of the server.
- address String
- This field defines the domain or IP address of the server.
- app
Server List<String>Group Ids - This field defines the list of server groups IDs.
- config
Space String - description String
- This field defines the description of the server.
- enabled Boolean
- This field defines the status of the server.
- microtenant
Id String - name String
- This field defines the name of the server.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApplicationServer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ApplicationServer Resource
Get an existing ApplicationServer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ApplicationServerState, opts?: CustomResourceOptions): ApplicationServer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
app_server_group_ids: Optional[Sequence[str]] = None,
config_space: Optional[str] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
microtenant_id: Optional[str] = None,
name: Optional[str] = None) -> ApplicationServer
func GetApplicationServer(ctx *Context, name string, id IDInput, state *ApplicationServerState, opts ...ResourceOption) (*ApplicationServer, error)
public static ApplicationServer Get(string name, Input<string> id, ApplicationServerState? state, CustomResourceOptions? opts = null)
public static ApplicationServer get(String name, Output<String> id, ApplicationServerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Address string
- This field defines the domain or IP address of the server.
- App
Server List<string>Group Ids - This field defines the list of server groups IDs.
- Config
Space string - Description string
- This field defines the description of the server.
- Enabled bool
- This field defines the status of the server.
- Microtenant
Id string - Name string
- This field defines the name of the server.
- Address string
- This field defines the domain or IP address of the server.
- App
Server []stringGroup Ids - This field defines the list of server groups IDs.
- Config
Space string - Description string
- This field defines the description of the server.
- Enabled bool
- This field defines the status of the server.
- Microtenant
Id string - Name string
- This field defines the name of the server.
- address String
- This field defines the domain or IP address of the server.
- app
Server List<String>Group Ids - This field defines the list of server groups IDs.
- config
Space String - description String
- This field defines the description of the server.
- enabled Boolean
- This field defines the status of the server.
- microtenant
Id String - name String
- This field defines the name of the server.
- address string
- This field defines the domain or IP address of the server.
- app
Server string[]Group Ids - This field defines the list of server groups IDs.
- config
Space string - description string
- This field defines the description of the server.
- enabled boolean
- This field defines the status of the server.
- microtenant
Id string - name string
- This field defines the name of the server.
- address str
- This field defines the domain or IP address of the server.
- app_
server_ Sequence[str]group_ ids - This field defines the list of server groups IDs.
- config_
space str - description str
- This field defines the description of the server.
- enabled bool
- This field defines the status of the server.
- microtenant_
id str - name str
- This field defines the name of the server.
- address String
- This field defines the domain or IP address of the server.
- app
Server List<String>Group Ids - This field defines the list of server groups IDs.
- config
Space String - description String
- This field defines the description of the server.
- enabled Boolean
- This field defines the status of the server.
- microtenant
Id String - name String
- This field defines the name of the server.
Import
Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZPA configurations into Terraform-compliant HashiCorp Configuration Language.
Visit
Application Server can be imported by using <APPLICATION SERVER ID>
or <APPLICATION SERVER NAME>
as the import ID
For example:
$ pulumi import zpa:index/applicationServer:ApplicationServer example <application_server_id>
or
$ pulumi import zpa:index/applicationServer:ApplicationServer example <application_server_name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the
zpa
Terraform Provider.