Zscaler Private Access v0.0.11 published on Saturday, May 4, 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)
// 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:
- Creation
Time string - Custom
Scope List<Zscaler.Customer Ids Zpa. Outputs. Get Customer Version Profile Custom Scope Customer Id> - Customer
Id string - Description string
- Id string
- Modified
By string - Modified
Time string - Name string
- Upgrade
Priority string - Versions
List<Zscaler.
Zpa. Outputs. Get Customer Version Profile Version> - Visibility
Scope string
- Creation
Time string - Custom
Scope []GetCustomer Ids Customer Version Profile Custom Scope Customer Id - Customer
Id string - Description string
- Id string
- Modified
By string - Modified
Time string - Name string
- Upgrade
Priority string - Versions
[]Get
Customer Version Profile Version - Visibility
Scope string
- creation
Time String - custom
Scope List<GetCustomer Ids Customer Version Profile Custom Scope Customer Id> - customer
Id String - description String
- id String
- modified
By String - modified
Time String - name String
- upgrade
Priority String - versions
List<Get
Customer Version Profile Version> - visibility
Scope String
- creation
Time string - custom
Scope GetCustomer Ids Customer Version Profile Custom Scope Customer Id[] - customer
Id string - description string
- id string
- modified
By string - modified
Time string - name string
- upgrade
Priority string - versions
Get
Customer Version Profile Version[] - visibility
Scope string
- creation
Time String - custom
Scope List<Property Map>Customer Ids - customer
Id String - description String
- id String
- modified
By String - modified
Time String - name String
- upgrade
Priority String - versions List<Property Map>
- visibility
Scope String
Supporting Types
GetCustomerVersionProfileCustomScopeCustomerId
- Customer
Id string - Exclude
Constellation bool - Name string
- Customer
Id string - Exclude
Constellation bool - Name string
- customer
Id String - exclude
Constellation Boolean - name String
- customer
Id string - exclude
Constellation boolean - name string
- customer_
id str - exclude_
constellation bool - name str
- customer
Id String - exclude
Constellation Boolean - name String
GetCustomerVersionProfileVersion
- Creation
Time string - Customer
Id string - Id string
- Modified
By string - Modified
Time string - Platform string
- Restart
After stringUptime In Days - Role string
- Version string
- Version
Profile stringGid
- Creation
Time string - Customer
Id string - Id string
- Modified
By string - Modified
Time string - Platform string
- Restart
After stringUptime In Days - Role string
- Version string
- Version
Profile stringGid
- creation
Time String - customer
Id String - id String
- modified
By String - modified
Time String - platform String
- restart
After StringUptime In Days - role String
- version String
- version
Profile StringGid
- creation
Time string - customer
Id string - id string
- modified
By string - modified
Time string - platform string
- restart
After stringUptime In Days - role string
- version string
- version
Profile 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
- creation
Time String - customer
Id String - id String
- modified
By String - modified
Time String - platform String
- restart
After StringUptime In Days - role String
- version String
- version
Profile StringGid
Package Details
- Repository
- zpa zscaler/pulumi-zpa
- License
- MIT
- Notes
- This Pulumi package is based on the
zpa
Terraform Provider.