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 = new cloudflare.ZeroTrustCasbPolicy("example_zero_trust_casb_policy", {
accountId: "46148281d8a93d002ef242d8b0d5f9f6",
actions: {
remediationTypes: [{
remediationTypeId: "5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a",
}],
webhookConfigs: [{
webhookConfigId: "3f7b8c9d-6e5a-4f3b-9c2d-1e0a8b7c6d5e",
}],
},
appliesToAllIntegrations: false,
displayName: "Auto-remediate public files",
enabled: true,
findingTypeId: "5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a",
description: "Automatically remove public access from files when detected",
integrationIds: ["497f6eca-6276-4993-bfeb-53cbbbba6f08"],
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_casb_policy = cloudflare.ZeroTrustCasbPolicy("example_zero_trust_casb_policy",
account_id="46148281d8a93d002ef242d8b0d5f9f6",
actions={
"remediation_types": [{
"remediation_type_id": "5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a",
}],
"webhook_configs": [{
"webhook_config_id": "3f7b8c9d-6e5a-4f3b-9c2d-1e0a8b7c6d5e",
}],
},
applies_to_all_integrations=False,
display_name="Auto-remediate public files",
enabled=True,
finding_type_id="5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a",
description="Automatically remove public access from files when detected",
integration_ids=["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.NewZeroTrustCasbPolicy(ctx, "example_zero_trust_casb_policy", &cloudflare.ZeroTrustCasbPolicyArgs{
AccountId: pulumi.String("46148281d8a93d002ef242d8b0d5f9f6"),
Actions: &cloudflare.ZeroTrustCasbPolicyActionsArgs{
RemediationTypes: cloudflare.ZeroTrustCasbPolicyActionsRemediationTypeArray{
&cloudflare.ZeroTrustCasbPolicyActionsRemediationTypeArgs{
RemediationTypeId: pulumi.String("5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a"),
},
},
WebhookConfigs: cloudflare.ZeroTrustCasbPolicyActionsWebhookConfigArray{
&cloudflare.ZeroTrustCasbPolicyActionsWebhookConfigArgs{
WebhookConfigId: pulumi.String("3f7b8c9d-6e5a-4f3b-9c2d-1e0a8b7c6d5e"),
},
},
},
AppliesToAllIntegrations: pulumi.Bool(false),
DisplayName: pulumi.String("Auto-remediate public files"),
Enabled: pulumi.Bool(true),
FindingTypeId: pulumi.String("5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a"),
Description: pulumi.String("Automatically remove public access from files when detected"),
IntegrationIds: pulumi.StringArray{
pulumi.String("497f6eca-6276-4993-bfeb-53cbbbba6f08"),
},
})
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 = new Cloudflare.ZeroTrustCasbPolicy("example_zero_trust_casb_policy", new()
{
AccountId = "46148281d8a93d002ef242d8b0d5f9f6",
Actions = new Cloudflare.Inputs.ZeroTrustCasbPolicyActionsArgs
{
RemediationTypes = new[]
{
new Cloudflare.Inputs.ZeroTrustCasbPolicyActionsRemediationTypeArgs
{
RemediationTypeId = "5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a",
},
},
WebhookConfigs = new[]
{
new Cloudflare.Inputs.ZeroTrustCasbPolicyActionsWebhookConfigArgs
{
WebhookConfigId = "3f7b8c9d-6e5a-4f3b-9c2d-1e0a8b7c6d5e",
},
},
},
AppliesToAllIntegrations = false,
DisplayName = "Auto-remediate public files",
Enabled = true,
FindingTypeId = "5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a",
Description = "Automatically remove public access from files when detected",
IntegrationIds = new[]
{
"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.ZeroTrustCasbPolicy;
import com.pulumi.cloudflare.ZeroTrustCasbPolicyArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustCasbPolicyActionsArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustCasbPolicyActionsRemediationTypeArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustCasbPolicyActionsWebhookConfigArgs;
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) {
var exampleZeroTrustCasbPolicy = new ZeroTrustCasbPolicy("exampleZeroTrustCasbPolicy", ZeroTrustCasbPolicyArgs.builder()
.accountId("46148281d8a93d002ef242d8b0d5f9f6")
.actions(ZeroTrustCasbPolicyActionsArgs.builder()
.remediationTypes(ZeroTrustCasbPolicyActionsRemediationTypeArgs.builder()
.remediationTypeId("5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a")
.build())
.webhookConfigs(ZeroTrustCasbPolicyActionsWebhookConfigArgs.builder()
.webhookConfigId("3f7b8c9d-6e5a-4f3b-9c2d-1e0a8b7c6d5e")
.build())
.build())
.appliesToAllIntegrations(false)
.displayName("Auto-remediate public files")
.enabled(true)
.findingTypeId("5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a")
.description("Automatically remove public access from files when detected")
.integrationIds("497f6eca-6276-4993-bfeb-53cbbbba6f08")
.build());
}
}
resources:
exampleZeroTrustCasbPolicy:
type: cloudflare:ZeroTrustCasbPolicy
name: example_zero_trust_casb_policy
properties:
accountId: 46148281d8a93d002ef242d8b0d5f9f6
actions:
remediationTypes:
- remediationTypeId: 5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a
webhookConfigs:
- webhookConfigId: 3f7b8c9d-6e5a-4f3b-9c2d-1e0a8b7c6d5e
appliesToAllIntegrations: false
displayName: Auto-remediate public files
enabled: true
findingTypeId: 5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a
description: Automatically remove public access from files when detected
integrationIds:
- 497f6eca-6276-4993-bfeb-53cbbbba6f08
terraform {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
resource "cloudflare_zero_trust_casb_policy" "example_zero_trust_casb_policy" {
lifecycle {
create_before_destroy = true
}
account_id = "46148281d8a93d002ef242d8b0d5f9f6"
actions = {
remediation_types = [{
remediation_type_id = "5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a"
}]
webhook_configs = [{
webhook_config_id = "3f7b8c9d-6e5a-4f3b-9c2d-1e0a8b7c6d5e"
}]
}
applies_to_all_integrations = false
display_name = "Auto-remediate public files"
enabled = true
finding_type_id = "5a7d9e2f-1b3c-4d5e-8f6a-7b8c9d0e1f2a"
description = "Automatically remove public access from files when detected"
integration_ids = ["497f6eca-6276-4993-bfeb-53cbbbba6f08"]
}
Create ZeroTrustCasbPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustCasbPolicy(name: string, args: ZeroTrustCasbPolicyArgs, opts?: CustomResourceOptions);@overload
def ZeroTrustCasbPolicy(resource_name: str,
args: ZeroTrustCasbPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustCasbPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
actions: Optional[ZeroTrustCasbPolicyActionsArgs] = None,
applies_to_all_integrations: Optional[bool] = None,
display_name: Optional[str] = None,
enabled: Optional[bool] = None,
finding_type_id: Optional[str] = None,
description: Optional[str] = None,
integration_ids: Optional[Sequence[str]] = None)func NewZeroTrustCasbPolicy(ctx *Context, name string, args ZeroTrustCasbPolicyArgs, opts ...ResourceOption) (*ZeroTrustCasbPolicy, error)public ZeroTrustCasbPolicy(string name, ZeroTrustCasbPolicyArgs args, CustomResourceOptions? opts = null)
public ZeroTrustCasbPolicy(String name, ZeroTrustCasbPolicyArgs args)
public ZeroTrustCasbPolicy(String name, ZeroTrustCasbPolicyArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustCasbPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_zero_trust_casb_policy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ZeroTrustCasbPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ZeroTrustCasbPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ZeroTrustCasbPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustCasbPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustCasbPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var zeroTrustCasbPolicyResource = new Cloudflare.ZeroTrustCasbPolicy("zeroTrustCasbPolicyResource", new()
{
AccountId = "string",
Actions = new Cloudflare.Inputs.ZeroTrustCasbPolicyActionsArgs
{
RemediationTypes = new[]
{
new Cloudflare.Inputs.ZeroTrustCasbPolicyActionsRemediationTypeArgs
{
RemediationTypeId = "string",
},
},
WebhookConfigs = new[]
{
new Cloudflare.Inputs.ZeroTrustCasbPolicyActionsWebhookConfigArgs
{
WebhookConfigId = "string",
},
},
},
AppliesToAllIntegrations = false,
DisplayName = "string",
Enabled = false,
FindingTypeId = "string",
Description = "string",
IntegrationIds = new[]
{
"string",
},
});
example, err := cloudflare.NewZeroTrustCasbPolicy(ctx, "zeroTrustCasbPolicyResource", &cloudflare.ZeroTrustCasbPolicyArgs{
AccountId: pulumi.String("string"),
Actions: &cloudflare.ZeroTrustCasbPolicyActionsArgs{
RemediationTypes: cloudflare.ZeroTrustCasbPolicyActionsRemediationTypeArray{
&cloudflare.ZeroTrustCasbPolicyActionsRemediationTypeArgs{
RemediationTypeId: pulumi.String("string"),
},
},
WebhookConfigs: cloudflare.ZeroTrustCasbPolicyActionsWebhookConfigArray{
&cloudflare.ZeroTrustCasbPolicyActionsWebhookConfigArgs{
WebhookConfigId: pulumi.String("string"),
},
},
},
AppliesToAllIntegrations: pulumi.Bool(false),
DisplayName: pulumi.String("string"),
Enabled: pulumi.Bool(false),
FindingTypeId: pulumi.String("string"),
Description: pulumi.String("string"),
IntegrationIds: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "cloudflare_zero_trust_casb_policy" "zeroTrustCasbPolicyResource" {
lifecycle {
create_before_destroy = true
}
account_id = "string"
actions = {
remediation_types = [{
remediation_type_id = "string"
}]
webhook_configs = [{
webhook_config_id = "string"
}]
}
applies_to_all_integrations = false
display_name = "string"
enabled = false
finding_type_id = "string"
description = "string"
integration_ids = ["string"]
}
var zeroTrustCasbPolicyResource = new ZeroTrustCasbPolicy("zeroTrustCasbPolicyResource", ZeroTrustCasbPolicyArgs.builder()
.accountId("string")
.actions(ZeroTrustCasbPolicyActionsArgs.builder()
.remediationTypes(ZeroTrustCasbPolicyActionsRemediationTypeArgs.builder()
.remediationTypeId("string")
.build())
.webhookConfigs(ZeroTrustCasbPolicyActionsWebhookConfigArgs.builder()
.webhookConfigId("string")
.build())
.build())
.appliesToAllIntegrations(false)
.displayName("string")
.enabled(false)
.findingTypeId("string")
.description("string")
.integrationIds("string")
.build());
zero_trust_casb_policy_resource = cloudflare.ZeroTrustCasbPolicy("zeroTrustCasbPolicyResource",
account_id="string",
actions={
"remediation_types": [{
"remediation_type_id": "string",
}],
"webhook_configs": [{
"webhook_config_id": "string",
}],
},
applies_to_all_integrations=False,
display_name="string",
enabled=False,
finding_type_id="string",
description="string",
integration_ids=["string"])
const zeroTrustCasbPolicyResource = new cloudflare.ZeroTrustCasbPolicy("zeroTrustCasbPolicyResource", {
accountId: "string",
actions: {
remediationTypes: [{
remediationTypeId: "string",
}],
webhookConfigs: [{
webhookConfigId: "string",
}],
},
appliesToAllIntegrations: false,
displayName: "string",
enabled: false,
findingTypeId: "string",
description: "string",
integrationIds: ["string"],
});
type: cloudflare:ZeroTrustCasbPolicy
properties:
accountId: string
actions:
remediationTypes:
- remediationTypeId: string
webhookConfigs:
- webhookConfigId: string
appliesToAllIntegrations: false
description: string
displayName: string
enabled: false
findingTypeId: string
integrationIds:
- string
ZeroTrustCasbPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ZeroTrustCasbPolicy resource accepts the following input properties:
- Account
Id string - Actions
Zero
Trust Casb Policy Actions - Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- Applies
To boolAll Integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- Display
Name string - Display name for the policy configuration.
- Enabled bool
- Boolean specifying if the policy is enabled or disabled.
- Finding
Type stringId - The finding type this policy is associated with. All remediation actions must match this finding type.
- Description string
- Optional description of what this policy does.
- Integration
Ids List<string> - The integrations this policy applies to. Required when appliestoall_integrations is false.
- Account
Id string - Actions
Zero
Trust Casb Policy Actions Args - Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- Applies
To boolAll Integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- Display
Name string - Display name for the policy configuration.
- Enabled bool
- Boolean specifying if the policy is enabled or disabled.
- Finding
Type stringId - The finding type this policy is associated with. All remediation actions must match this finding type.
- Description string
- Optional description of what this policy does.
- Integration
Ids []string - The integrations this policy applies to. Required when appliestoall_integrations is false.
- account_
id string - actions object
- Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- applies_
to_ boolall_ integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- display_
name string - Display name for the policy configuration.
- enabled bool
- Boolean specifying if the policy is enabled or disabled.
- finding_
type_ stringid - The finding type this policy is associated with. All remediation actions must match this finding type.
- description string
- Optional description of what this policy does.
- integration_
ids list(string) - The integrations this policy applies to. Required when appliestoall_integrations is false.
- account
Id String - actions
Zero
Trust Casb Policy Actions - Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- applies
To BooleanAll Integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- display
Name String - Display name for the policy configuration.
- enabled Boolean
- Boolean specifying if the policy is enabled or disabled.
- finding
Type StringId - The finding type this policy is associated with. All remediation actions must match this finding type.
- description String
- Optional description of what this policy does.
- integration
Ids List<String> - The integrations this policy applies to. Required when appliestoall_integrations is false.
- account
Id string - actions
Zero
Trust Casb Policy Actions - Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- applies
To booleanAll Integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- display
Name string - Display name for the policy configuration.
- enabled boolean
- Boolean specifying if the policy is enabled or disabled.
- finding
Type stringId - The finding type this policy is associated with. All remediation actions must match this finding type.
- description string
- Optional description of what this policy does.
- integration
Ids string[] - The integrations this policy applies to. Required when appliestoall_integrations is false.
- account_
id str - actions
Zero
Trust Casb Policy Actions Args - Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- applies_
to_ boolall_ integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- display_
name str - Display name for the policy configuration.
- enabled bool
- Boolean specifying if the policy is enabled or disabled.
- finding_
type_ strid - The finding type this policy is associated with. All remediation actions must match this finding type.
- description str
- Optional description of what this policy does.
- integration_
ids Sequence[str] - The integrations this policy applies to. Required when appliestoall_integrations is false.
- account
Id String - actions Property Map
- Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- applies
To BooleanAll Integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- display
Name String - Display name for the policy configuration.
- enabled Boolean
- Boolean specifying if the policy is enabled or disabled.
- finding
Type StringId - The finding type this policy is associated with. All remediation actions must match this finding type.
- description String
- Optional description of what this policy does.
- integration
Ids List<String> - The integrations this policy applies to. Required when appliestoall_integrations is false.
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustCasbPolicy resource produces the following output properties:
- Created
At string - Timestamp when the policy was created.
- Disabled
At string - Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- Updated
At string - Timestamp when the policy was last updated.
- Created
At string - Timestamp when the policy was created.
- Disabled
At string - Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- Updated
At string - Timestamp when the policy was last updated.
- created_
at string - Timestamp when the policy was created.
- disabled_
at string - Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- updated_
at string - Timestamp when the policy was last updated.
- created
At String - Timestamp when the policy was created.
- disabled
At String - Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- updated
At String - Timestamp when the policy was last updated.
- created
At string - Timestamp when the policy was created.
- disabled
At string - Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- updated
At string - Timestamp when the policy was last updated.
- created_
at str - Timestamp when the policy was created.
- disabled_
at str - Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
- id str
- The provider-assigned unique ID for this managed resource.
- 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.
- updated_
at str - Timestamp when the policy was last updated.
- created
At String - Timestamp when the policy was created.
- disabled
At String - Timestamp when the policy was disabled. Omitted from the response when the policy is enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- updated
At String - Timestamp when the policy was last updated.
Look up Existing ZeroTrustCasbPolicy Resource
Get an existing ZeroTrustCasbPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ZeroTrustCasbPolicyState, opts?: CustomResourceOptions): ZeroTrustCasbPolicy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
actions: Optional[ZeroTrustCasbPolicyActionsArgs] = None,
applies_to_all_integrations: Optional[bool] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
disabled_at: Optional[str] = None,
display_name: Optional[str] = None,
enabled: Optional[bool] = None,
finding_type_id: Optional[str] = None,
integration_ids: Optional[Sequence[str]] = None,
last_triggered_at: Optional[str] = None,
updated_at: Optional[str] = None) -> ZeroTrustCasbPolicyfunc GetZeroTrustCasbPolicy(ctx *Context, name string, id IDInput, state *ZeroTrustCasbPolicyState, opts ...ResourceOption) (*ZeroTrustCasbPolicy, error)public static ZeroTrustCasbPolicy Get(string name, Input<string> id, ZeroTrustCasbPolicyState? state, CustomResourceOptions? opts = null)public static ZeroTrustCasbPolicy get(String name, Output<String> id, ZeroTrustCasbPolicyState state, CustomResourceOptions options)resources: _: type: cloudflare:ZeroTrustCasbPolicy get: id: ${id}import {
to = cloudflare_zero_trust_casb_policy.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - Actions
Zero
Trust Casb Policy Actions - Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- Applies
To boolAll Integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- Created
At string - Timestamp when the policy was created.
- Description string
- Optional description of what this policy does.
- 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.
- Enabled bool
- Boolean specifying if the policy is enabled or disabled.
- Finding
Type stringId - The finding type this policy is associated with. All remediation actions must match this finding type.
- Integration
Ids List<string> - The integrations this policy applies to. Required when appliestoall_integrations is false.
- 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.
- Updated
At string - Timestamp when the policy was last updated.
- Account
Id string - Actions
Zero
Trust Casb Policy Actions Args - Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- Applies
To boolAll Integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- Created
At string - Timestamp when the policy was created.
- Description string
- Optional description of what this policy does.
- 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.
- Enabled bool
- Boolean specifying if the policy is enabled or disabled.
- Finding
Type stringId - The finding type this policy is associated with. All remediation actions must match this finding type.
- Integration
Ids []string - The integrations this policy applies to. Required when appliestoall_integrations is false.
- 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.
- Updated
At string - Timestamp when the policy was last updated.
- account_
id string - actions object
- Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- applies_
to_ boolall_ integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- created_
at string - Timestamp when the policy was created.
- description string
- Optional description of what this policy does.
- 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.
- enabled bool
- Boolean specifying if the policy is enabled or disabled.
- finding_
type_ stringid - The finding type this policy is associated with. All remediation actions must match this finding type.
- integration_
ids list(string) - The integrations this policy applies to. Required when appliestoall_integrations is false.
- 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.
- updated_
at string - Timestamp when the policy was last updated.
- account
Id String - actions
Zero
Trust Casb Policy Actions - Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- applies
To BooleanAll Integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- created
At String - Timestamp when the policy was created.
- description String
- Optional description of what this policy does.
- 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.
- enabled Boolean
- Boolean specifying if the policy is enabled or disabled.
- finding
Type StringId - The finding type this policy is associated with. All remediation actions must match this finding type.
- integration
Ids List<String> - The integrations this policy applies to. Required when appliestoall_integrations is false.
- 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.
- updated
At String - Timestamp when the policy was last updated.
- account
Id string - actions
Zero
Trust Casb Policy Actions - Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- applies
To booleanAll Integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- created
At string - Timestamp when the policy was created.
- description string
- Optional description of what this policy does.
- 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.
- enabled boolean
- Boolean specifying if the policy is enabled or disabled.
- finding
Type stringId - The finding type this policy is associated with. All remediation actions must match this finding type.
- integration
Ids string[] - The integrations this policy applies to. Required when appliestoall_integrations is false.
- 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.
- updated
At string - Timestamp when the policy was last updated.
- account_
id str - actions
Zero
Trust Casb Policy Actions Args - Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- applies_
to_ boolall_ integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- created_
at str - Timestamp when the policy was created.
- description str
- Optional description of what this policy does.
- 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.
- enabled bool
- Boolean specifying if the policy is enabled or disabled.
- finding_
type_ strid - The finding type this policy is associated with. All remediation actions must match this finding type.
- integration_
ids Sequence[str] - The integrations this policy applies to. Required when appliestoall_integrations is false.
- 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.
- updated_
at str - Timestamp when the policy was last updated.
- account
Id String - actions Property Map
- Actions to execute when this policy is triggered, grouped by action type. A policy must contain at least one action across all groups and may include at most one remediation.
- applies
To BooleanAll Integrations - When true, the policy applies to all integrations for the account. When false, integrationIds must be provided.
- created
At String - Timestamp when the policy was created.
- description String
- Optional description of what this policy does.
- 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.
- enabled Boolean
- Boolean specifying if the policy is enabled or disabled.
- finding
Type StringId - The finding type this policy is associated with. All remediation actions must match this finding type.
- integration
Ids List<String> - The integrations this policy applies to. Required when appliestoall_integrations is false.
- 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.
- updated
At String - Timestamp when the policy was last updated.
Supporting Types
ZeroTrustCasbPolicyActions, ZeroTrustCasbPolicyActionsArgs
- Remediation
Types List<ZeroTrust Casb Policy Actions Remediation Type> - Remediation actions to execute (at most one).
- Webhook
Configs List<ZeroTrust Casb Policy Actions Webhook Config> - Webhook actions to execute.
- Remediation
Types []ZeroTrust Casb Policy Actions Remediation Type - Remediation actions to execute (at most one).
- Webhook
Configs []ZeroTrust Casb Policy Actions Webhook Config - Webhook actions to execute.
- remediation_
types list(object) - Remediation actions to execute (at most one).
- webhook_
configs list(object) - Webhook actions to execute.
- remediation
Types List<ZeroTrust Casb Policy Actions Remediation Type> - Remediation actions to execute (at most one).
- webhook
Configs List<ZeroTrust Casb Policy Actions Webhook Config> - Webhook actions to execute.
- remediation
Types ZeroTrust Casb Policy Actions Remediation Type[] - Remediation actions to execute (at most one).
- webhook
Configs ZeroTrust Casb Policy Actions Webhook Config[] - Webhook actions to execute.
- remediation_
types Sequence[ZeroTrust Casb Policy Actions Remediation Type] - Remediation actions to execute (at most one).
- webhook_
configs Sequence[ZeroTrust Casb Policy Actions Webhook Config] - Webhook actions to execute.
- remediation
Types List<Property Map> - Remediation actions to execute (at most one).
- webhook
Configs List<Property Map> - Webhook actions to execute.
ZeroTrustCasbPolicyActionsRemediationType, ZeroTrustCasbPolicyActionsRemediationTypeArgs
- Remediation
Type stringId - The ID of the remediation type to execute.
- Remediation
Type stringId - The ID of the remediation type to execute.
- remediation_
type_ stringid - The ID of the remediation type to execute.
- remediation
Type StringId - The ID of the remediation type to execute.
- remediation
Type stringId - The ID of the remediation type to execute.
- remediation_
type_ strid - The ID of the remediation type to execute.
- remediation
Type StringId - The ID of the remediation type to execute.
ZeroTrustCasbPolicyActionsWebhookConfig, ZeroTrustCasbPolicyActionsWebhookConfigArgs
- Webhook
Config stringId - The ID of the webhook configuration to use.
- Webhook
Config stringId - The ID of the webhook configuration to use.
- webhook_
config_ stringid - The ID of the webhook configuration to use.
- webhook
Config StringId - The ID of the webhook configuration to use.
- webhook
Config stringId - The ID of the webhook configuration to use.
- webhook_
config_ strid - The ID of the webhook configuration to use.
- webhook
Config StringId - The ID of the webhook configuration to use.
Import
$ pulumi import cloudflare:index/zeroTrustCasbPolicy:ZeroTrustCasbPolicy example '<account_id>/<policy_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Wednesday, Oct 21, 2026 by Pulumi