Viewing docs for Cloudflare v6.21.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi
Viewing docs for Cloudflare v6.21.0
published on Thursday, Sep 17, 2026 by Pulumi
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 dictionarydata "cloudflare_get_nel_setting" "name" {
# arguments
}The following arguments are supported:
- Zone
Id string - Identifier of the zone.
- Zone
Id string - Identifier of the zone.
- zone_
id string - Identifier of the zone.
- zone
Id String - Identifier of the zone.
- zone
Id string - Identifier of the zone.
- zone_
id str - Identifier of the zone.
- zone
Id 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.
- 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
Get
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.
- 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
Get
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.
- 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.
- 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
Get
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.
- 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
Get
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.
- 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
Get
Nel Setting Value - 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.
- 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
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
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.21.0
published on Thursday, Sep 17, 2026 by Pulumi
published on Thursday, Sep 17, 2026 by Pulumi