1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. SchemaValidationOperationSettings
Cloudflare v6.4.1 published on Wednesday, Jul 16, 2025 by Pulumi

cloudflare.SchemaValidationOperationSettings

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.4.1 published on Wednesday, Jul 16, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleSchemaValidationOperationSettings = new cloudflare.SchemaValidationOperationSettings("example_schema_validation_operation_settings", {
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        operationId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
        mitigationAction: "block",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_schema_validation_operation_settings = cloudflare.SchemaValidationOperationSettings("example_schema_validation_operation_settings",
        zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        operation_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
        mitigation_action="block")
    
    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.NewSchemaValidationOperationSettings(ctx, "example_schema_validation_operation_settings", &cloudflare.SchemaValidationOperationSettingsArgs{
    			ZoneId:           pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			OperationId:      pulumi.String("f174e90a-fafe-4643-bbbc-4a0ed4fc8415"),
    			MitigationAction: pulumi.String("block"),
    		})
    		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 exampleSchemaValidationOperationSettings = new Cloudflare.SchemaValidationOperationSettings("example_schema_validation_operation_settings", new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            OperationId = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
            MitigationAction = "block",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.SchemaValidationOperationSettings;
    import com.pulumi.cloudflare.SchemaValidationOperationSettingsArgs;
    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 exampleSchemaValidationOperationSettings = new SchemaValidationOperationSettings("exampleSchemaValidationOperationSettings", SchemaValidationOperationSettingsArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .operationId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
                .mitigationAction("block")
                .build());
    
        }
    }
    
    resources:
      exampleSchemaValidationOperationSettings:
        type: cloudflare:SchemaValidationOperationSettings
        name: example_schema_validation_operation_settings
        properties:
          zoneId: 023e105f4ecef8ad9ca31a8372d0c353
          operationId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
          mitigationAction: block
    

    Create SchemaValidationOperationSettings Resource

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

    Constructor syntax

    new SchemaValidationOperationSettings(name: string, args: SchemaValidationOperationSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def SchemaValidationOperationSettings(resource_name: str,
                                          args: SchemaValidationOperationSettingsArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def SchemaValidationOperationSettings(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          mitigation_action: Optional[str] = None,
                                          operation_id: Optional[str] = None,
                                          zone_id: Optional[str] = None)
    func NewSchemaValidationOperationSettings(ctx *Context, name string, args SchemaValidationOperationSettingsArgs, opts ...ResourceOption) (*SchemaValidationOperationSettings, error)
    public SchemaValidationOperationSettings(string name, SchemaValidationOperationSettingsArgs args, CustomResourceOptions? opts = null)
    public SchemaValidationOperationSettings(String name, SchemaValidationOperationSettingsArgs args)
    public SchemaValidationOperationSettings(String name, SchemaValidationOperationSettingsArgs args, CustomResourceOptions options)
    
    type: cloudflare:SchemaValidationOperationSettings
    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 SchemaValidationOperationSettingsArgs
    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 SchemaValidationOperationSettingsArgs
    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 SchemaValidationOperationSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SchemaValidationOperationSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SchemaValidationOperationSettingsArgs
    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 schemaValidationOperationSettingsResource = new Cloudflare.SchemaValidationOperationSettings("schemaValidationOperationSettingsResource", new()
    {
        MitigationAction = "string",
        OperationId = "string",
        ZoneId = "string",
    });
    
    example, err := cloudflare.NewSchemaValidationOperationSettings(ctx, "schemaValidationOperationSettingsResource", &cloudflare.SchemaValidationOperationSettingsArgs{
    	MitigationAction: pulumi.String("string"),
    	OperationId:      pulumi.String("string"),
    	ZoneId:           pulumi.String("string"),
    })
    
    var schemaValidationOperationSettingsResource = new SchemaValidationOperationSettings("schemaValidationOperationSettingsResource", SchemaValidationOperationSettingsArgs.builder()
        .mitigationAction("string")
        .operationId("string")
        .zoneId("string")
        .build());
    
    schema_validation_operation_settings_resource = cloudflare.SchemaValidationOperationSettings("schemaValidationOperationSettingsResource",
        mitigation_action="string",
        operation_id="string",
        zone_id="string")
    
    const schemaValidationOperationSettingsResource = new cloudflare.SchemaValidationOperationSettings("schemaValidationOperationSettingsResource", {
        mitigationAction: "string",
        operationId: "string",
        zoneId: "string",
    });
    
    type: cloudflare:SchemaValidationOperationSettings
    properties:
        mitigationAction: string
        operationId: string
        zoneId: string
    

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

    MitigationAction string
    When set, this applies a mitigation action to this operation - "log" - log request when request does not conform to schema for this operation - "block" - deny access to the site when request does not conform to schema for this operation - "none" - will skip mitigation for this operation - null - clears any mitigation action Available values: "log", "block", "none".
    OperationId string
    UUID.
    ZoneId string
    Identifier.
    MitigationAction string
    When set, this applies a mitigation action to this operation - "log" - log request when request does not conform to schema for this operation - "block" - deny access to the site when request does not conform to schema for this operation - "none" - will skip mitigation for this operation - null - clears any mitigation action Available values: "log", "block", "none".
    OperationId string
    UUID.
    ZoneId string
    Identifier.
    mitigationAction String
    When set, this applies a mitigation action to this operation - "log" - log request when request does not conform to schema for this operation - "block" - deny access to the site when request does not conform to schema for this operation - "none" - will skip mitigation for this operation - null - clears any mitigation action Available values: "log", "block", "none".
    operationId String
    UUID.
    zoneId String
    Identifier.
    mitigationAction string
    When set, this applies a mitigation action to this operation - "log" - log request when request does not conform to schema for this operation - "block" - deny access to the site when request does not conform to schema for this operation - "none" - will skip mitigation for this operation - null - clears any mitigation action Available values: "log", "block", "none".
    operationId string
    UUID.
    zoneId string
    Identifier.
    mitigation_action str
    When set, this applies a mitigation action to this operation - "log" - log request when request does not conform to schema for this operation - "block" - deny access to the site when request does not conform to schema for this operation - "none" - will skip mitigation for this operation - null - clears any mitigation action Available values: "log", "block", "none".
    operation_id str
    UUID.
    zone_id str
    Identifier.
    mitigationAction String
    When set, this applies a mitigation action to this operation - "log" - log request when request does not conform to schema for this operation - "block" - deny access to the site when request does not conform to schema for this operation - "none" - will skip mitigation for this operation - null - clears any mitigation action Available values: "log", "block", "none".
    operationId String
    UUID.
    zoneId String
    Identifier.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SchemaValidationOperationSettings 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SchemaValidationOperationSettings Resource

    Get an existing SchemaValidationOperationSettings 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?: SchemaValidationOperationSettingsState, opts?: CustomResourceOptions): SchemaValidationOperationSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            mitigation_action: Optional[str] = None,
            operation_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> SchemaValidationOperationSettings
    func GetSchemaValidationOperationSettings(ctx *Context, name string, id IDInput, state *SchemaValidationOperationSettingsState, opts ...ResourceOption) (*SchemaValidationOperationSettings, error)
    public static SchemaValidationOperationSettings Get(string name, Input<string> id, SchemaValidationOperationSettingsState? state, CustomResourceOptions? opts = null)
    public static SchemaValidationOperationSettings get(String name, Output<String> id, SchemaValidationOperationSettingsState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:SchemaValidationOperationSettings    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:
    MitigationAction string
    When set, this applies a mitigation action to this operation - "log" - log request when request does not conform to schema for this operation - "block" - deny access to the site when request does not conform to schema for this operation - "none" - will skip mitigation for this operation - null - clears any mitigation action Available values: "log", "block", "none".
    OperationId string
    UUID.
    ZoneId string
    Identifier.
    MitigationAction string
    When set, this applies a mitigation action to this operation - "log" - log request when request does not conform to schema for this operation - "block" - deny access to the site when request does not conform to schema for this operation - "none" - will skip mitigation for this operation - null - clears any mitigation action Available values: "log", "block", "none".
    OperationId string
    UUID.
    ZoneId string
    Identifier.
    mitigationAction String
    When set, this applies a mitigation action to this operation - "log" - log request when request does not conform to schema for this operation - "block" - deny access to the site when request does not conform to schema for this operation - "none" - will skip mitigation for this operation - null - clears any mitigation action Available values: "log", "block", "none".
    operationId String
    UUID.
    zoneId String
    Identifier.
    mitigationAction string
    When set, this applies a mitigation action to this operation - "log" - log request when request does not conform to schema for this operation - "block" - deny access to the site when request does not conform to schema for this operation - "none" - will skip mitigation for this operation - null - clears any mitigation action Available values: "log", "block", "none".
    operationId string
    UUID.
    zoneId string
    Identifier.
    mitigation_action str
    When set, this applies a mitigation action to this operation - "log" - log request when request does not conform to schema for this operation - "block" - deny access to the site when request does not conform to schema for this operation - "none" - will skip mitigation for this operation - null - clears any mitigation action Available values: "log", "block", "none".
    operation_id str
    UUID.
    zone_id str
    Identifier.
    mitigationAction String
    When set, this applies a mitigation action to this operation - "log" - log request when request does not conform to schema for this operation - "block" - deny access to the site when request does not conform to schema for this operation - "none" - will skip mitigation for this operation - null - clears any mitigation action Available values: "log", "block", "none".
    operationId String
    UUID.
    zoneId String
    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.4.1 published on Wednesday, Jul 16, 2025 by Pulumi