Zscaler Private Access v0.0.12 published on Tuesday, Jul 30, 2024 by Zscaler
zpa.getCustomerVersionProfile
Explore with Pulumi AI
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)
public static Output<GetCustomerVersionProfileResult> getCustomerVersionProfile(GetCustomerVersionProfileArgs args, InvokeOptions options)
fn::invoke:
  function: zpa:index/getCustomerVersionProfile:getCustomerVersionProfile
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- Name string
- name String
- name string
- name str
- name String
getCustomerVersionProfile Result
The following output properties are available:
- CreationTime string
- CustomScope List<Zscaler.Customer Ids Zpa. Outputs. Get Customer Version Profile Custom Scope Customer Id> 
- CustomerId string
- Description string
- Id string
- ModifiedBy string
- ModifiedTime string
- Name string
- UpgradePriority string
- Versions
List<Zscaler.Zpa. Outputs. Get Customer Version Profile Version> 
- VisibilityScope string
- CreationTime string
- CustomScope []GetCustomer Ids Customer Version Profile Custom Scope Customer Id 
- CustomerId string
- Description string
- Id string
- ModifiedBy string
- ModifiedTime string
- Name string
- UpgradePriority string
- Versions
[]GetCustomer Version Profile Version 
- VisibilityScope string
- creationTime String
- customScope List<GetCustomer Ids Customer Version Profile Custom Scope Customer Id> 
- customerId String
- description String
- id String
- modifiedBy String
- modifiedTime String
- name String
- upgradePriority String
- versions
List<GetCustomer Version Profile Version> 
- visibilityScope String
- creationTime string
- customScope GetCustomer Ids Customer Version Profile Custom Scope Customer Id[] 
- customerId string
- description string
- id string
- modifiedBy string
- modifiedTime string
- name string
- upgradePriority string
- versions
GetCustomer Version Profile Version[] 
- visibilityScope string
- creationTime String
- customScope List<Property Map>Customer Ids 
- customerId String
- description String
- id String
- modifiedBy String
- modifiedTime String
- name String
- upgradePriority String
- versions List<Property Map>
- visibilityScope String
Supporting Types
GetCustomerVersionProfileCustomScopeCustomerId       
- CustomerId string
- ExcludeConstellation bool
- Name string
- CustomerId string
- ExcludeConstellation bool
- Name string
- customerId String
- excludeConstellation Boolean
- name String
- customerId string
- excludeConstellation boolean
- name string
- customer_id str
- exclude_constellation bool
- name str
- customerId String
- excludeConstellation Boolean
- name String
GetCustomerVersionProfileVersion    
- CreationTime string
- CustomerId string
- Id string
- ModifiedBy string
- ModifiedTime string
- Platform string
- RestartAfter stringUptime In Days 
- Role string
- Version string
- VersionProfile stringGid 
- CreationTime string
- CustomerId string
- Id string
- ModifiedBy string
- ModifiedTime string
- Platform string
- RestartAfter stringUptime In Days 
- Role string
- Version string
- VersionProfile stringGid 
- creationTime String
- customerId String
- id String
- modifiedBy String
- modifiedTime String
- platform String
- restartAfter StringUptime In Days 
- role String
- version String
- versionProfile StringGid 
- creationTime string
- customerId string
- id string
- modifiedBy string
- modifiedTime string
- platform string
- restartAfter stringUptime In Days 
- role string
- version string
- versionProfile stringGid 
- creation_time str
- customer_id str
- id str
- modified_by str
- modified_time str
- platform str
- restart_after_ struptime_ in_ days 
- role str
- version str
- version_profile_ strgid 
- creationTime String
- customerId String
- id String
- modifiedBy String
- modifiedTime String
- platform String
- restartAfter StringUptime In Days 
- role String
- version String
- versionProfile StringGid 
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the zpaTerraform Provider.
