Cloudflare v6.1.1 published on Monday, Apr 21, 2025 by Pulumi
cloudflare.getZoneLockdown
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZoneLockdown = cloudflare.getZoneLockdown({
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
lockDownsId: "372e67954025e0ba6aaa6d586b9e0b59",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zone_lockdown = cloudflare.get_zone_lockdown(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
lock_downs_id="372e67954025e0ba6aaa6d586b9e0b59")
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.LookupZoneLockdown(ctx, &cloudflare.LookupZoneLockdownArgs{
ZoneId: "023e105f4ecef8ad9ca31a8372d0c353",
LockDownsId: pulumi.StringRef("372e67954025e0ba6aaa6d586b9e0b59"),
}, 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 exampleZoneLockdown = Cloudflare.GetZoneLockdown.Invoke(new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
LockDownsId = "372e67954025e0ba6aaa6d586b9e0b59",
});
});
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.GetZoneLockdownArgs;
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 exampleZoneLockdown = CloudflareFunctions.getZoneLockdown(GetZoneLockdownArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.lockDownsId("372e67954025e0ba6aaa6d586b9e0b59")
.build());
}
}
variables:
exampleZoneLockdown:
fn::invoke:
function: cloudflare:getZoneLockdown
arguments:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
lockDownsId: 372e67954025e0ba6aaa6d586b9e0b59
Using getZoneLockdown
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 getZoneLockdown(args: GetZoneLockdownArgs, opts?: InvokeOptions): Promise<GetZoneLockdownResult>
function getZoneLockdownOutput(args: GetZoneLockdownOutputArgs, opts?: InvokeOptions): Output<GetZoneLockdownResult>
def get_zone_lockdown(filter: Optional[GetZoneLockdownFilter] = None,
lock_downs_id: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetZoneLockdownResult
def get_zone_lockdown_output(filter: Optional[pulumi.Input[GetZoneLockdownFilterArgs]] = None,
lock_downs_id: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetZoneLockdownResult]
func LookupZoneLockdown(ctx *Context, args *LookupZoneLockdownArgs, opts ...InvokeOption) (*LookupZoneLockdownResult, error)
func LookupZoneLockdownOutput(ctx *Context, args *LookupZoneLockdownOutputArgs, opts ...InvokeOption) LookupZoneLockdownResultOutput
> Note: This function is named LookupZoneLockdown
in the Go SDK.
public static class GetZoneLockdown
{
public static Task<GetZoneLockdownResult> InvokeAsync(GetZoneLockdownArgs args, InvokeOptions? opts = null)
public static Output<GetZoneLockdownResult> Invoke(GetZoneLockdownInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetZoneLockdownResult> getZoneLockdown(GetZoneLockdownArgs args, InvokeOptions options)
public static Output<GetZoneLockdownResult> getZoneLockdown(GetZoneLockdownArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getZoneLockdown:getZoneLockdown
arguments:
# arguments dictionary
The following arguments are supported:
- Zone
Id string - Identifier
- Filter
Get
Zone Lockdown Filter - Lock
Downs stringId - The unique identifier of the Zone Lockdown rule.
- Zone
Id string - Identifier
- Filter
Get
Zone Lockdown Filter - Lock
Downs stringId - The unique identifier of the Zone Lockdown rule.
- zone
Id String - Identifier
- filter
Get
Zone Lockdown Filter - lock
Downs StringId - The unique identifier of the Zone Lockdown rule.
- zone
Id string - Identifier
- filter
Get
Zone Lockdown Filter - lock
Downs stringId - The unique identifier of the Zone Lockdown rule.
- zone_
id str - Identifier
- filter
Get
Zone Lockdown Filter - lock_
downs_ strid - The unique identifier of the Zone Lockdown rule.
- zone
Id String - Identifier
- filter Property Map
- lock
Downs StringId - The unique identifier of the Zone Lockdown rule.
getZoneLockdown Result
The following output properties are available:
- Configurations
List<Get
Zone Lockdown 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.
- Zone
Id string - Identifier
- Filter
Get
Zone Lockdown Filter - Lock
Downs stringId - The unique identifier of the Zone Lockdown rule.
- Configurations
[]Get
Zone Lockdown 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.
- Zone
Id string - Identifier
- Filter
Get
Zone Lockdown Filter - Lock
Downs stringId - The unique identifier of the Zone Lockdown rule.
- configurations
List<Get
Zone Lockdown 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.
- zone
Id String - Identifier
- filter
Get
Zone Lockdown Filter - lock
Downs StringId - The unique identifier of the Zone Lockdown rule.
- configurations
Get
Zone Lockdown 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.
- zone
Id string - Identifier
- filter
Get
Zone Lockdown Filter - lock
Downs stringId - The unique identifier of the Zone Lockdown rule.
- configurations
Sequence[Get
Zone Lockdown 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.
- zone_
id str - Identifier
- filter
Get
Zone Lockdown Filter - lock_
downs_ strid - The unique identifier of the Zone Lockdown rule.
- 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.
- zone
Id String - Identifier
- filter Property Map
- lock
Downs StringId - The unique identifier of the Zone Lockdown rule.
Supporting Types
GetZoneLockdownConfiguration
GetZoneLockdownFilter
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.