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

zpa.getPRAPortal

Explore with Pulumi AI

zpa logo
Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler

    Use the zpa_pra_portal_controller data source to get information about a privileged remote access portal created in the Zscaler Private Access cloud. This data source can then be referenced in an privileged remote access console resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const this = zpa.getPRAPortal({
        name: "Example",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    this = zpa.get_pra_portal(name="Example")
    
    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.LookupPRAPortal(ctx, &zpa.LookupPRAPortalArgs{
    			Name: pulumi.StringRef("Example"),
    		}, 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 @this = Zpa.GetPRAPortal.Invoke(new()
        {
            Name = "Example",
        });
    
    });
    
    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.GetPRAPortalArgs;
    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 this = ZpaFunctions.getPRAPortal(GetPRAPortalArgs.builder()
                .name("Example")
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          Function: zpa:getPRAPortal
          Arguments:
            name: Example
    

    Using getPRAPortal

    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 getPRAPortal(args: GetPRAPortalArgs, opts?: InvokeOptions): Promise<GetPRAPortalResult>
    function getPRAPortalOutput(args: GetPRAPortalOutputArgs, opts?: InvokeOptions): Output<GetPRAPortalResult>
    def get_pra_portal(id: Optional[str] = None,
                       name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetPRAPortalResult
    def get_pra_portal_output(id: Optional[pulumi.Input[str]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetPRAPortalResult]
    func LookupPRAPortal(ctx *Context, args *LookupPRAPortalArgs, opts ...InvokeOption) (*LookupPRAPortalResult, error)
    func LookupPRAPortalOutput(ctx *Context, args *LookupPRAPortalOutputArgs, opts ...InvokeOption) LookupPRAPortalResultOutput

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

    public static class GetPRAPortal 
    {
        public static Task<GetPRAPortalResult> InvokeAsync(GetPRAPortalArgs args, InvokeOptions? opts = null)
        public static Output<GetPRAPortalResult> Invoke(GetPRAPortalInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPRAPortalResult> getPRAPortal(GetPRAPortalArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: zpa:index/getPRAPortal:getPRAPortal
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    Id string
    Name string
    id String
    name String
    id string
    name string
    id str
    name str
    id String
    name String

    getPRAPortal Result

    The following output properties are available:

    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