Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getZoneLockdowns
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZoneLockdowns = cloudflare.getZoneLockdowns({
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
createdOn: "2014-01-01T05:20:00.12345Z",
description: "endpoints",
descriptionSearch: "endpoints",
ip: "1.2.3.4",
ipRangeSearch: "1.2.3.0/16",
ipSearch: "1.2.3.4",
modifiedOn: "2014-01-01T05:20:00.12345Z",
priority: 5,
uriSearch: "/some/path",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zone_lockdowns = cloudflare.get_zone_lockdowns(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
created_on="2014-01-01T05:20:00.12345Z",
description="endpoints",
description_search="endpoints",
ip="1.2.3.4",
ip_range_search="1.2.3.0/16",
ip_search="1.2.3.4",
modified_on="2014-01-01T05:20:00.12345Z",
priority=5,
uri_search="/some/path")
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.LookupZoneLockdowns(ctx, &cloudflare.LookupZoneLockdownsArgs{
ZoneId: "023e105f4ecef8ad9ca31a8372d0c353",
CreatedOn: pulumi.StringRef("2014-01-01T05:20:00.12345Z"),
Description: pulumi.StringRef("endpoints"),
DescriptionSearch: pulumi.StringRef("endpoints"),
Ip: pulumi.StringRef("1.2.3.4"),
IpRangeSearch: pulumi.StringRef("1.2.3.0/16"),
IpSearch: pulumi.StringRef("1.2.3.4"),
ModifiedOn: pulumi.StringRef("2014-01-01T05:20:00.12345Z"),
Priority: pulumi.Float64Ref(5),
UriSearch: pulumi.StringRef("/some/path"),
}, 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 exampleZoneLockdowns = Cloudflare.GetZoneLockdowns.Invoke(new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
CreatedOn = "2014-01-01T05:20:00.12345Z",
Description = "endpoints",
DescriptionSearch = "endpoints",
Ip = "1.2.3.4",
IpRangeSearch = "1.2.3.0/16",
IpSearch = "1.2.3.4",
ModifiedOn = "2014-01-01T05:20:00.12345Z",
Priority = 5,
UriSearch = "/some/path",
});
});
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.GetZoneLockdownsArgs;
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) {
final var exampleZoneLockdowns = CloudflareFunctions.getZoneLockdowns(GetZoneLockdownsArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.createdOn("2014-01-01T05:20:00.12345Z")
.description("endpoints")
.descriptionSearch("endpoints")
.ip("1.2.3.4")
.ipRangeSearch("1.2.3.0/16")
.ipSearch("1.2.3.4")
.modifiedOn("2014-01-01T05:20:00.12345Z")
.priority(5)
.uriSearch("/some/path")
.build());
}
}
variables:
exampleZoneLockdowns:
fn::invoke:
function: cloudflare:getZoneLockdowns
arguments:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
createdOn: 2014-01-01T05:20:00.12345Z
description: endpoints
descriptionSearch: endpoints
ip: 1.2.3.4
ipRangeSearch: 1.2.3.0/16
ipSearch: 1.2.3.4
modifiedOn: 2014-01-01T05:20:00.12345Z
priority: 5
uriSearch: /some/path
Using getZoneLockdowns
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 getZoneLockdowns(args: GetZoneLockdownsArgs, opts?: InvokeOptions): Promise<GetZoneLockdownsResult>
function getZoneLockdownsOutput(args: GetZoneLockdownsOutputArgs, opts?: InvokeOptions): Output<GetZoneLockdownsResult>
def get_zone_lockdowns(created_on: Optional[str] = None,
description: Optional[str] = None,
description_search: Optional[str] = None,
ip: Optional[str] = None,
ip_range_search: Optional[str] = None,
ip_search: Optional[str] = None,
max_items: Optional[int] = None,
modified_on: Optional[str] = None,
priority: Optional[float] = None,
uri_search: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZoneLockdownsResult
def get_zone_lockdowns_output(created_on: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
description_search: Optional[pulumi.Input[str]] = None,
ip: Optional[pulumi.Input[str]] = None,
ip_range_search: Optional[pulumi.Input[str]] = None,
ip_search: Optional[pulumi.Input[str]] = None,
max_items: Optional[pulumi.Input[int]] = None,
modified_on: Optional[pulumi.Input[str]] = None,
priority: Optional[pulumi.Input[float]] = None,
uri_search: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZoneLockdownsResult]
func LookupZoneLockdowns(ctx *Context, args *LookupZoneLockdownsArgs, opts ...InvokeOption) (*LookupZoneLockdownsResult, error)
func LookupZoneLockdownsOutput(ctx *Context, args *LookupZoneLockdownsOutputArgs, opts ...InvokeOption) LookupZoneLockdownsResultOutput
> Note: This function is named LookupZoneLockdowns
in the Go SDK.
public static class GetZoneLockdowns
{
public static Task<GetZoneLockdownsResult> InvokeAsync(GetZoneLockdownsArgs args, InvokeOptions? opts = null)
public static Output<GetZoneLockdownsResult> Invoke(GetZoneLockdownsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetZoneLockdownsResult> getZoneLockdowns(GetZoneLockdownsArgs args, InvokeOptions options)
public static Output<GetZoneLockdownsResult> getZoneLockdowns(GetZoneLockdownsArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getZoneLockdowns:getZoneLockdowns
arguments:
# arguments dictionary
The following arguments are supported:
- Zone
Id string - Identifier
- Created
On string - The timestamp of when the rule was created.
- Description string
- A string to search for in the description of existing rules.
- Description
Search string - A string to search for in the description of existing rules.
- Ip string
- A single IP address to search for in existing rules.
- Ip
Range stringSearch - A single IP address range to search for in existing rules.
- Ip
Search string - A single IP address to search for in existing rules.
- Max
Items int - Max items to fetch, default: 1000
- Modified
On string - The timestamp of when the rule was last modified.
- Priority double
- The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.
- Uri
Search string - A single URI to search for in the list of URLs of existing rules.
- Zone
Id string - Identifier
- Created
On string - The timestamp of when the rule was created.
- Description string
- A string to search for in the description of existing rules.
- Description
Search string - A string to search for in the description of existing rules.
- Ip string
- A single IP address to search for in existing rules.
- Ip
Range stringSearch - A single IP address range to search for in existing rules.
- Ip
Search string - A single IP address to search for in existing rules.
- Max
Items int - Max items to fetch, default: 1000
- Modified
On string - The timestamp of when the rule was last modified.
- Priority float64
- The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.
- Uri
Search string - A single URI to search for in the list of URLs of existing rules.
- zone
Id String - Identifier
- created
On String - The timestamp of when the rule was created.
- description String
- A string to search for in the description of existing rules.
- description
Search String - A string to search for in the description of existing rules.
- ip String
- A single IP address to search for in existing rules.
- ip
Range StringSearch - A single IP address range to search for in existing rules.
- ip
Search String - A single IP address to search for in existing rules.
- max
Items Integer - Max items to fetch, default: 1000
- modified
On String - The timestamp of when the rule was last modified.
- priority Double
- The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.
- uri
Search String - A single URI to search for in the list of URLs of existing rules.
- zone
Id string - Identifier
- created
On string - The timestamp of when the rule was created.
- description string
- A string to search for in the description of existing rules.
- description
Search string - A string to search for in the description of existing rules.
- ip string
- A single IP address to search for in existing rules.
- ip
Range stringSearch - A single IP address range to search for in existing rules.
- ip
Search string - A single IP address to search for in existing rules.
- max
Items number - Max items to fetch, default: 1000
- modified
On string - The timestamp of when the rule was last modified.
- priority number
- The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.
- uri
Search string - A single URI to search for in the list of URLs of existing rules.
- zone_
id str - Identifier
- created_
on str - The timestamp of when the rule was created.
- description str
- A string to search for in the description of existing rules.
- description_
search str - A string to search for in the description of existing rules.
- ip str
- A single IP address to search for in existing rules.
- ip_
range_ strsearch - A single IP address range to search for in existing rules.
- ip_
search str - A single IP address to search for in existing rules.
- max_
items int - Max items to fetch, default: 1000
- modified_
on str - The timestamp of when the rule was last modified.
- priority float
- The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.
- uri_
search str - A single URI to search for in the list of URLs of existing rules.
- zone
Id String - Identifier
- created
On String - The timestamp of when the rule was created.
- description String
- A string to search for in the description of existing rules.
- description
Search String - A string to search for in the description of existing rules.
- ip String
- A single IP address to search for in existing rules.
- ip
Range StringSearch - A single IP address range to search for in existing rules.
- ip
Search String - A single IP address to search for in existing rules.
- max
Items Number - Max items to fetch, default: 1000
- modified
On String - The timestamp of when the rule was last modified.
- priority Number
- The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.
- uri
Search String - A single URI to search for in the list of URLs of existing rules.
getZoneLockdowns Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Zone Lockdowns Result> - The items returned by the data source
- Zone
Id string - Identifier
- Created
On string - The timestamp of when the rule was created.
- Description string
- A string to search for in the description of existing rules.
- Description
Search string - A string to search for in the description of existing rules.
- Ip string
- A single IP address to search for in existing rules.
- Ip
Range stringSearch - A single IP address range to search for in existing rules.
- Ip
Search string - A single IP address to search for in existing rules.
- Max
Items int - Max items to fetch, default: 1000
- Modified
On string - The timestamp of when the rule was last modified.
- Priority double
- The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.
- Uri
Search string - A single URI to search for in the list of URLs of existing rules.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Zone Lockdowns Result - The items returned by the data source
- Zone
Id string - Identifier
- Created
On string - The timestamp of when the rule was created.
- Description string
- A string to search for in the description of existing rules.
- Description
Search string - A string to search for in the description of existing rules.
- Ip string
- A single IP address to search for in existing rules.
- Ip
Range stringSearch - A single IP address range to search for in existing rules.
- Ip
Search string - A single IP address to search for in existing rules.
- Max
Items int - Max items to fetch, default: 1000
- Modified
On string - The timestamp of when the rule was last modified.
- Priority float64
- The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.
- Uri
Search string - A single URI to search for in the list of URLs of existing rules.
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Zone Lockdowns Result> - The items returned by the data source
- zone
Id String - Identifier
- created
On String - The timestamp of when the rule was created.
- description String
- A string to search for in the description of existing rules.
- description
Search String - A string to search for in the description of existing rules.
- ip String
- A single IP address to search for in existing rules.
- ip
Range StringSearch - A single IP address range to search for in existing rules.
- ip
Search String - A single IP address to search for in existing rules.
- max
Items Integer - Max items to fetch, default: 1000
- modified
On String - The timestamp of when the rule was last modified.
- priority Double
- The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.
- uri
Search String - A single URI to search for in the list of URLs of existing rules.
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Zone Lockdowns Result[] - The items returned by the data source
- zone
Id string - Identifier
- created
On string - The timestamp of when the rule was created.
- description string
- A string to search for in the description of existing rules.
- description
Search string - A string to search for in the description of existing rules.
- ip string
- A single IP address to search for in existing rules.
- ip
Range stringSearch - A single IP address range to search for in existing rules.
- ip
Search string - A single IP address to search for in existing rules.
- max
Items number - Max items to fetch, default: 1000
- modified
On string - The timestamp of when the rule was last modified.
- priority number
- The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.
- uri
Search string - A single URI to search for in the list of URLs of existing rules.
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Zone Lockdowns Result] - The items returned by the data source
- zone_
id str - Identifier
- created_
on str - The timestamp of when the rule was created.
- description str
- A string to search for in the description of existing rules.
- description_
search str - A string to search for in the description of existing rules.
- ip str
- A single IP address to search for in existing rules.
- ip_
range_ strsearch - A single IP address range to search for in existing rules.
- ip_
search str - A single IP address to search for in existing rules.
- max_
items int - Max items to fetch, default: 1000
- modified_
on str - The timestamp of when the rule was last modified.
- priority float
- The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.
- uri_
search str - A single URI to search for in the list of URLs of existing rules.
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Property Map>
- The items returned by the data source
- zone
Id String - Identifier
- created
On String - The timestamp of when the rule was created.
- description String
- A string to search for in the description of existing rules.
- description
Search String - A string to search for in the description of existing rules.
- ip String
- A single IP address to search for in existing rules.
- ip
Range StringSearch - A single IP address range to search for in existing rules.
- ip
Search String - A single IP address to search for in existing rules.
- max
Items Number - Max items to fetch, default: 1000
- modified
On String - The timestamp of when the rule was last modified.
- priority Number
- The priority of the rule to control the processing order. A lower number indicates higher priority. If not provided, any rules with a configured priority will be processed before rules without a priority.
- uri
Search String - A single URI to search for in the list of URLs of existing rules.
Supporting Types
GetZoneLockdownsResult
- Configurations
List<Get
Zone Lockdowns Result Configuration> - A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of
ip
orip_range
configurations. - Created
On string - The timestamp of when the rule was created.
- Description string
- An informative summary of the rule.
- Id string
- The unique identifier of the Zone Lockdown rule.
- Modified
On string - The timestamp of when the rule was last modified.
- Paused bool
- When true, indicates that the rule is currently paused.
- Urls List<string>
- The URLs to include in the rule definition. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns.
- Configurations
[]Get
Zone Lockdowns Result Configuration - A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of
ip
orip_range
configurations. - Created
On string - The timestamp of when the rule was created.
- Description string
- An informative summary of the rule.
- Id string
- The unique identifier of the Zone Lockdown rule.
- Modified
On string - The timestamp of when the rule was last modified.
- Paused bool
- When true, indicates that the rule is currently paused.
- Urls []string
- The URLs to include in the rule definition. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns.
- configurations
List<Get
Zone Lockdowns Result Configuration> - A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of
ip
orip_range
configurations. - created
On String - The timestamp of when the rule was created.
- description String
- An informative summary of the rule.
- id String
- The unique identifier of the Zone Lockdown rule.
- modified
On String - The timestamp of when the rule was last modified.
- paused Boolean
- When true, indicates that the rule is currently paused.
- urls List<String>
- The URLs to include in the rule definition. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns.
- configurations
Get
Zone Lockdowns Result Configuration[] - A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of
ip
orip_range
configurations. - created
On string - The timestamp of when the rule was created.
- description string
- An informative summary of the rule.
- id string
- The unique identifier of the Zone Lockdown rule.
- modified
On string - The timestamp of when the rule was last modified.
- paused boolean
- When true, indicates that the rule is currently paused.
- urls string[]
- The URLs to include in the rule definition. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns.
- configurations
Sequence[Get
Zone Lockdowns Result Configuration] - A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of
ip
orip_range
configurations. - created_
on str - The timestamp of when the rule was created.
- description str
- An informative summary of the rule.
- id str
- The unique identifier of the Zone Lockdown rule.
- modified_
on str - The timestamp of when the rule was last modified.
- paused bool
- When true, indicates that the rule is currently paused.
- urls Sequence[str]
- The URLs to include in the rule definition. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns.
- configurations List<Property Map>
- A list of IP addresses or CIDR ranges that will be allowed to access the URLs specified in the Zone Lockdown rule. You can include any number of
ip
orip_range
configurations. - created
On String - The timestamp of when the rule was created.
- description String
- An informative summary of the rule.
- id String
- The unique identifier of the Zone Lockdown rule.
- modified
On String - The timestamp of when the rule was last modified.
- paused Boolean
- When true, indicates that the rule is currently paused.
- urls List<String>
- The URLs to include in the rule definition. You can use wildcards. Each entered URL will be escaped before use, which means you can only use simple wildcard patterns.
GetZoneLockdownsResultConfiguration
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.