1. Packages
  2. Zscaler Private Access (ZPA)
  3. API Docs
  4. getPRACredential
Zscaler Private Access v0.0.10 published on Tuesday, Apr 9, 2024 by Zscaler

zpa.getPRACredential

Explore with Pulumi AI

zpa logo
Zscaler Private Access v0.0.10 published on Tuesday, Apr 9, 2024 by Zscaler

    The zpa_pra_credential_controller resource creates a privileged remote access credential in the Zscaler Private Access cloud. This resource can then be referenced in an privileged access policy resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@bdzscaler/pulumi-zpa";
    
    // Retrieves PRA Credential By ID
    const _this = new zpa.PRACredential("this", {});
    
    import pulumi
    import zscaler_pulumi_zpa as zpa
    
    # Retrieves PRA Credential By ID
    this = zpa.PRACredential("this")
    
    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 {
    		// Retrieves PRA Credential By ID
    		_, err := zpa.NewPRACredential(ctx, "this", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zpa = Zscaler.Zpa;
    
    return await Deployment.RunAsync(() => 
    {
        // Retrieves PRA Credential By ID
        var @this = new Zpa.PRACredential("this");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zpa.PRACredential;
    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) {
            // Retrieves PRA Credential By ID
            var this_ = new PRACredential("this");
    
        }
    }
    
    resources:
      # Retrieves PRA Credential By ID
      this:
        type: zpa:PRACredential
    

    Using getPRACredential

    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 getPRACredential(args: GetPRACredentialArgs, opts?: InvokeOptions): Promise<GetPRACredentialResult>
    function getPRACredentialOutput(args: GetPRACredentialOutputArgs, opts?: InvokeOptions): Output<GetPRACredentialResult>
    def get_pra_credential(id: Optional[str] = None,
                           name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetPRACredentialResult
    def get_pra_credential_output(id: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetPRACredentialResult]
    func LookupPRACredential(ctx *Context, args *LookupPRACredentialArgs, opts ...InvokeOption) (*LookupPRACredentialResult, error)
    func LookupPRACredentialOutput(ctx *Context, args *LookupPRACredentialOutputArgs, opts ...InvokeOption) LookupPRACredentialResultOutput

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

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

    The following arguments are supported:

    Id string
    Name string
    • (String) The name of the privileged credential.
    Id string
    Name string
    • (String) The name of the privileged credential.
    id String
    name String
    • (String) The name of the privileged credential.
    id string
    name string
    • (String) The name of the privileged credential.
    id str
    name str
    • (String) The name of the privileged credential.
    id String
    name String
    • (String) The name of the privileged credential.

    getPRACredential Result

    The following output properties are available:

    CreationTime string
    CredentialType string
    Description string
    LastCredentialResetTime string
    MicrotenantId string
    MicrotenantName string
    ModifiedBy string
    ModifiedTime string
    UserDomain string
    Username string
    Id string
    Name string
    • (String) The name of the privileged credential.
    CreationTime string
    CredentialType string
    Description string
    LastCredentialResetTime string
    MicrotenantId string
    MicrotenantName string
    ModifiedBy string
    ModifiedTime string
    UserDomain string
    Username string
    Id string
    Name string
    • (String) The name of the privileged credential.
    creationTime String
    credentialType String
    description String
    lastCredentialResetTime String
    microtenantId String
    microtenantName String
    modifiedBy String
    modifiedTime String
    userDomain String
    username String
    id String
    name String
    • (String) The name of the privileged credential.
    creationTime string
    credentialType string
    description string
    lastCredentialResetTime string
    microtenantId string
    microtenantName string
    modifiedBy string
    modifiedTime string
    userDomain string
    username string
    id string
    name string
    • (String) The name of the privileged credential.
    creationTime String
    credentialType String
    description String
    lastCredentialResetTime String
    microtenantId String
    microtenantName String
    modifiedBy String
    modifiedTime String
    userDomain String
    username String
    id String
    name String
    • (String) The name of the privileged credential.

    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.10 published on Tuesday, Apr 9, 2024 by Zscaler