published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
Accepted Permissions
Zone Settings ReadZone Settings Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleNelSetting = new cloudflare.NelSetting("example_nel_setting", {
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
value: {
enabled: false,
},
});
import pulumi
import pulumi_cloudflare as cloudflare
example_nel_setting = cloudflare.NelSetting("example_nel_setting",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
value={
"enabled": False,
})
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.NewNelSetting(ctx, "example_nel_setting", &cloudflare.NelSettingArgs{
ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
Value: &cloudflare.NelSettingValueArgs{
Enabled: pulumi.Bool(false),
},
})
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 exampleNelSetting = new Cloudflare.NelSetting("example_nel_setting", new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
Value = new Cloudflare.Inputs.NelSettingValueArgs
{
Enabled = false,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.NelSetting;
import com.pulumi.cloudflare.NelSettingArgs;
import com.pulumi.cloudflare.inputs.NelSettingValueArgs;
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 exampleNelSetting = new NelSetting("exampleNelSetting", NelSettingArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.value(NelSettingValueArgs.builder()
.enabled(false)
.build())
.build());
}
}
resources:
exampleNelSetting:
type: cloudflare:NelSetting
name: example_nel_setting
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
value:
enabled: false
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
resource "cloudflare_nelsetting" "example_nel_setting" {
zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
value = {
enabled = false
}
}
Create NelSetting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NelSetting(name: string, args: NelSettingArgs, opts?: CustomResourceOptions);@overload
def NelSetting(resource_name: str,
args: NelSettingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NelSetting(resource_name: str,
opts: Optional[ResourceOptions] = None,
value: Optional[NelSettingValueArgs] = None,
zone_id: Optional[str] = None)func NewNelSetting(ctx *Context, name string, args NelSettingArgs, opts ...ResourceOption) (*NelSetting, error)public NelSetting(string name, NelSettingArgs args, CustomResourceOptions? opts = null)
public NelSetting(String name, NelSettingArgs args)
public NelSetting(String name, NelSettingArgs args, CustomResourceOptions options)
type: cloudflare:NelSetting
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_nel_setting" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args NelSettingArgs
- 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 NelSettingArgs
- 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 NelSettingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NelSettingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NelSettingArgs
- 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 nelSettingResource = new Cloudflare.NelSetting("nelSettingResource", new()
{
Value = new Cloudflare.Inputs.NelSettingValueArgs
{
Enabled = false,
},
ZoneId = "string",
});
example, err := cloudflare.NewNelSetting(ctx, "nelSettingResource", &cloudflare.NelSettingArgs{
Value: &cloudflare.NelSettingValueArgs{
Enabled: pulumi.Bool(false),
},
ZoneId: pulumi.String("string"),
})
resource "cloudflare_nel_setting" "nelSettingResource" {
lifecycle {
create_before_destroy = true
}
value = {
enabled = false
}
zone_id = "string"
}
var nelSettingResource = new NelSetting("nelSettingResource", NelSettingArgs.builder()
.value(NelSettingValueArgs.builder()
.enabled(false)
.build())
.zoneId("string")
.build());
nel_setting_resource = cloudflare.NelSetting("nelSettingResource",
value={
"enabled": False,
},
zone_id="string")
const nelSettingResource = new cloudflare.NelSetting("nelSettingResource", {
value: {
enabled: false,
},
zoneId: "string",
});
type: cloudflare:NelSetting
properties:
value:
enabled: false
zoneId: string
NelSetting 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 NelSetting resource accepts the following input properties:
- Value
Nel
Setting Value - The NEL configuration value.
- Zone
Id string - Identifier of the zone.
- Value
Nel
Setting Value Args - The NEL configuration value.
- Zone
Id string - Identifier of the zone.
- value
Nel
Setting Value - The NEL configuration value.
- zone
Id String - Identifier of the zone.
- value
Nel
Setting Value - The NEL configuration value.
- zone
Id string - Identifier of the zone.
- value
Nel
Setting Value Args - The NEL configuration value.
- zone_
id str - Identifier of the zone.
- value Property Map
- The NEL configuration value.
- zone
Id String - Identifier of the zone.
Outputs
All input properties are implicitly available as output properties. Additionally, the NelSetting resource produces the following output properties:
- Editable bool
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
- Editable bool
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
On string - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
- editable bool
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- id string
- The provider-assigned unique ID for this managed resource.
- modified_
on string - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
- editable Boolean
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
- editable boolean
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- id string
- The provider-assigned unique ID for this managed resource.
- modified
On string - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
- editable bool
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- id str
- The provider-assigned unique ID for this managed resource.
- modified_
on str - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
- editable Boolean
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
On String - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
Look up Existing NelSetting Resource
Get an existing NelSetting 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?: NelSettingState, opts?: CustomResourceOptions): NelSetting@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
editable: Optional[bool] = None,
modified_on: Optional[str] = None,
value: Optional[NelSettingValueArgs] = None,
zone_id: Optional[str] = None) -> NelSettingfunc GetNelSetting(ctx *Context, name string, id IDInput, state *NelSettingState, opts ...ResourceOption) (*NelSetting, error)public static NelSetting Get(string name, Input<string> id, NelSettingState? state, CustomResourceOptions? opts = null)public static NelSetting get(String name, Output<String> id, NelSettingState state, CustomResourceOptions options)resources: _: type: cloudflare:NelSetting get: id: ${id}import {
to = cloudflare_nel_setting.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.
- Editable bool
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- Modified
On string - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
- Value
Nel
Setting Value - The NEL configuration value.
- Zone
Id string - Identifier of the zone.
- Editable bool
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- Modified
On string - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
- Value
Nel
Setting Value Args - The NEL configuration value.
- Zone
Id string - Identifier of the zone.
- editable bool
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- modified_
on string - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
- value object
- The NEL configuration value.
- zone_
id string - Identifier of the zone.
- editable Boolean
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- modified
On String - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
- value
Nel
Setting Value - The NEL configuration value.
- zone
Id String - Identifier of the zone.
- editable boolean
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- modified
On string - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
- value
Nel
Setting Value - The NEL configuration value.
- zone
Id string - Identifier of the zone.
- editable bool
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- modified_
on str - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
- value
Nel
Setting Value Args - The NEL configuration value.
- zone_
id str - Identifier of the zone.
- editable Boolean
- Whether the setting is editable. This is false when the zone's plan does not include NEL or the NEL product feature is not enabled.
- modified
On String - When the setting was last modified. A zero value (0001-01-01T00:00:00Z) indicates the setting has never been explicitly set and is using the default value.
- value Property Map
- The NEL configuration value.
- zone
Id String - Identifier of the zone.
Supporting Types
NelSettingValue, NelSettingValueArgs
- Enabled bool
- Whether Network Error Logging is enabled for the zone. When enabled, browsers report network errors to Cloudflare's NEL endpoint.
- Enabled bool
- Whether Network Error Logging is enabled for the zone. When enabled, browsers report network errors to Cloudflare's NEL endpoint.
- enabled bool
- Whether Network Error Logging is enabled for the zone. When enabled, browsers report network errors to Cloudflare's NEL endpoint.
- enabled Boolean
- Whether Network Error Logging is enabled for the zone. When enabled, browsers report network errors to Cloudflare's NEL endpoint.
- enabled boolean
- Whether Network Error Logging is enabled for the zone. When enabled, browsers report network errors to Cloudflare's NEL endpoint.
- enabled bool
- Whether Network Error Logging is enabled for the zone. When enabled, browsers report network errors to Cloudflare's NEL endpoint.
- enabled Boolean
- Whether Network Error Logging is enabled for the zone. When enabled, browsers report network errors to Cloudflare's NEL endpoint.
Import
$ pulumi import cloudflare:index/nelSetting:NelSetting 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
cloudflareTerraform Provider.
published on Thursday, Sep 17, 2026 by Pulumi