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

zpa.getPolicyClientType

Explore with Pulumi AI

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

    Use the zpa_access_policy_client_types data source to get information about all client types for the specified customer in the Zscaler Private Access cloud. This data source can be optionally used when defining the following policy types: - zpa.PolicyAccessRule - zpa.PolicyAccessTimeOutRule - zpa.PolicyAccessForwardingRule - zpa.PolicyAccessIsolationRule - zpa.PolicyAccessInspectionRule

    The object_type attribute must be defined as “CLIENT_TYPE” in the policy operand condition. To learn more see the To learn more see the Getting Details of All Client Types

    NOTE By Default the ZPA provider will return all client types

    NOTE When defining a zpa.PolicyAccessIsolationRule policy the object_type “CLIENT_TYPE” is mandatory and zpn_client_type_exporter is the only supported value.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zpa from "@pulumi/zpa";
    
    const this = zpa.getPolicyClientType({});
    
    import pulumi
    import pulumi_zpa as zpa
    
    this = zpa.get_policy_client_type()
    
    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.GetPolicyClientType(ctx, nil, 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.GetPolicyClientType.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zpa.ZpaFunctions;
    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.getPolicyClientType();
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          Function: zpa:getPolicyClientType
          Arguments: {}
    

    Using getPolicyClientType

    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 getPolicyClientType(opts?: InvokeOptions): Promise<GetPolicyClientTypeResult>
    function getPolicyClientTypeOutput(opts?: InvokeOptions): Output<GetPolicyClientTypeResult>
    def get_policy_client_type(opts: Optional[InvokeOptions] = None) -> GetPolicyClientTypeResult
    def get_policy_client_type_output(opts: Optional[InvokeOptions] = None) -> Output[GetPolicyClientTypeResult]
    func GetPolicyClientType(ctx *Context, opts ...InvokeOption) (*GetPolicyClientTypeResult, error)
    func GetPolicyClientTypeOutput(ctx *Context, opts ...InvokeOption) GetPolicyClientTypeResultOutput

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

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

    getPolicyClientType 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