1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ContentScanning
Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi

cloudflare.ContentScanning

Start a Neo task
Explain and create a cloudflare.ContentScanning resource
cloudflare logo
Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleContentScanning = new cloudflare.ContentScanning("example_content_scanning", {
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        value: "enabled",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_content_scanning = cloudflare.ContentScanning("example_content_scanning",
        zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        value="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.NewContentScanning(ctx, "example_content_scanning", &cloudflare.ContentScanningArgs{
    			ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			Value:  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 exampleContentScanning = new Cloudflare.ContentScanning("example_content_scanning", new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            Value = "enabled",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.ContentScanning;
    import com.pulumi.cloudflare.ContentScanningArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 exampleContentScanning = new ContentScanning("exampleContentScanning", ContentScanningArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .value("enabled")
                .build());
    
        }
    }
    
    resources:
      exampleContentScanning:
        type: cloudflare:ContentScanning
        name: example_content_scanning
        properties:
          zoneId: 023e105f4ecef8ad9ca31a8372d0c353
          value: enabled
    

    Create ContentScanning Resource

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

    Constructor syntax

    new ContentScanning(name: string, args: ContentScanningArgs, opts?: CustomResourceOptions);
    @overload
    def ContentScanning(resource_name: str,
                        args: ContentScanningArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ContentScanning(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        value: Optional[str] = None,
                        zone_id: Optional[str] = None)
    func NewContentScanning(ctx *Context, name string, args ContentScanningArgs, opts ...ResourceOption) (*ContentScanning, error)
    public ContentScanning(string name, ContentScanningArgs args, CustomResourceOptions? opts = null)
    public ContentScanning(String name, ContentScanningArgs args)
    public ContentScanning(String name, ContentScanningArgs args, CustomResourceOptions options)
    
    type: cloudflare:ContentScanning
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ContentScanningArgs
    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 ContentScanningArgs
    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 ContentScanningArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContentScanningArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContentScanningArgs
    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 contentScanningResource = new Cloudflare.ContentScanning("contentScanningResource", new()
    {
        Value = "string",
        ZoneId = "string",
    });
    
    example, err := cloudflare.NewContentScanning(ctx, "contentScanningResource", &cloudflare.ContentScanningArgs{
    	Value:  pulumi.String("string"),
    	ZoneId: pulumi.String("string"),
    })
    
    var contentScanningResource = new ContentScanning("contentScanningResource", ContentScanningArgs.builder()
        .value("string")
        .zoneId("string")
        .build());
    
    content_scanning_resource = cloudflare.ContentScanning("contentScanningResource",
        value="string",
        zone_id="string")
    
    const contentScanningResource = new cloudflare.ContentScanning("contentScanningResource", {
        value: "string",
        zoneId: "string",
    });
    
    type: cloudflare:ContentScanning
    properties:
        value: string
        zoneId: string
    

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

    Value string
    The status value for Content Scanning. Available values: "enabled", "disabled".
    ZoneId string
    Defines an identifier.
    Value string
    The status value for Content Scanning. Available values: "enabled", "disabled".
    ZoneId string
    Defines an identifier.
    value String
    The status value for Content Scanning. Available values: "enabled", "disabled".
    zoneId String
    Defines an identifier.
    value string
    The status value for Content Scanning. Available values: "enabled", "disabled".
    zoneId string
    Defines an identifier.
    value str
    The status value for Content Scanning. Available values: "enabled", "disabled".
    zone_id str
    Defines an identifier.
    value String
    The status value for Content Scanning. Available values: "enabled", "disabled".
    zoneId String
    Defines an identifier.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Modified string
    Defines the last modification date (ISO 8601) of the Content Scanning status.
    Id string
    The provider-assigned unique ID for this managed resource.
    Modified string
    Defines the last modification date (ISO 8601) of the Content Scanning status.
    id String
    The provider-assigned unique ID for this managed resource.
    modified String
    Defines the last modification date (ISO 8601) of the Content Scanning status.
    id string
    The provider-assigned unique ID for this managed resource.
    modified string
    Defines the last modification date (ISO 8601) of the Content Scanning status.
    id str
    The provider-assigned unique ID for this managed resource.
    modified str
    Defines the last modification date (ISO 8601) of the Content Scanning status.
    id String
    The provider-assigned unique ID for this managed resource.
    modified String
    Defines the last modification date (ISO 8601) of the Content Scanning status.

    Look up Existing ContentScanning Resource

    Get an existing ContentScanning 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?: ContentScanningState, opts?: CustomResourceOptions): ContentScanning
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            modified: Optional[str] = None,
            value: Optional[str] = None,
            zone_id: Optional[str] = None) -> ContentScanning
    func GetContentScanning(ctx *Context, name string, id IDInput, state *ContentScanningState, opts ...ResourceOption) (*ContentScanning, error)
    public static ContentScanning Get(string name, Input<string> id, ContentScanningState? state, CustomResourceOptions? opts = null)
    public static ContentScanning get(String name, Output<String> id, ContentScanningState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:ContentScanning    get:      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:
    Modified string
    Defines the last modification date (ISO 8601) of the Content Scanning status.
    Value string
    The status value for Content Scanning. Available values: "enabled", "disabled".
    ZoneId string
    Defines an identifier.
    Modified string
    Defines the last modification date (ISO 8601) of the Content Scanning status.
    Value string
    The status value for Content Scanning. Available values: "enabled", "disabled".
    ZoneId string
    Defines an identifier.
    modified String
    Defines the last modification date (ISO 8601) of the Content Scanning status.
    value String
    The status value for Content Scanning. Available values: "enabled", "disabled".
    zoneId String
    Defines an identifier.
    modified string
    Defines the last modification date (ISO 8601) of the Content Scanning status.
    value string
    The status value for Content Scanning. Available values: "enabled", "disabled".
    zoneId string
    Defines an identifier.
    modified str
    Defines the last modification date (ISO 8601) of the Content Scanning status.
    value str
    The status value for Content Scanning. Available values: "enabled", "disabled".
    zone_id str
    Defines an identifier.
    modified String
    Defines the last modification date (ISO 8601) of the Content Scanning status.
    value String
    The status value for Content Scanning. Available values: "enabled", "disabled".
    zoneId String
    Defines an identifier.

    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 v6.11.0 published on Friday, Oct 31, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate