zpa.PraPortalController
Explore with Pulumi AI
The zpa_pra_portal_controller resource creates a privileged remote access portal in the Zscaler Private Access cloud. This resource can then be referenced in an privileged remote access console resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@bdzscaler/pulumi-zpa";
import * as zpa from "@pulumi/zpa";
const thisBaCertificate = zpa.getBaCertificate({
name: "portal.acme.com",
});
const thisPRAPortal = new zpa.PRAPortal("thisPRAPortal", {
description: "portal.acme.com",
enabled: true,
domain: "portal.acme.com",
certificateId: thisBaCertificate.then(thisBaCertificate => thisBaCertificate.id),
userNotification: "Created with Terraform",
userNotificationEnabled: true,
});
import pulumi
import pulumi_zpa as zpa
import zscaler_pulumi_zpa as zpa
this_ba_certificate = zpa.get_ba_certificate(name="portal.acme.com")
this_pra_portal = zpa.PRAPortal("thisPRAPortal",
description="portal.acme.com",
enabled=True,
domain="portal.acme.com",
certificate_id=this_ba_certificate.id,
user_notification="Created with Terraform",
user_notification_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 {
thisBaCertificate, err := zpa.GetBaCertificate(ctx, &zpa.GetBaCertificateArgs{
Name: pulumi.StringRef("portal.acme.com"),
}, nil)
if err != nil {
return err
}
_, err = zpa.NewPRAPortal(ctx, "thisPRAPortal", &zpa.PRAPortalArgs{
Description: pulumi.String("portal.acme.com"),
Enabled: pulumi.Bool(true),
Domain: pulumi.String("portal.acme.com"),
CertificateId: pulumi.String(thisBaCertificate.Id),
UserNotification: pulumi.String("Created with Terraform"),
UserNotificationEnabled: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zpa = Pulumi.Zpa;
using Zpa = Zscaler.Zpa;
return await Deployment.RunAsync(() =>
{
var thisBaCertificate = Zpa.GetBaCertificate.Invoke(new()
{
Name = "portal.acme.com",
});
var thisPRAPortal = new Zpa.PRAPortal("thisPRAPortal", new()
{
Description = "portal.acme.com",
Enabled = true,
Domain = "portal.acme.com",
CertificateId = thisBaCertificate.Apply(getBaCertificateResult => getBaCertificateResult.Id),
UserNotification = "Created with Terraform",
UserNotificationEnabled = true,
});
});
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.GetBaCertificateArgs;
import com.pulumi.zpa.PRAPortal;
import com.pulumi.zpa.PRAPortalArgs;
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 thisBaCertificate = ZpaFunctions.getBaCertificate(GetBaCertificateArgs.builder()
.name("portal.acme.com")
.build());
var thisPRAPortal = new PRAPortal("thisPRAPortal", PRAPortalArgs.builder()
.description("portal.acme.com")
.enabled(true)
.domain("portal.acme.com")
.certificateId(thisBaCertificate.applyValue(getBaCertificateResult -> getBaCertificateResult.id()))
.userNotification("Created with Terraform")
.userNotificationEnabled(true)
.build());
}
}
resources:
thisPRAPortal:
type: zpa:PRAPortal
properties:
description: portal.acme.com
enabled: true
domain: portal.acme.com
certificateId: ${thisBaCertificate.id}
userNotification: Created with Terraform
userNotificationEnabled: true
variables:
thisBaCertificate:
fn::invoke:
Function: zpa:getBaCertificate
Arguments:
name: portal.acme.com
Create PraPortalController Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PraPortalController(name: string, args?: PraPortalControllerArgs, opts?: CustomResourceOptions);
@overload
def PraPortalController(resource_name: str,
args: Optional[PraPortalControllerArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def PraPortalController(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_id: Optional[str] = None,
description: Optional[str] = None,
domain: Optional[str] = None,
enabled: Optional[bool] = None,
microtenant_id: Optional[str] = None,
name: Optional[str] = None,
user_notification: Optional[str] = None,
user_notification_enabled: Optional[bool] = None)
func NewPraPortalController(ctx *Context, name string, args *PraPortalControllerArgs, opts ...ResourceOption) (*PraPortalController, error)
public PraPortalController(string name, PraPortalControllerArgs? args = null, CustomResourceOptions? opts = null)
public PraPortalController(String name, PraPortalControllerArgs args)
public PraPortalController(String name, PraPortalControllerArgs args, CustomResourceOptions options)
type: zpa:PraPortalController
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 PraPortalControllerArgs
- 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 PraPortalControllerArgs
- 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 PraPortalControllerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PraPortalControllerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PraPortalControllerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PraPortalController Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The PraPortalController resource accepts the following input properties:
- Certificate
Id string - The unique identifier of the certificate
- Description string
- The description of the privileged portal
- Domain string
- The domain of the privileged portal
- Enabled bool
- Whether or not the privileged portal is enabled
- Microtenant
Id string - The unique identifier of the Microtenant for the ZPA tenant. If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant. Pass microtenantId as null to retrieve data from all customers associated with the tenant.
- Name string
- The name of the privileged portal
- User
Notification string - The notification message displayed in the banner of the privileged portallink, if enabled
- User
Notification boolEnabled - Indicates if the Notification Banner is enabled (true) or disabled (false)
- Certificate
Id string - The unique identifier of the certificate
- Description string
- The description of the privileged portal
- Domain string
- The domain of the privileged portal
- Enabled bool
- Whether or not the privileged portal is enabled
- Microtenant
Id string - The unique identifier of the Microtenant for the ZPA tenant. If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant. Pass microtenantId as null to retrieve data from all customers associated with the tenant.
- Name string
- The name of the privileged portal
- User
Notification string - The notification message displayed in the banner of the privileged portallink, if enabled
- User
Notification boolEnabled - Indicates if the Notification Banner is enabled (true) or disabled (false)
- certificate
Id String - The unique identifier of the certificate
- description String
- The description of the privileged portal
- domain String
- The domain of the privileged portal
- enabled Boolean
- Whether or not the privileged portal is enabled
- microtenant
Id String - The unique identifier of the Microtenant for the ZPA tenant. If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant. Pass microtenantId as null to retrieve data from all customers associated with the tenant.
- name String
- The name of the privileged portal
- user
Notification String - The notification message displayed in the banner of the privileged portallink, if enabled
- user
Notification BooleanEnabled - Indicates if the Notification Banner is enabled (true) or disabled (false)
- certificate
Id string - The unique identifier of the certificate
- description string
- The description of the privileged portal
- domain string
- The domain of the privileged portal
- enabled boolean
- Whether or not the privileged portal is enabled
- microtenant
Id string - The unique identifier of the Microtenant for the ZPA tenant. If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant. Pass microtenantId as null to retrieve data from all customers associated with the tenant.
- name string
- The name of the privileged portal
- user
Notification string - The notification message displayed in the banner of the privileged portallink, if enabled
- user
Notification booleanEnabled - Indicates if the Notification Banner is enabled (true) or disabled (false)
- certificate_
id str - The unique identifier of the certificate
- description str
- The description of the privileged portal
- domain str
- The domain of the privileged portal
- enabled bool
- Whether or not the privileged portal is enabled
- microtenant_
id str - The unique identifier of the Microtenant for the ZPA tenant. If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant. Pass microtenantId as null to retrieve data from all customers associated with the tenant.
- name str
- The name of the privileged portal
- user_
notification str - The notification message displayed in the banner of the privileged portallink, if enabled
- user_
notification_ boolenabled - Indicates if the Notification Banner is enabled (true) or disabled (false)
- certificate
Id String - The unique identifier of the certificate
- description String
- The description of the privileged portal
- domain String
- The domain of the privileged portal
- enabled Boolean
- Whether or not the privileged portal is enabled
- microtenant
Id String - The unique identifier of the Microtenant for the ZPA tenant. If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant. Pass microtenantId as null to retrieve data from all customers associated with the tenant.
- name String
- The name of the privileged portal
- user
Notification String - The notification message displayed in the banner of the privileged portallink, if enabled
- user
Notification BooleanEnabled - Indicates if the Notification Banner is enabled (true) or disabled (false)
Outputs
All input properties are implicitly available as output properties. Additionally, the PraPortalController 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 PraPortalController Resource
Get an existing PraPortalController 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?: PraPortalControllerState, opts?: CustomResourceOptions): PraPortalController
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_id: Optional[str] = None,
description: Optional[str] = None,
domain: Optional[str] = None,
enabled: Optional[bool] = None,
microtenant_id: Optional[str] = None,
name: Optional[str] = None,
user_notification: Optional[str] = None,
user_notification_enabled: Optional[bool] = None) -> PraPortalController
func GetPraPortalController(ctx *Context, name string, id IDInput, state *PraPortalControllerState, opts ...ResourceOption) (*PraPortalController, error)
public static PraPortalController Get(string name, Input<string> id, PraPortalControllerState? state, CustomResourceOptions? opts = null)
public static PraPortalController get(String name, Output<String> id, PraPortalControllerState 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.
- Certificate
Id string - The unique identifier of the certificate
- Description string
- The description of the privileged portal
- Domain string
- The domain of the privileged portal
- Enabled bool
- Whether or not the privileged portal is enabled
- Microtenant
Id string - The unique identifier of the Microtenant for the ZPA tenant. If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant. Pass microtenantId as null to retrieve data from all customers associated with the tenant.
- Name string
- The name of the privileged portal
- User
Notification string - The notification message displayed in the banner of the privileged portallink, if enabled
- User
Notification boolEnabled - Indicates if the Notification Banner is enabled (true) or disabled (false)
- Certificate
Id string - The unique identifier of the certificate
- Description string
- The description of the privileged portal
- Domain string
- The domain of the privileged portal
- Enabled bool
- Whether or not the privileged portal is enabled
- Microtenant
Id string - The unique identifier of the Microtenant for the ZPA tenant. If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant. Pass microtenantId as null to retrieve data from all customers associated with the tenant.
- Name string
- The name of the privileged portal
- User
Notification string - The notification message displayed in the banner of the privileged portallink, if enabled
- User
Notification boolEnabled - Indicates if the Notification Banner is enabled (true) or disabled (false)
- certificate
Id String - The unique identifier of the certificate
- description String
- The description of the privileged portal
- domain String
- The domain of the privileged portal
- enabled Boolean
- Whether or not the privileged portal is enabled
- microtenant
Id String - The unique identifier of the Microtenant for the ZPA tenant. If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant. Pass microtenantId as null to retrieve data from all customers associated with the tenant.
- name String
- The name of the privileged portal
- user
Notification String - The notification message displayed in the banner of the privileged portallink, if enabled
- user
Notification BooleanEnabled - Indicates if the Notification Banner is enabled (true) or disabled (false)
- certificate
Id string - The unique identifier of the certificate
- description string
- The description of the privileged portal
- domain string
- The domain of the privileged portal
- enabled boolean
- Whether or not the privileged portal is enabled
- microtenant
Id string - The unique identifier of the Microtenant for the ZPA tenant. If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant. Pass microtenantId as null to retrieve data from all customers associated with the tenant.
- name string
- The name of the privileged portal
- user
Notification string - The notification message displayed in the banner of the privileged portallink, if enabled
- user
Notification booleanEnabled - Indicates if the Notification Banner is enabled (true) or disabled (false)
- certificate_
id str - The unique identifier of the certificate
- description str
- The description of the privileged portal
- domain str
- The domain of the privileged portal
- enabled bool
- Whether or not the privileged portal is enabled
- microtenant_
id str - The unique identifier of the Microtenant for the ZPA tenant. If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant. Pass microtenantId as null to retrieve data from all customers associated with the tenant.
- name str
- The name of the privileged portal
- user_
notification str - The notification message displayed in the banner of the privileged portallink, if enabled
- user_
notification_ boolenabled - Indicates if the Notification Banner is enabled (true) or disabled (false)
- certificate
Id String - The unique identifier of the certificate
- description String
- The description of the privileged portal
- domain String
- The domain of the privileged portal
- enabled Boolean
- Whether or not the privileged portal is enabled
- microtenant
Id String - The unique identifier of the Microtenant for the ZPA tenant. If you are within the Default Microtenant, pass microtenantId as 0 when making requests to retrieve data from the Default Microtenant. Pass microtenantId as null to retrieve data from all customers associated with the tenant.
- name String
- The name of the privileged portal
- user
Notification String - The notification message displayed in the banner of the privileged portallink, if enabled
- user
Notification BooleanEnabled - Indicates if the Notification Banner is enabled (true) or disabled (false)
Import
Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZPA configurations into Terraform-compliant HashiCorp Configuration Language.
Visit
pra_portal_controller can be imported by using <PORTAL ID>
or <PORTAL NAME>
as the import ID.
For example:
$ pulumi import zpa:index/praPortalController:PraPortalController this <portal_id>
or
$ pulumi import zpa:index/praPortalController:PraPortalController this <portal_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.