Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
published on Wednesday, Oct 21, 2026 by Pulumi
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
published on Wednesday, Oct 21, 2026 by Pulumi
Accepted Permissions
Zero Trust ReadZero Trust Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustCasbPolicy = cloudflare.getZeroTrustCasbPolicy({
accountId: "46148281d8a93d002ef242d8b0d5f9f6",
policyId: "497f6eca-6276-4993-bfeb-53cbbbba6f08",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_casb_policy = cloudflare.get_zero_trust_casb_policy(account_id="46148281d8a93d002ef242d8b0d5f9f6",
policy_id="497f6eca-6276-4993-bfeb-53cbbbba6f08")
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.GetZeroTrustCasbPolicy(ctx, &cloudflare.LookupZeroTrustCasbPolicyArgs{
AccountId: "46148281d8a93d002ef242d8b0d5f9f6",
PolicyId: "497f6eca-6276-4993-bfeb-53cbbbba6f08",
}, 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 exampleZeroTrustCasbPolicy = Cloudflare.GetZeroTrustCasbPolicy.Invoke(new()
{
AccountId = "46148281d8a93d002ef242d8b0d5f9f6",
PolicyId = "497f6eca-6276-4993-bfeb-53cbbbba6f08",
});
});
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.GetZeroTrustCasbPolicyArgs;
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 exampleZeroTrustCasbPolicy = CloudflareFunctions.getZeroTrustCasbPolicy(GetZeroTrustCasbPolicyArgs.builder()
.accountId("46148281d8a93d002ef242d8b0d5f9f6")
.policyId("497f6eca-6276-4993-bfeb-53cbbbba6f08")
.build());
}
}
variables:
exampleZeroTrustCasbPolicy:
fn::invoke:
function: cloudflare:getZeroTrustCasbPolicy
arguments:
accountId: 46148281d8a93d002ef242d8b0d5f9f6
policyId: 497f6eca-6276-4993-bfeb-53cbbbba6f08
terraform {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_zero_trust_casb_policy" "exampleZeroTrustCasbPolicy" {
account_id = "46148281d8a93d002ef242d8b0d5f9f6"
policy_id = "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
Using getZeroTrustCasbPolicy
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 getZeroTrustCasbPolicy(args: GetZeroTrustCasbPolicyArgs, opts?: InvokeOptions): Promise<GetZeroTrustCasbPolicyResult>
function getZeroTrustCasbPolicyOutput(args: GetZeroTrustCasbPolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetZeroTrustCasbPolicyResult>def get_zero_trust_casb_policy(account_id: Optional[str] = None,
policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZeroTrustCasbPolicyResult
def get_zero_trust_casb_policy_output(account_id: pulumi.Input[Optional[str]] = None,
policy_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetZeroTrustCasbPolicyResult]func LookupZeroTrustCasbPolicy(ctx *Context, args *LookupZeroTrustCasbPolicyArgs, opts ...InvokeOption) (*LookupZeroTrustCasbPolicyResult, error)
func LookupZeroTrustCasbPolicyOutput(ctx *Context, args *LookupZeroTrustCasbPolicyOutputArgs, opts ...InvokeOption) LookupZeroTrustCasbPolicyResultOutput> Note: This function is named LookupZeroTrustCasbPolicy in the Go SDK.
public static class GetZeroTrustCasbPolicy
{
public static Task<GetZeroTrustCasbPolicyResult> InvokeAsync(GetZeroTrustCasbPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetZeroTrustCasbPolicyResult> Invoke(GetZeroTrustCasbPolicyInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetZeroTrustCasbPolicyResult> Invoke(GetZeroTrustCasbPolicyInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetZeroTrustCasbPolicyResult> getZeroTrustCasbPolicy(GetZeroTrustCasbPolicyArgs args, InvokeOptions options)
public static Output<GetZeroTrustCasbPolicyResult> getZeroTrustCasbPolicy(GetZeroTrustCasbPolicyArgs args, InvokeOptions options)
public static Output<GetZeroTrustCasbPolicyResult> getZeroTrustCasbPolicy(GetZeroTrustCasbPolicyArgs args, InvokeOutputOptions options)
fn::invoke:
function: cloudflare:index/getZeroTrustCasbPolicy:getZeroTrustCasbPolicy
arguments:
# arguments dictionarydata "cloudflare_get_zero_trust_casb_policy" "name" {
# arguments
}The following arguments are supported:
- account_
id string - policy_
id string
- account_
id str - policy_
id str
getZeroTrustCasbPolicy Result
The following output properties are available:
- Account
Id string - Actions
Get
Zero Trust Casb Policy Actions - The actions configured for this policy.
- Applies
To boolAll Integrations - 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 stringId - The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
- Id string
- The ID of this resource.
- Integration
Ids List<string> - The integrations this policy applies to.
- Last
Triggered stringAt - 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.
- Policy
Id string - Updated
At string - Timestamp when the policy was last updated.
- Account
Id string - Actions
Get
Zero Trust Casb Policy Actions - The actions configured for this policy.
- Applies
To boolAll Integrations - 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 stringId - The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
- Id string
- The ID of this resource.
- Integration
Ids []string - The integrations this policy applies to.
- Last
Triggered stringAt - 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.
- Policy
Id string - Updated
At string - Timestamp when the policy was last updated.
- account_
id string - actions object
- The actions configured for this policy.
- applies_
to_ boolall_ integrations - 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_ stringid - The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
- id string
- The ID of this resource.
- integration_
ids list(string) - The integrations this policy applies to.
- last_
triggered_ stringat - 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.
- policy_
id string - updated_
at string - Timestamp when the policy was last updated.
- account
Id String - actions
Get
Zero Trust Casb Policy Actions - The actions configured for this policy.
- applies
To BooleanAll Integrations - 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 Boolean
- Whether the policy is enabled. Derived from disabledat (enabled when disabledat is unset).
- finding
Type StringId - The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
- id String
- The ID of this resource.
- integration
Ids List<String> - The integrations this policy applies to.
- last
Triggered StringAt - 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.
- policy
Id String - updated
At String - Timestamp when the policy was last updated.
- account
Id string - actions
Get
Zero Trust Casb Policy Actions - The actions configured for this policy.
- applies
To booleanAll Integrations - 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 boolean
- Whether the policy is enabled. Derived from disabledat (enabled when disabledat is unset).
- finding
Type stringId - The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
- id string
- The ID of this resource.
- integration
Ids string[] - The integrations this policy applies to.
- last
Triggered stringAt - 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.
- policy
Id string - updated
At string - Timestamp when the policy was last updated.
- account_
id str - actions
Get
Zero Trust Casb Policy Actions - The actions configured for this policy.
- applies_
to_ boolall_ integrations - 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_ strid - The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
- id str
- The ID of this resource.
- integration_
ids Sequence[str] - The integrations this policy applies to.
- last_
triggered_ strat - 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.
- policy_
id str - updated_
at str - Timestamp when the policy was last updated.
- account
Id String - actions Property Map
- The actions configured for this policy.
- applies
To BooleanAll Integrations - 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 Boolean
- Whether the policy is enabled. Derived from disabledat (enabled when disabledat is unset).
- finding
Type StringId - The finding type this policy is associated with. Immutable after creation; attempts to change it via update are rejected.
- id String
- The ID of this resource.
- integration
Ids List<String> - The integrations this policy applies to.
- last
Triggered StringAt - 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.
- policy
Id String - updated
At String - Timestamp when the policy was last updated.
Supporting Types
GetZeroTrustCasbPolicyActions
- Remediation
Types List<GetZero Trust Casb Policy Actions Remediation Type> - List of remediation types that will be executed.
- Webhook
Configs List<GetZero Trust Casb Policy Actions Webhook Config> - List of webhook configurations that will be triggered.
- Remediation
Types []GetZero Trust Casb Policy Actions Remediation Type - List of remediation types that will be executed.
- Webhook
Configs []GetZero Trust Casb Policy Actions Webhook Config - 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.
- remediation
Types List<GetZero Trust Casb Policy Actions Remediation Type> - List of remediation types that will be executed.
- webhook
Configs List<GetZero Trust Casb Policy Actions Webhook Config> - List of webhook configurations that will be triggered.
- remediation
Types GetZero Trust Casb Policy Actions Remediation Type[] - List of remediation types that will be executed.
- webhook
Configs GetZero Trust Casb Policy Actions Webhook Config[] - List of webhook configurations that will be triggered.
- remediation_
types Sequence[GetZero Trust Casb Policy Actions Remediation Type] - List of remediation types that will be executed.
- webhook_
configs Sequence[GetZero Trust Casb Policy Actions Webhook Config] - List of webhook configurations that will be triggered.
- remediation
Types List<Property Map> - List of remediation types that will be executed.
- webhook
Configs List<Property Map> - List of webhook configurations that will be triggered.
GetZeroTrustCasbPolicyActionsRemediationType
- Display
Name string - Display name/label of the remediation type.
- Remediation
Type string - The system name of the remediation type.
- Remediation
Type stringId - 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 stringId - 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_ stringid - 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 StringId - 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 stringId - 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_ strid - 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 StringId - Unique identifier for the remediation type.
GetZeroTrustCasbPolicyActionsWebhookConfig
- Display
Name string - Display name/label of the webhook configuration.
- Webhook
Config stringId - Unique identifier for the webhook configuration.
- Display
Name string - Display name/label of the webhook configuration.
- Webhook
Config stringId - Unique identifier for the webhook configuration.
- display_
name string - Display name/label of the webhook configuration.
- webhook_
config_ stringid - Unique identifier for the webhook configuration.
- display
Name String - Display name/label of the webhook configuration.
- webhook
Config StringId - Unique identifier for the webhook configuration.
- display
Name string - Display name/label of the webhook configuration.
- webhook
Config stringId - Unique identifier for the webhook configuration.
- display_
name str - Display name/label of the webhook configuration.
- webhook_
config_ strid - Unique identifier for the webhook configuration.
- display
Name String - Display name/label of the webhook configuration.
- webhook
Config StringId - 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
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
published on Wednesday, Oct 21, 2026 by Pulumi