1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. CtAlerting
Viewing docs for Cloudflare v6.20.0
published on Tuesday, Aug 25, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.20.0
published on Tuesday, Aug 25, 2026 by Pulumi

    Accepted Permissions

    • SSL and Certificates Read
    • SSL and Certificates Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleCtAlerting = new cloudflare.CtAlerting("example_ct_alerting", {
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        enabled: true,
        emails: [
            "security@example.com",
            "admin@example.com",
        ],
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_ct_alerting = cloudflare.CtAlerting("example_ct_alerting",
        zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        enabled=True,
        emails=[
            "security@example.com",
            "admin@example.com",
        ])
    
    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.NewCtAlerting(ctx, "example_ct_alerting", &cloudflare.CtAlertingArgs{
    			ZoneId:  pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			Enabled: pulumi.Bool(true),
    			Emails: pulumi.StringArray{
    				pulumi.String("security@example.com"),
    				pulumi.String("admin@example.com"),
    			},
    		})
    		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 exampleCtAlerting = new Cloudflare.CtAlerting("example_ct_alerting", new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            Enabled = true,
            Emails = new[]
            {
                "security@example.com",
                "admin@example.com",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CtAlerting;
    import com.pulumi.cloudflare.CtAlertingArgs;
    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 exampleCtAlerting = new CtAlerting("exampleCtAlerting", CtAlertingArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .enabled(true)
                .emails(            
                    "security@example.com",
                    "admin@example.com")
                .build());
    
        }
    }
    
    resources:
      exampleCtAlerting:
        type: cloudflare:CtAlerting
        name: example_ct_alerting
        properties:
          zoneId: 023e105f4ecef8ad9ca31a8372d0c353
          enabled: true
          emails:
            - security@example.com
            - admin@example.com
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    resource "cloudflare_ctalerting" "example_ct_alerting" {
      zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
      enabled = true
      emails  = ["security@example.com", "admin@example.com"]
    }
    

    Create CtAlerting Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CtAlerting(name: string, args: CtAlertingArgs, opts?: CustomResourceOptions);
    @overload
    def CtAlerting(resource_name: str,
                   args: CtAlertingArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def CtAlerting(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   enabled: Optional[bool] = None,
                   zone_id: Optional[str] = None,
                   emails: Optional[Sequence[str]] = None)
    func NewCtAlerting(ctx *Context, name string, args CtAlertingArgs, opts ...ResourceOption) (*CtAlerting, error)
    public CtAlerting(string name, CtAlertingArgs args, CustomResourceOptions? opts = null)
    public CtAlerting(String name, CtAlertingArgs args)
    public CtAlerting(String name, CtAlertingArgs args, CustomResourceOptions options)
    
    type: cloudflare:CtAlerting
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "cloudflare_ct_alerting" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CtAlertingArgs
    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 CtAlertingArgs
    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 CtAlertingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CtAlertingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CtAlertingArgs
    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 ctAlertingResource = new Cloudflare.CtAlerting("ctAlertingResource", new()
    {
        Enabled = false,
        ZoneId = "string",
        Emails = new[]
        {
            "string",
        },
    });
    
    example, err := cloudflare.NewCtAlerting(ctx, "ctAlertingResource", &cloudflare.CtAlertingArgs{
    	Enabled: pulumi.Bool(false),
    	ZoneId:  pulumi.String("string"),
    	Emails: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "cloudflare_ct_alerting" "ctAlertingResource" {
      lifecycle {
        create_before_destroy = true
      }
      enabled = false
      zone_id = "string"
      emails  = ["string"]
    }
    
    var ctAlertingResource = new CtAlerting("ctAlertingResource", CtAlertingArgs.builder()
        .enabled(false)
        .zoneId("string")
        .emails("string")
        .build());
    
    ct_alerting_resource = cloudflare.CtAlerting("ctAlertingResource",
        enabled=False,
        zone_id="string",
        emails=["string"])
    
    const ctAlertingResource = new cloudflare.CtAlerting("ctAlertingResource", {
        enabled: false,
        zoneId: "string",
        emails: ["string"],
    });
    
    type: cloudflare:CtAlerting
    properties:
        emails:
            - string
        enabled: false
        zoneId: string
    

    CtAlerting 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 CtAlerting resource accepts the following input properties:

    Enabled bool
    Whether CT alerting is enabled for the zone.
    ZoneId string
    Identifier.
    Emails List<string>
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
    Enabled bool
    Whether CT alerting is enabled for the zone.
    ZoneId string
    Identifier.
    Emails []string
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
    enabled bool
    Whether CT alerting is enabled for the zone.
    zone_id string
    Identifier.
    emails list(string)
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
    enabled Boolean
    Whether CT alerting is enabled for the zone.
    zoneId String
    Identifier.
    emails List<String>
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
    enabled boolean
    Whether CT alerting is enabled for the zone.
    zoneId string
    Identifier.
    emails string[]
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
    enabled bool
    Whether CT alerting is enabled for the zone.
    zone_id str
    Identifier.
    emails Sequence[str]
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
    enabled Boolean
    Whether CT alerting is enabled for the zone.
    zoneId String
    Identifier.
    emails List<String>
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CtAlerting resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CtAlerting Resource

    Get an existing CtAlerting 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?: CtAlertingState, opts?: CustomResourceOptions): CtAlerting
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            emails: Optional[Sequence[str]] = None,
            enabled: Optional[bool] = None,
            zone_id: Optional[str] = None) -> CtAlerting
    func GetCtAlerting(ctx *Context, name string, id IDInput, state *CtAlertingState, opts ...ResourceOption) (*CtAlerting, error)
    public static CtAlerting Get(string name, Input<string> id, CtAlertingState? state, CustomResourceOptions? opts = null)
    public static CtAlerting get(String name, Output<String> id, CtAlertingState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:CtAlerting    get:      id: ${id}
    import {
      to = cloudflare_ct_alerting.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.
    The following state arguments are supported:
    Emails List<string>
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
    Enabled bool
    Whether CT alerting is enabled for the zone.
    ZoneId string
    Identifier.
    Emails []string
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
    Enabled bool
    Whether CT alerting is enabled for the zone.
    ZoneId string
    Identifier.
    emails list(string)
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
    enabled bool
    Whether CT alerting is enabled for the zone.
    zone_id string
    Identifier.
    emails List<String>
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
    enabled Boolean
    Whether CT alerting is enabled for the zone.
    zoneId String
    Identifier.
    emails string[]
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
    enabled boolean
    Whether CT alerting is enabled for the zone.
    zoneId string
    Identifier.
    emails Sequence[str]
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
    enabled bool
    Whether CT alerting is enabled for the zone.
    zone_id str
    Identifier.
    emails List<String>
    Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
    enabled Boolean
    Whether CT alerting is enabled for the zone.
    zoneId String
    Identifier.

    Import

    $ pulumi import cloudflare:index/ctAlerting:CtAlerting example '<zone_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 cloudflare Terraform Provider.
    cloudflare logo cloudflare logo
    Viewing docs for Cloudflare v6.20.0
    published on Tuesday, Aug 25, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial