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 exampleZeroTrustCasbWebhook = new cloudflare.ZeroTrustCasbWebhook("example_zero_trust_casb_webhook", {
accountId: "46148281d8a93d002ef242d8b0d5f9f6",
authenticationType: "HMAC-Signing",
destinationUrl: "https://example.com/webhook",
label: "Send to Slack",
headers: [{
key: "X-Custom-Header",
value: "value",
}],
signingSecret: "my-secret-key",
status: "enabled",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_casb_webhook = cloudflare.ZeroTrustCasbWebhook("example_zero_trust_casb_webhook",
account_id="46148281d8a93d002ef242d8b0d5f9f6",
authentication_type="HMAC-Signing",
destination_url="https://example.com/webhook",
label="Send to Slack",
headers=[{
"key": "X-Custom-Header",
"value": "value",
}],
signing_secret="my-secret-key",
status="enabled")
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.NewZeroTrustCasbWebhook(ctx, "example_zero_trust_casb_webhook", &cloudflare.ZeroTrustCasbWebhookArgs{
AccountId: pulumi.String("46148281d8a93d002ef242d8b0d5f9f6"),
AuthenticationType: pulumi.String("HMAC-Signing"),
DestinationUrl: pulumi.String("https://example.com/webhook"),
Label: pulumi.String("Send to Slack"),
Headers: cloudflare.ZeroTrustCasbWebhookHeaderArray{
&cloudflare.ZeroTrustCasbWebhookHeaderArgs{
Key: pulumi.String("X-Custom-Header"),
Value: pulumi.String("value"),
},
},
SigningSecret: pulumi.String("my-secret-key"),
Status: pulumi.String("enabled"),
})
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 exampleZeroTrustCasbWebhook = new Cloudflare.ZeroTrustCasbWebhook("example_zero_trust_casb_webhook", new()
{
AccountId = "46148281d8a93d002ef242d8b0d5f9f6",
AuthenticationType = "HMAC-Signing",
DestinationUrl = "https://example.com/webhook",
Label = "Send to Slack",
Headers = new[]
{
new Cloudflare.Inputs.ZeroTrustCasbWebhookHeaderArgs
{
Key = "X-Custom-Header",
Value = "value",
},
},
SigningSecret = "my-secret-key",
Status = "enabled",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustCasbWebhook;
import com.pulumi.cloudflare.ZeroTrustCasbWebhookArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustCasbWebhookHeaderArgs;
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 exampleZeroTrustCasbWebhook = new ZeroTrustCasbWebhook("exampleZeroTrustCasbWebhook", ZeroTrustCasbWebhookArgs.builder()
.accountId("46148281d8a93d002ef242d8b0d5f9f6")
.authenticationType("HMAC-Signing")
.destinationUrl("https://example.com/webhook")
.label("Send to Slack")
.headers(ZeroTrustCasbWebhookHeaderArgs.builder()
.key("X-Custom-Header")
.value("value")
.build())
.signingSecret("my-secret-key")
.status("enabled")
.build());
}
}
resources:
exampleZeroTrustCasbWebhook:
type: cloudflare:ZeroTrustCasbWebhook
name: example_zero_trust_casb_webhook
properties:
accountId: 46148281d8a93d002ef242d8b0d5f9f6
authenticationType: HMAC-Signing
destinationUrl: https://example.com/webhook
label: Send to Slack
headers:
- key: X-Custom-Header
value: value
signingSecret: my-secret-key
status: enabled
terraform {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
resource "cloudflare_zero_trust_casb_webhook" "example_zero_trust_casb_webhook" {
lifecycle {
create_before_destroy = true
}
account_id = "46148281d8a93d002ef242d8b0d5f9f6"
authentication_type = "HMAC-Signing"
destination_url = "https://example.com/webhook"
label = "Send to Slack"
headers {
key = "X-Custom-Header"
value = "value"
}
signing_secret = "my-secret-key"
status = "enabled"
}
Create ZeroTrustCasbWebhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustCasbWebhook(name: string, args: ZeroTrustCasbWebhookArgs, opts?: CustomResourceOptions);@overload
def ZeroTrustCasbWebhook(resource_name: str,
args: ZeroTrustCasbWebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustCasbWebhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
authentication_type: Optional[str] = None,
destination_url: Optional[str] = None,
label: Optional[str] = None,
headers: Optional[Sequence[ZeroTrustCasbWebhookHeaderArgs]] = None,
signing_secret: Optional[str] = None,
status: Optional[str] = None)func NewZeroTrustCasbWebhook(ctx *Context, name string, args ZeroTrustCasbWebhookArgs, opts ...ResourceOption) (*ZeroTrustCasbWebhook, error)public ZeroTrustCasbWebhook(string name, ZeroTrustCasbWebhookArgs args, CustomResourceOptions? opts = null)
public ZeroTrustCasbWebhook(String name, ZeroTrustCasbWebhookArgs args)
public ZeroTrustCasbWebhook(String name, ZeroTrustCasbWebhookArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustCasbWebhook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_zero_trust_casb_webhook" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args ZeroTrustCasbWebhookArgs
- 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 ZeroTrustCasbWebhookArgs
- 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 ZeroTrustCasbWebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustCasbWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustCasbWebhookArgs
- 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 zeroTrustCasbWebhookResource = new Cloudflare.ZeroTrustCasbWebhook("zeroTrustCasbWebhookResource", new()
{
AccountId = "string",
AuthenticationType = "string",
DestinationUrl = "string",
Label = "string",
Headers = new[]
{
new Cloudflare.Inputs.ZeroTrustCasbWebhookHeaderArgs
{
Key = "string",
Value = "string",
},
},
SigningSecret = "string",
Status = "string",
});
example, err := cloudflare.NewZeroTrustCasbWebhook(ctx, "zeroTrustCasbWebhookResource", &cloudflare.ZeroTrustCasbWebhookArgs{
AccountId: pulumi.String("string"),
AuthenticationType: pulumi.String("string"),
DestinationUrl: pulumi.String("string"),
Label: pulumi.String("string"),
Headers: cloudflare.ZeroTrustCasbWebhookHeaderArray{
&cloudflare.ZeroTrustCasbWebhookHeaderArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
SigningSecret: pulumi.String("string"),
Status: pulumi.String("string"),
})
resource "cloudflare_zero_trust_casb_webhook" "zeroTrustCasbWebhookResource" {
lifecycle {
create_before_destroy = true
}
account_id = "string"
authentication_type = "string"
destination_url = "string"
label = "string"
headers {
key = "string"
value = "string"
}
signing_secret = "string"
status = "string"
}
var zeroTrustCasbWebhookResource = new ZeroTrustCasbWebhook("zeroTrustCasbWebhookResource", ZeroTrustCasbWebhookArgs.builder()
.accountId("string")
.authenticationType("string")
.destinationUrl("string")
.label("string")
.headers(ZeroTrustCasbWebhookHeaderArgs.builder()
.key("string")
.value("string")
.build())
.signingSecret("string")
.status("string")
.build());
zero_trust_casb_webhook_resource = cloudflare.ZeroTrustCasbWebhook("zeroTrustCasbWebhookResource",
account_id="string",
authentication_type="string",
destination_url="string",
label="string",
headers=[{
"key": "string",
"value": "string",
}],
signing_secret="string",
status="string")
const zeroTrustCasbWebhookResource = new cloudflare.ZeroTrustCasbWebhook("zeroTrustCasbWebhookResource", {
accountId: "string",
authenticationType: "string",
destinationUrl: "string",
label: "string",
headers: [{
key: "string",
value: "string",
}],
signingSecret: "string",
status: "string",
});
type: cloudflare:ZeroTrustCasbWebhook
properties:
accountId: string
authenticationType: string
destinationUrl: string
headers:
- key: string
value: string
label: string
signingSecret: string
status: string
ZeroTrustCasbWebhook 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 ZeroTrustCasbWebhook resource accepts the following input properties:
- Account
Id string - Authentication
Type string - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- Destination
Url string - Target URL for the webhook configuration. Where resulting data will be sent.
- Label string
- Account-specified display label for the webhook configuration.
- Headers
List<Zero
Trust Casb Webhook Header> - List of custom headers to include in webhook requests.
- Signing
Secret string - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- Status string
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
- Account
Id string - Authentication
Type string - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- Destination
Url string - Target URL for the webhook configuration. Where resulting data will be sent.
- Label string
- Account-specified display label for the webhook configuration.
- Headers
[]Zero
Trust Casb Webhook Header Args - List of custom headers to include in webhook requests.
- Signing
Secret string - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- Status string
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
- account_
id string - authentication_
type string - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- destination_
url string - Target URL for the webhook configuration. Where resulting data will be sent.
- label string
- Account-specified display label for the webhook configuration.
- headers list(object)
- List of custom headers to include in webhook requests.
- signing_
secret string - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- status string
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
- account
Id String - authentication
Type String - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- destination
Url String - Target URL for the webhook configuration. Where resulting data will be sent.
- label String
- Account-specified display label for the webhook configuration.
- headers
List<Zero
Trust Casb Webhook Header> - List of custom headers to include in webhook requests.
- signing
Secret String - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- status String
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
- account
Id string - authentication
Type string - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- destination
Url string - Target URL for the webhook configuration. Where resulting data will be sent.
- label string
- Account-specified display label for the webhook configuration.
- headers
Zero
Trust Casb Webhook Header[] - List of custom headers to include in webhook requests.
- signing
Secret string - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- status string
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
- account_
id str - authentication_
type str - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- destination_
url str - Target URL for the webhook configuration. Where resulting data will be sent.
- label str
- Account-specified display label for the webhook configuration.
- headers
Sequence[Zero
Trust Casb Webhook Header Args] - List of custom headers to include in webhook requests.
- signing_
secret str - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- status str
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
- account
Id String - authentication
Type String - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- destination
Url String - Target URL for the webhook configuration. Where resulting data will be sent.
- label String
- Account-specified display label for the webhook configuration.
- headers List<Property Map>
- List of custom headers to include in webhook requests.
- signing
Secret String - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- status String
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustCasbWebhook resource produces the following output properties:
- created_
at string - Timestamp when the webhook configuration was created.
- id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string - Timestamp when the webhook configuration was last updated.
- version number
- Version number of the configuration.
- created_
at str - Timestamp when the webhook configuration was created.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - Timestamp when the webhook configuration was last updated.
- version int
- Version number of the configuration.
Look up Existing ZeroTrustCasbWebhook Resource
Get an existing ZeroTrustCasbWebhook 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?: ZeroTrustCasbWebhookState, opts?: CustomResourceOptions): ZeroTrustCasbWebhook@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
authentication_type: Optional[str] = None,
created_at: Optional[str] = None,
destination_url: Optional[str] = None,
headers: Optional[Sequence[ZeroTrustCasbWebhookHeaderArgs]] = None,
label: Optional[str] = None,
signing_secret: Optional[str] = None,
status: Optional[str] = None,
updated_at: Optional[str] = None,
version: Optional[int] = None) -> ZeroTrustCasbWebhookfunc GetZeroTrustCasbWebhook(ctx *Context, name string, id IDInput, state *ZeroTrustCasbWebhookState, opts ...ResourceOption) (*ZeroTrustCasbWebhook, error)public static ZeroTrustCasbWebhook Get(string name, Input<string> id, ZeroTrustCasbWebhookState? state, CustomResourceOptions? opts = null)public static ZeroTrustCasbWebhook get(String name, Output<String> id, ZeroTrustCasbWebhookState state, CustomResourceOptions options)resources: _: type: cloudflare:ZeroTrustCasbWebhook get: id: ${id}import {
to = cloudflare_zero_trust_casb_webhook.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 - Authentication
Type string - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- Created
At string - Timestamp when the webhook configuration was created.
- Destination
Url string - Target URL for the webhook configuration. Where resulting data will be sent.
- Headers
List<Zero
Trust Casb Webhook Header> - List of custom headers to include in webhook requests.
- Label string
- Account-specified display label for the webhook configuration.
- Signing
Secret string - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- Status string
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
- Updated
At string - Timestamp when the webhook configuration was last updated.
- Version int
- Version number of the configuration.
- Account
Id string - Authentication
Type string - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- Created
At string - Timestamp when the webhook configuration was created.
- Destination
Url string - Target URL for the webhook configuration. Where resulting data will be sent.
- Headers
[]Zero
Trust Casb Webhook Header Args - List of custom headers to include in webhook requests.
- Label string
- Account-specified display label for the webhook configuration.
- Signing
Secret string - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- Status string
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
- Updated
At string - Timestamp when the webhook configuration was last updated.
- Version int
- Version number of the configuration.
- account_
id string - authentication_
type string - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- created_
at string - Timestamp when the webhook configuration was created.
- destination_
url string - Target URL for the webhook configuration. Where resulting data will be sent.
- headers list(object)
- List of custom headers to include in webhook requests.
- label string
- Account-specified display label for the webhook configuration.
- signing_
secret string - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- status string
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
- updated_
at string - Timestamp when the webhook configuration was last updated.
- version number
- Version number of the configuration.
- account
Id String - authentication
Type String - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- created
At String - Timestamp when the webhook configuration was created.
- destination
Url String - Target URL for the webhook configuration. Where resulting data will be sent.
- headers
List<Zero
Trust Casb Webhook Header> - List of custom headers to include in webhook requests.
- label String
- Account-specified display label for the webhook configuration.
- signing
Secret String - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- status String
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
- updated
At String - Timestamp when the webhook configuration was last updated.
- version Integer
- Version number of the configuration.
- account
Id string - authentication
Type string - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- created
At string - Timestamp when the webhook configuration was created.
- destination
Url string - Target URL for the webhook configuration. Where resulting data will be sent.
- headers
Zero
Trust Casb Webhook Header[] - List of custom headers to include in webhook requests.
- label string
- Account-specified display label for the webhook configuration.
- signing
Secret string - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- status string
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
- updated
At string - Timestamp when the webhook configuration was last updated.
- version number
- Version number of the configuration.
- account_
id str - authentication_
type str - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- created_
at str - Timestamp when the webhook configuration was created.
- destination_
url str - Target URL for the webhook configuration. Where resulting data will be sent.
- headers
Sequence[Zero
Trust Casb Webhook Header Args] - List of custom headers to include in webhook requests.
- label str
- Account-specified display label for the webhook configuration.
- signing_
secret str - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- status str
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
- updated_
at str - Timestamp when the webhook configuration was last updated.
- version int
- Version number of the configuration.
- account
Id String - authentication
Type String - Type of authentication used for the webhook. Available values: "Basic Auth", "None", "Bearer Auth", "Static Headers", "HMAC-Signing".
- created
At String - Timestamp when the webhook configuration was created.
- destination
Url String - Target URL for the webhook configuration. Where resulting data will be sent.
- headers List<Property Map>
- List of custom headers to include in webhook requests.
- label String
- Account-specified display label for the webhook configuration.
- signing
Secret String - Secret key used for HMAC signing when authenticationType is "HMAC-Signing".
- status String
- Status of the webhook configuration. Defaults to enabled when omitted. Available values: "enabled", "disabled".
- updated
At String - Timestamp when the webhook configuration was last updated.
- version Number
- Version number of the configuration.
Supporting Types
ZeroTrustCasbWebhookHeader, ZeroTrustCasbWebhookHeaderArgs
Import
$ pulumi import cloudflare:index/zeroTrustCasbWebhook:ZeroTrustCasbWebhook example '<account_id>/<webhook_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