1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getNelSetting
Viewing docs for Cloudflare v6.21.0
published on Thursday, Sep 17, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.21.0
published on Thursday, Sep 17, 2026 by Pulumi

    Accepted Permissions

    • Zone Settings Read

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleNelSetting = cloudflare.getNelSetting({
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_nel_setting = cloudflare.get_nel_setting(zone_id="023e105f4ecef8ad9ca31a8372d0c353")
    
    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.GetNelSetting(ctx, &cloudflare.LookupNelSettingArgs{
    			ZoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    		}, nil)
    		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 = Cloudflare.GetNelSetting.Invoke(new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetNelSettingArgs;
    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) {
            final var exampleNelSetting = CloudflareFunctions.getNelSetting(GetNelSettingArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleNelSetting:
        fn::invoke:
          function: cloudflare:getNelSetting
          arguments:
            zoneId: 023e105f4ecef8ad9ca31a8372d0c353
    
    pulumi {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    data "cloudflare_getnelsetting" "exampleNelSetting" {
      zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
    }
    

    Using getNelSetting

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getNelSetting(args: GetNelSettingArgs, opts?: InvokeOptions): Promise<GetNelSettingResult>
    function getNelSettingOutput(args: GetNelSettingOutputArgs, opts?: InvokeOutputOptions): Output<GetNelSettingResult>
    def get_nel_setting(zone_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetNelSettingResult
    def get_nel_setting_output(zone_id: pulumi.Input[Optional[str]] = None,
                        opts: Optional[InvokeOutputOptions] = None) -> Output[GetNelSettingResult]
    func LookupNelSetting(ctx *Context, args *LookupNelSettingArgs, opts ...InvokeOption) (*LookupNelSettingResult, error)
    func LookupNelSettingOutput(ctx *Context, args *LookupNelSettingOutputArgs, opts ...InvokeOption) LookupNelSettingResultOutput

    > Note: This function is named LookupNelSetting in the Go SDK.

    public static class GetNelSetting 
    {
        public static Task<GetNelSettingResult> InvokeAsync(GetNelSettingArgs args, InvokeOptions? opts = null)
        public static Output<GetNelSettingResult> Invoke(GetNelSettingInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetNelSettingResult> Invoke(GetNelSettingInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetNelSettingResult> getNelSetting(GetNelSettingArgs args, InvokeOptions options)
    public static Output<GetNelSettingResult> getNelSetting(GetNelSettingArgs args, InvokeOptions options)
    public static Output<GetNelSettingResult> getNelSetting(GetNelSettingArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getNelSetting:getNelSetting
      arguments:
        # arguments dictionary
    data "cloudflare_get_nel_setting" "name" {
        # arguments
    }

    The following arguments are supported:

    ZoneId string
    Identifier of the zone.
    ZoneId string
    Identifier of the zone.
    zone_id string
    Identifier of the zone.
    zoneId String
    Identifier of the zone.
    zoneId string
    Identifier of the zone.
    zone_id str
    Identifier of the zone.
    zoneId String
    Identifier of the zone.

    getNelSetting Result

    The following output properties are available:

    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
    Identifier of the zone.
    ModifiedOn 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 GetNelSettingValue
    The NEL configuration value.
    ZoneId 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.
    Id string
    Identifier of the zone.
    ModifiedOn 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 GetNelSettingValue
    The NEL configuration value.
    ZoneId 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.
    id string
    Identifier of the zone.
    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.
    id String
    Identifier of the zone.
    modifiedOn 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 GetNelSettingValue
    The NEL configuration value.
    zoneId 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.
    id string
    Identifier of the zone.
    modifiedOn 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 GetNelSettingValue
    The NEL configuration value.
    zoneId 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.
    id str
    Identifier of the zone.
    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 GetNelSettingValue
    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.
    id String
    Identifier of the zone.
    modifiedOn 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.
    zoneId String
    Identifier of the zone.

    Supporting Types

    GetNelSettingValue

    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.

    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.21.0
    published on Thursday, Sep 17, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial