1. Packages
  2. Zscaler Private Access (ZPA)
  3. API Docs
  4. getCustomerVersionProfile
Zscaler Private Access v0.0.11 published on Saturday, May 4, 2024 by Zscaler

zpa.getCustomerVersionProfile

Explore with Pulumi AI

zpa logo
Zscaler Private Access v0.0.11 published on Saturday, May 4, 2024 by Zscaler

    Use the zpa_customer_version_profile data source to get information about all customer version profiles from the Zscaler Private Access cloud. This data source can be associated with an App Connector Group within the parameter version_profile_id or version_profile_name

    The customer version profile IDs are:

    • Default = 0
    • Previous Default = 1
    • New Release = 2

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const default = zpa.getCustomerVersionProfile({
        name: "Default",
    });
    const previousDefault = zpa.getCustomerVersionProfile({
        name: "Previous Default",
    });
    const newRelease = zpa.getCustomerVersionProfile({
        name: "New Release",
    });
    
    import pulumi
    import pulumi_zpa as zpa
    
    default = zpa.get_customer_version_profile(name="Default")
    previous_default = zpa.get_customer_version_profile(name="Previous Default")
    new_release = zpa.get_customer_version_profile(name="New Release")
    
    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.GetCustomerVersionProfile(ctx, &zpa.GetCustomerVersionProfileArgs{
    			Name: "Default",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetCustomerVersionProfile(ctx, &zpa.GetCustomerVersionProfileArgs{
    			Name: "Previous Default",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zpa.GetCustomerVersionProfile(ctx, &zpa.GetCustomerVersionProfileArgs{
    			Name: "New Release",
    		}, 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 @default = Zpa.GetCustomerVersionProfile.Invoke(new()
        {
            Name = "Default",
        });
    
        var previousDefault = Zpa.GetCustomerVersionProfile.Invoke(new()
        {
            Name = "Previous Default",
        });
    
        var newRelease = Zpa.GetCustomerVersionProfile.Invoke(new()
        {
            Name = "New Release",
        });
    
    });
    
    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.GetCustomerVersionProfileArgs;
    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 default = ZpaFunctions.getCustomerVersionProfile(GetCustomerVersionProfileArgs.builder()
                .name("Default")
                .build());
    
            final var previousDefault = ZpaFunctions.getCustomerVersionProfile(GetCustomerVersionProfileArgs.builder()
                .name("Previous Default")
                .build());
    
            final var newRelease = ZpaFunctions.getCustomerVersionProfile(GetCustomerVersionProfileArgs.builder()
                .name("New Release")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: zpa:getCustomerVersionProfile
          Arguments:
            name: Default
      previousDefault:
        fn::invoke:
          Function: zpa:getCustomerVersionProfile
          Arguments:
            name: Previous Default
      newRelease:
        fn::invoke:
          Function: zpa:getCustomerVersionProfile
          Arguments:
            name: New Release
    

    Using getCustomerVersionProfile

    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 getCustomerVersionProfile(args: GetCustomerVersionProfileArgs, opts?: InvokeOptions): Promise<GetCustomerVersionProfileResult>
    function getCustomerVersionProfileOutput(args: GetCustomerVersionProfileOutputArgs, opts?: InvokeOptions): Output<GetCustomerVersionProfileResult>
    def get_customer_version_profile(name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetCustomerVersionProfileResult
    def get_customer_version_profile_output(name: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetCustomerVersionProfileResult]
    func GetCustomerVersionProfile(ctx *Context, args *GetCustomerVersionProfileArgs, opts ...InvokeOption) (*GetCustomerVersionProfileResult, error)
    func GetCustomerVersionProfileOutput(ctx *Context, args *GetCustomerVersionProfileOutputArgs, opts ...InvokeOption) GetCustomerVersionProfileResultOutput

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

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

    The following arguments are supported:

    Name string
    Name string
    name String
    name string
    name str
    name String

    getCustomerVersionProfile Result

    The following output properties are available:

    Supporting Types

    GetCustomerVersionProfileCustomScopeCustomerId

    GetCustomerVersionProfileVersion

    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.11 published on Saturday, May 4, 2024 by Zscaler