1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getZeroTrustCasbPolicies
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi

    Accepted Permissions

    • Zero Trust Read
    • Zero Trust Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustCasbPolicies = cloudflare.getZeroTrustCasbPolicies({
        accountId: "46148281d8a93d002ef242d8b0d5f9f6",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_casb_policies = cloudflare.get_zero_trust_casb_policies(account_id="46148281d8a93d002ef242d8b0d5f9f6")
    
    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.GetZeroTrustCasbPolicies(ctx, &cloudflare.LookupZeroTrustCasbPoliciesArgs{
    			AccountId: "46148281d8a93d002ef242d8b0d5f9f6",
    		}, 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 exampleZeroTrustCasbPolicies = Cloudflare.GetZeroTrustCasbPolicies.Invoke(new()
        {
            AccountId = "46148281d8a93d002ef242d8b0d5f9f6",
        });
    
    });
    
    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.GetZeroTrustCasbPoliciesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 exampleZeroTrustCasbPolicies = CloudflareFunctions.getZeroTrustCasbPolicies(GetZeroTrustCasbPoliciesArgs.builder()
                .accountId("46148281d8a93d002ef242d8b0d5f9f6")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustCasbPolicies:
        fn::invoke:
          function: cloudflare:getZeroTrustCasbPolicies
          arguments:
            accountId: 46148281d8a93d002ef242d8b0d5f9f6
    
    terraform {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_zero_trust_casb_policies" "exampleZeroTrustCasbPolicies" {
      account_id = "46148281d8a93d002ef242d8b0d5f9f6"
    }
    

    Using getZeroTrustCasbPolicies

    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 getZeroTrustCasbPolicies(args: GetZeroTrustCasbPoliciesArgs, opts?: InvokeOptions): Promise<GetZeroTrustCasbPoliciesResult>
    function getZeroTrustCasbPoliciesOutput(args: GetZeroTrustCasbPoliciesOutputArgs, opts?: InvokeOutputOptions): Output<GetZeroTrustCasbPoliciesResult>
    def get_zero_trust_casb_policies(account_id: Optional[str] = None,
                                     max_items: Optional[int] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetZeroTrustCasbPoliciesResult
    def get_zero_trust_casb_policies_output(account_id: pulumi.Input[Optional[str]] = None,
                                     max_items: pulumi.Input[Optional[int]] = None,
                                     opts: Optional[InvokeOutputOptions] = None) -> Output[GetZeroTrustCasbPoliciesResult]
    func LookupZeroTrustCasbPolicies(ctx *Context, args *LookupZeroTrustCasbPoliciesArgs, opts ...InvokeOption) (*LookupZeroTrustCasbPoliciesResult, error)
    func LookupZeroTrustCasbPoliciesOutput(ctx *Context, args *LookupZeroTrustCasbPoliciesOutputArgs, opts ...InvokeOption) LookupZeroTrustCasbPoliciesResultOutput

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

    public static class GetZeroTrustCasbPolicies 
    {
        public static Task<GetZeroTrustCasbPoliciesResult> InvokeAsync(GetZeroTrustCasbPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustCasbPoliciesResult> Invoke(GetZeroTrustCasbPoliciesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustCasbPoliciesResult> Invoke(GetZeroTrustCasbPoliciesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetZeroTrustCasbPoliciesResult> getZeroTrustCasbPolicies(GetZeroTrustCasbPoliciesArgs args, InvokeOptions options)
    public static Output<GetZeroTrustCasbPoliciesResult> getZeroTrustCasbPolicies(GetZeroTrustCasbPoliciesArgs args, InvokeOptions options)
    public static Output<GetZeroTrustCasbPoliciesResult> getZeroTrustCasbPolicies(GetZeroTrustCasbPoliciesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustCasbPolicies:getZeroTrustCasbPolicies
      arguments:
        # arguments dictionary
    data "cloudflare_get_zero_trust_casb_policies" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    max_items number
    Max items to fetch, default: 1000
    accountId String
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    max_items int
    Max items to fetch, default: 1000
    accountId String
    maxItems Number
    Max items to fetch, default: 1000

    getZeroTrustCasbPolicies Result

    The following output properties are available:

    AccountId string
    Results List<GetZeroTrustCasbPoliciesResult>
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Results []GetZeroTrustCasbPoliciesResult
    The items returned by the data source
    MaxItems int
    Max items to fetch, default: 1000
    account_id string
    results list(object)
    The items returned by the data source
    max_items number
    Max items to fetch, default: 1000
    accountId String
    results List<GetZeroTrustCasbPoliciesResult>
    The items returned by the data source
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    results GetZeroTrustCasbPoliciesResult[]
    The items returned by the data source
    maxItems number
    Max items to fetch, default: 1000
    account_id str
    results Sequence[GetZeroTrustCasbPoliciesResult]
    The items returned by the data source
    max_items int
    Max items to fetch, default: 1000
    accountId String
    results List<Property Map>
    The items returned by the data source
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetZeroTrustCasbPoliciesResult

    Actions GetZeroTrustCasbPoliciesResultActions
    The actions configured for this policy.
    AppliesToAllIntegrations bool
    When true, the policy applies to all integrations for the account. When false, it applies only to the specified integration_ids.
    CreatedAt string
    Timestamp when the policy was created.
    Description string
    User-set description of what this policy does. Limited to 1000 characters.
    DisabledAt string
    Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
    DisplayName string
    Display name for the policy configuration. Limited to 255 characters.
    Enabled bool
    Whether the policy is enabled. Derived from disabledat (enabled when disabledat is unset).
    FindingTypeId string
    The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
    Id string
    Unique identifier for the policy configuration.
    IntegrationIds List<string>
    The integrations this policy applies to.
    LastTriggeredAt string
    Timestamp of the most recent successful policy invocation. Omitted from the response when the policy has never been successfully triggered. Only populated on GET responses; absent on responses from create/update endpoints.
    UpdatedAt string
    Timestamp when the policy was last updated.
    Actions GetZeroTrustCasbPoliciesResultActions
    The actions configured for this policy.
    AppliesToAllIntegrations bool
    When true, the policy applies to all integrations for the account. When false, it applies only to the specified integration_ids.
    CreatedAt string
    Timestamp when the policy was created.
    Description string
    User-set description of what this policy does. Limited to 1000 characters.
    DisabledAt string
    Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
    DisplayName string
    Display name for the policy configuration. Limited to 255 characters.
    Enabled bool
    Whether the policy is enabled. Derived from disabledat (enabled when disabledat is unset).
    FindingTypeId string
    The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
    Id string
    Unique identifier for the policy configuration.
    IntegrationIds []string
    The integrations this policy applies to.
    LastTriggeredAt string
    Timestamp of the most recent successful policy invocation. Omitted from the response when the policy has never been successfully triggered. Only populated on GET responses; absent on responses from create/update endpoints.
    UpdatedAt string
    Timestamp when the policy was last updated.
    actions object
    The actions configured for this policy.
    applies_to_all_integrations bool
    When true, the policy applies to all integrations for the account. When false, it applies only to the specified integration_ids.
    created_at string
    Timestamp when the policy was created.
    description string
    User-set description of what this policy does. Limited to 1000 characters.
    disabled_at string
    Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
    display_name string
    Display name for the policy configuration. Limited to 255 characters.
    enabled bool
    Whether the policy is enabled. Derived from disabledat (enabled when disabledat is unset).
    finding_type_id string
    The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
    id string
    Unique identifier for the policy configuration.
    integration_ids list(string)
    The integrations this policy applies to.
    last_triggered_at string
    Timestamp of the most recent successful policy invocation. Omitted from the response when the policy has never been successfully triggered. Only populated on GET responses; absent on responses from create/update endpoints.
    updated_at string
    Timestamp when the policy was last updated.
    actions GetZeroTrustCasbPoliciesResultActions
    The actions configured for this policy.
    appliesToAllIntegrations Boolean
    When true, the policy applies to all integrations for the account. When false, it applies only to the specified integration_ids.
    createdAt String
    Timestamp when the policy was created.
    description String
    User-set description of what this policy does. Limited to 1000 characters.
    disabledAt String
    Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
    displayName String
    Display name for the policy configuration. Limited to 255 characters.
    enabled Boolean
    Whether the policy is enabled. Derived from disabledat (enabled when disabledat is unset).
    findingTypeId String
    The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
    id String
    Unique identifier for the policy configuration.
    integrationIds List<String>
    The integrations this policy applies to.
    lastTriggeredAt String
    Timestamp of the most recent successful policy invocation. Omitted from the response when the policy has never been successfully triggered. Only populated on GET responses; absent on responses from create/update endpoints.
    updatedAt String
    Timestamp when the policy was last updated.
    actions GetZeroTrustCasbPoliciesResultActions
    The actions configured for this policy.
    appliesToAllIntegrations boolean
    When true, the policy applies to all integrations for the account. When false, it applies only to the specified integration_ids.
    createdAt string
    Timestamp when the policy was created.
    description string
    User-set description of what this policy does. Limited to 1000 characters.
    disabledAt string
    Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
    displayName string
    Display name for the policy configuration. Limited to 255 characters.
    enabled boolean
    Whether the policy is enabled. Derived from disabledat (enabled when disabledat is unset).
    findingTypeId string
    The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
    id string
    Unique identifier for the policy configuration.
    integrationIds string[]
    The integrations this policy applies to.
    lastTriggeredAt string
    Timestamp of the most recent successful policy invocation. Omitted from the response when the policy has never been successfully triggered. Only populated on GET responses; absent on responses from create/update endpoints.
    updatedAt string
    Timestamp when the policy was last updated.
    actions GetZeroTrustCasbPoliciesResultActions
    The actions configured for this policy.
    applies_to_all_integrations bool
    When true, the policy applies to all integrations for the account. When false, it applies only to the specified integration_ids.
    created_at str
    Timestamp when the policy was created.
    description str
    User-set description of what this policy does. Limited to 1000 characters.
    disabled_at str
    Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
    display_name str
    Display name for the policy configuration. Limited to 255 characters.
    enabled bool
    Whether the policy is enabled. Derived from disabledat (enabled when disabledat is unset).
    finding_type_id str
    The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
    id str
    Unique identifier for the policy configuration.
    integration_ids Sequence[str]
    The integrations this policy applies to.
    last_triggered_at str
    Timestamp of the most recent successful policy invocation. Omitted from the response when the policy has never been successfully triggered. Only populated on GET responses; absent on responses from create/update endpoints.
    updated_at str
    Timestamp when the policy was last updated.
    actions Property Map
    The actions configured for this policy.
    appliesToAllIntegrations Boolean
    When true, the policy applies to all integrations for the account. When false, it applies only to the specified integration_ids.
    createdAt String
    Timestamp when the policy was created.
    description String
    User-set description of what this policy does. Limited to 1000 characters.
    disabledAt String
    Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
    displayName String
    Display name for the policy configuration. Limited to 255 characters.
    enabled Boolean
    Whether the policy is enabled. Derived from disabledat (enabled when disabledat is unset).
    findingTypeId String
    The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
    id String
    Unique identifier for the policy configuration.
    integrationIds List<String>
    The integrations this policy applies to.
    lastTriggeredAt String
    Timestamp of the most recent successful policy invocation. Omitted from the response when the policy has never been successfully triggered. Only populated on GET responses; absent on responses from create/update endpoints.
    updatedAt String
    Timestamp when the policy was last updated.

    GetZeroTrustCasbPoliciesResultActions

    RemediationTypes List<GetZeroTrustCasbPoliciesResultActionsRemediationType>
    List of remediation types that will be executed.
    WebhookConfigs List<GetZeroTrustCasbPoliciesResultActionsWebhookConfig>
    List of webhook configurations that will be triggered.
    RemediationTypes []GetZeroTrustCasbPoliciesResultActionsRemediationType
    List of remediation types that will be executed.
    WebhookConfigs []GetZeroTrustCasbPoliciesResultActionsWebhookConfig
    List of webhook configurations that will be triggered.
    remediation_types list(object)
    List of remediation types that will be executed.
    webhook_configs list(object)
    List of webhook configurations that will be triggered.
    remediationTypes List<GetZeroTrustCasbPoliciesResultActionsRemediationType>
    List of remediation types that will be executed.
    webhookConfigs List<GetZeroTrustCasbPoliciesResultActionsWebhookConfig>
    List of webhook configurations that will be triggered.
    remediationTypes GetZeroTrustCasbPoliciesResultActionsRemediationType[]
    List of remediation types that will be executed.
    webhookConfigs GetZeroTrustCasbPoliciesResultActionsWebhookConfig[]
    List of webhook configurations that will be triggered.
    remediation_types Sequence[GetZeroTrustCasbPoliciesResultActionsRemediationType]
    List of remediation types that will be executed.
    webhook_configs Sequence[GetZeroTrustCasbPoliciesResultActionsWebhookConfig]
    List of webhook configurations that will be triggered.
    remediationTypes List<Property Map>
    List of remediation types that will be executed.
    webhookConfigs List<Property Map>
    List of webhook configurations that will be triggered.

    GetZeroTrustCasbPoliciesResultActionsRemediationType

    DisplayName string
    Display name/label of the remediation type.
    RemediationType string
    The system name of the remediation type.
    RemediationTypeId string
    Unique identifier for the remediation type.
    DisplayName string
    Display name/label of the remediation type.
    RemediationType string
    The system name of the remediation type.
    RemediationTypeId string
    Unique identifier for the remediation type.
    display_name string
    Display name/label of the remediation type.
    remediation_type string
    The system name of the remediation type.
    remediation_type_id string
    Unique identifier for the remediation type.
    displayName String
    Display name/label of the remediation type.
    remediationType String
    The system name of the remediation type.
    remediationTypeId String
    Unique identifier for the remediation type.
    displayName string
    Display name/label of the remediation type.
    remediationType string
    The system name of the remediation type.
    remediationTypeId string
    Unique identifier for the remediation type.
    display_name str
    Display name/label of the remediation type.
    remediation_type str
    The system name of the remediation type.
    remediation_type_id str
    Unique identifier for the remediation type.
    displayName String
    Display name/label of the remediation type.
    remediationType String
    The system name of the remediation type.
    remediationTypeId String
    Unique identifier for the remediation type.

    GetZeroTrustCasbPoliciesResultActionsWebhookConfig

    DisplayName string
    Display name/label of the webhook configuration.
    WebhookConfigId string
    Unique identifier for the webhook configuration.
    DisplayName string
    Display name/label of the webhook configuration.
    WebhookConfigId string
    Unique identifier for the webhook configuration.
    display_name string
    Display name/label of the webhook configuration.
    webhook_config_id string
    Unique identifier for the webhook configuration.
    displayName String
    Display name/label of the webhook configuration.
    webhookConfigId String
    Unique identifier for the webhook configuration.
    displayName string
    Display name/label of the webhook configuration.
    webhookConfigId string
    Unique identifier for the webhook configuration.
    display_name str
    Display name/label of the webhook configuration.
    webhook_config_id str
    Unique identifier for the webhook configuration.
    displayName String
    Display name/label of the webhook configuration.
    webhookConfigId String
    Unique identifier for the webhook configuration.

    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 logo
    Viewing docs for Cloudflare v6.23.1
    published on Wednesday, Oct 21, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial