1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustRiskBehavior
Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi

cloudflare.getZeroTrustRiskBehavior

Start a Neo task
Explain and create a cloudflare.getZeroTrustRiskBehavior resource
cloudflare logo
Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustRiskBehavior = cloudflare.getZeroTrustRiskBehavior({
        accountId: "account_id",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_risk_behavior = cloudflare.get_zero_trust_risk_behavior(account_id="account_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.LookupZeroTrustRiskBehavior(ctx, &cloudflare.LookupZeroTrustRiskBehaviorArgs{
    			AccountId: "account_id",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleZeroTrustRiskBehavior = Cloudflare.GetZeroTrustRiskBehavior.Invoke(new()
        {
            AccountId = "account_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetZeroTrustRiskBehaviorArgs;
    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 exampleZeroTrustRiskBehavior = CloudflareFunctions.getZeroTrustRiskBehavior(GetZeroTrustRiskBehaviorArgs.builder()
                .accountId("account_id")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustRiskBehavior:
        fn::invoke:
          function: cloudflare:getZeroTrustRiskBehavior
          arguments:
            accountId: account_id
    

    Using getZeroTrustRiskBehavior

    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 getZeroTrustRiskBehavior(args: GetZeroTrustRiskBehaviorArgs, opts?: InvokeOptions): Promise<GetZeroTrustRiskBehaviorResult>
    function getZeroTrustRiskBehaviorOutput(args: GetZeroTrustRiskBehaviorOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustRiskBehaviorResult>
    def get_zero_trust_risk_behavior(account_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetZeroTrustRiskBehaviorResult
    def get_zero_trust_risk_behavior_output(account_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustRiskBehaviorResult]
    func LookupZeroTrustRiskBehavior(ctx *Context, args *LookupZeroTrustRiskBehaviorArgs, opts ...InvokeOption) (*LookupZeroTrustRiskBehaviorResult, error)
    func LookupZeroTrustRiskBehaviorOutput(ctx *Context, args *LookupZeroTrustRiskBehaviorOutputArgs, opts ...InvokeOption) LookupZeroTrustRiskBehaviorResultOutput

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

    public static class GetZeroTrustRiskBehavior 
    {
        public static Task<GetZeroTrustRiskBehaviorResult> InvokeAsync(GetZeroTrustRiskBehaviorArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustRiskBehaviorResult> Invoke(GetZeroTrustRiskBehaviorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustRiskBehaviorResult> getZeroTrustRiskBehavior(GetZeroTrustRiskBehaviorArgs args, InvokeOptions options)
    public static Output<GetZeroTrustRiskBehaviorResult> getZeroTrustRiskBehavior(GetZeroTrustRiskBehaviorArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustRiskBehavior:getZeroTrustRiskBehavior
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    AccountId string
    accountId String
    accountId string
    accountId String

    getZeroTrustRiskBehavior Result

    The following output properties are available:

    AccountId string
    Behaviors Dictionary<string, GetZeroTrustRiskBehaviorBehaviors>
    Id string
    The provider-assigned unique ID for this managed resource.
    AccountId string
    Behaviors map[string]GetZeroTrustRiskBehaviorBehaviors
    Id string
    The provider-assigned unique ID for this managed resource.
    accountId String
    behaviors Map<String,GetZeroTrustRiskBehaviorBehaviors>
    id String
    The provider-assigned unique ID for this managed resource.
    accountId string
    behaviors {[key: string]: GetZeroTrustRiskBehaviorBehaviors}
    id string
    The provider-assigned unique ID for this managed resource.
    account_id str
    behaviors Mapping[str, GetZeroTrustRiskBehaviorBehaviors]
    id str
    The provider-assigned unique ID for this managed resource.
    accountId String
    behaviors Map<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    GetZeroTrustRiskBehaviorBehaviors

    Description string
    Enabled bool
    Name string
    RiskLevel string
    Available values: "low", "medium", "high".
    Description string
    Enabled bool
    Name string
    RiskLevel string
    Available values: "low", "medium", "high".
    description String
    enabled Boolean
    name String
    riskLevel String
    Available values: "low", "medium", "high".
    description string
    enabled boolean
    name string
    riskLevel string
    Available values: "low", "medium", "high".
    description str
    enabled bool
    name str
    risk_level str
    Available values: "low", "medium", "high".
    description String
    enabled Boolean
    name String
    riskLevel String
    Available values: "low", "medium", "high".

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate