zpa.getPolicyPlatform
Explore with Pulumi AI
Use the zpa_access_policy_platforms data source to get information about all platforms 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 “PLATFORM” in the policy operand condition. To learn more see the To learn more see the Getting Platform Types for a Customer
NOTE By Default the ZPA provider will return all platform types
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as zpa from "@pulumi/zpa";
const this = zpa.getPolicyPlatform({});
import pulumi
import pulumi_zpa as zpa
this = zpa.get_policy_platform()
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.GetPolicyPlatform(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.GetPolicyPlatform.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.getPolicyPlatform();
}
}
variables:
this:
fn::invoke:
Function: zpa:getPolicyPlatform
Arguments: {}
Using getPolicyPlatform
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 getPolicyPlatform(opts?: InvokeOptions): Promise<GetPolicyPlatformResult>
function getPolicyPlatformOutput(opts?: InvokeOptions): Output<GetPolicyPlatformResult>
def get_policy_platform(opts: Optional[InvokeOptions] = None) -> GetPolicyPlatformResult
def get_policy_platform_output(opts: Optional[InvokeOptions] = None) -> Output[GetPolicyPlatformResult]
func GetPolicyPlatform(ctx *Context, opts ...InvokeOption) (*GetPolicyPlatformResult, error)
func GetPolicyPlatformOutput(ctx *Context, opts ...InvokeOption) GetPolicyPlatformResultOutput
> Note: This function is named GetPolicyPlatform
in the Go SDK.
public static class GetPolicyPlatform
{
public static Task<GetPolicyPlatformResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetPolicyPlatformResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetPolicyPlatformResult> getPolicyPlatform(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: zpa:index/getPolicyPlatform:getPolicyPlatform
arguments:
# arguments dictionary
getPolicyPlatform 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.