1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZoneSetting
Cloudflare v6.0.0 published on Monday, Apr 14, 2025 by Pulumi

cloudflare.ZoneSetting

Explore with Pulumi AI

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  exampleZoneSetting:
    type: cloudflare:ZoneSetting
    name: example_zone_setting
    properties:
      zoneId: 023e105f4ecef8ad9ca31a8372d0c353
      settingId: always_online
      id: 0rtt
      value: on
Copy

Create ZoneSetting Resource

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

Constructor syntax

new ZoneSetting(name: string, args: ZoneSettingArgs, opts?: CustomResourceOptions);
@overload
def ZoneSetting(resource_name: str,
                args: ZoneSettingArgs,
                opts: Optional[ResourceOptions] = None)

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

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ZoneSettingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ZoneSettingArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ZoneSettingArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ZoneSettingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ZoneSettingArgs
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 zoneSettingResource = new Cloudflare.ZoneSetting("zoneSettingResource", new()
{
    SettingId = "string",
    Value = "any",
    ZoneId = "string",
});
Copy
example, err := cloudflare.NewZoneSetting(ctx, "zoneSettingResource", &cloudflare.ZoneSettingArgs{
	SettingId: pulumi.String("string"),
	Value:     pulumi.Any("any"),
	ZoneId:    pulumi.String("string"),
})
Copy
var zoneSettingResource = new ZoneSetting("zoneSettingResource", ZoneSettingArgs.builder()
    .settingId("string")
    .value("any")
    .zoneId("string")
    .build());
Copy
zone_setting_resource = cloudflare.ZoneSetting("zoneSettingResource",
    setting_id="string",
    value="any",
    zone_id="string")
Copy
const zoneSettingResource = new cloudflare.ZoneSetting("zoneSettingResource", {
    settingId: "string",
    value: "any",
    zoneId: "string",
});
Copy
type: cloudflare:ZoneSetting
properties:
    settingId: string
    value: any
    zoneId: string
Copy

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

SettingId This property is required. string
Setting name
Value This property is required. object
Current value of the zone setting.
ZoneId This property is required. string
Identifier
SettingId This property is required. string
Setting name
Value This property is required. interface{}
Current value of the zone setting.
ZoneId This property is required. string
Identifier
settingId This property is required. String
Setting name
value This property is required. Object
Current value of the zone setting.
zoneId This property is required. String
Identifier
settingId This property is required. string
Setting name
value This property is required. any
Current value of the zone setting.
zoneId This property is required. string
Identifier
setting_id This property is required. str
Setting name
value This property is required. Any
Current value of the zone setting.
zone_id This property is required. str
Identifier
settingId This property is required. String
Setting name
value This property is required. Any
Current value of the zone setting.
zoneId This property is required. String
Identifier

Outputs

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

Editable bool
Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
Id string
The provider-assigned unique ID for this managed resource.
ModifiedOn string
last time this setting was modified.
TimeRemaining double
Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
Editable bool
Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
Id string
The provider-assigned unique ID for this managed resource.
ModifiedOn string
last time this setting was modified.
TimeRemaining float64
Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
editable Boolean
Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
id String
The provider-assigned unique ID for this managed resource.
modifiedOn String
last time this setting was modified.
timeRemaining Double
Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
editable boolean
Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
id string
The provider-assigned unique ID for this managed resource.
modifiedOn string
last time this setting was modified.
timeRemaining number
Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
editable bool
Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
id str
The provider-assigned unique ID for this managed resource.
modified_on str
last time this setting was modified.
time_remaining float
Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
editable Boolean
Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
id String
The provider-assigned unique ID for this managed resource.
modifiedOn String
last time this setting was modified.
timeRemaining Number
Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.

Look up Existing ZoneSetting Resource

Get an existing ZoneSetting 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?: ZoneSettingState, opts?: CustomResourceOptions): ZoneSetting
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        editable: Optional[bool] = None,
        modified_on: Optional[str] = None,
        setting_id: Optional[str] = None,
        time_remaining: Optional[float] = None,
        value: Optional[Any] = None,
        zone_id: Optional[str] = None) -> ZoneSetting
func GetZoneSetting(ctx *Context, name string, id IDInput, state *ZoneSettingState, opts ...ResourceOption) (*ZoneSetting, error)
public static ZoneSetting Get(string name, Input<string> id, ZoneSettingState? state, CustomResourceOptions? opts = null)
public static ZoneSetting get(String name, Output<String> id, ZoneSettingState state, CustomResourceOptions options)
resources:  _:    type: cloudflare:ZoneSetting    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Editable bool
Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
ModifiedOn string
last time this setting was modified.
SettingId string
Setting name
TimeRemaining double
Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
Value object
Current value of the zone setting.
ZoneId string
Identifier
Editable bool
Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
ModifiedOn string
last time this setting was modified.
SettingId string
Setting name
TimeRemaining float64
Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
Value interface{}
Current value of the zone setting.
ZoneId string
Identifier
editable Boolean
Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
modifiedOn String
last time this setting was modified.
settingId String
Setting name
timeRemaining Double
Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
value Object
Current value of the zone setting.
zoneId String
Identifier
editable boolean
Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
modifiedOn string
last time this setting was modified.
settingId string
Setting name
timeRemaining number
Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
value any
Current value of the zone setting.
zoneId string
Identifier
editable bool
Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
modified_on str
last time this setting was modified.
setting_id str
Setting name
time_remaining float
Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
value Any
Current value of the zone setting.
zone_id str
Identifier
editable Boolean
Whether or not this setting can be modified for this zone (based on your Cloudflare plan level).
modifiedOn String
last time this setting was modified.
settingId String
Setting name
timeRemaining Number
Value of the zone setting. Notes: The interval (in seconds) from when development mode expires (positive integer) or last expired (negative integer) for the domain. If development mode has never been enabled, this value is false.
value Any
Current value of the zone setting.
zoneId String
Identifier

Import

$ pulumi import cloudflare:index/zoneSetting:ZoneSetting example '<zone_id>/<setting_id>'
Copy

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 cloudflare Terraform Provider.