1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getLeakedCredentialCheckRule
Cloudflare v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi
cloudflare logo
Cloudflare v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleLeakedCredentialCheckRule = cloudflare.getLeakedCredentialCheckRule({
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        detectionId: "18a14bafaa8eb1df04ce683ec18c765e",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_leaked_credential_check_rule = cloudflare.get_leaked_credential_check_rule(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        detection_id="18a14bafaa8eb1df04ce683ec18c765e")
    
    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.LookupLeakedCredentialCheckRule(ctx, &cloudflare.LookupLeakedCredentialCheckRuleArgs{
    			ZoneId:      "023e105f4ecef8ad9ca31a8372d0c353",
    			DetectionId: "18a14bafaa8eb1df04ce683ec18c765e",
    		}, 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 exampleLeakedCredentialCheckRule = Cloudflare.GetLeakedCredentialCheckRule.Invoke(new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            DetectionId = "18a14bafaa8eb1df04ce683ec18c765e",
        });
    
    });
    
    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.GetLeakedCredentialCheckRuleArgs;
    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 exampleLeakedCredentialCheckRule = CloudflareFunctions.getLeakedCredentialCheckRule(GetLeakedCredentialCheckRuleArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .detectionId("18a14bafaa8eb1df04ce683ec18c765e")
                .build());
    
        }
    }
    
    variables:
      exampleLeakedCredentialCheckRule:
        fn::invoke:
          function: cloudflare:getLeakedCredentialCheckRule
          arguments:
            zoneId: 023e105f4ecef8ad9ca31a8372d0c353
            detectionId: 18a14bafaa8eb1df04ce683ec18c765e
    

    Using getLeakedCredentialCheckRule

    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 getLeakedCredentialCheckRule(args: GetLeakedCredentialCheckRuleArgs, opts?: InvokeOptions): Promise<GetLeakedCredentialCheckRuleResult>
    function getLeakedCredentialCheckRuleOutput(args: GetLeakedCredentialCheckRuleOutputArgs, opts?: InvokeOptions): Output<GetLeakedCredentialCheckRuleResult>
    def get_leaked_credential_check_rule(detection_id: Optional[str] = None,
                                         zone_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetLeakedCredentialCheckRuleResult
    def get_leaked_credential_check_rule_output(detection_id: Optional[pulumi.Input[str]] = None,
                                         zone_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetLeakedCredentialCheckRuleResult]
    func LookupLeakedCredentialCheckRule(ctx *Context, args *LookupLeakedCredentialCheckRuleArgs, opts ...InvokeOption) (*LookupLeakedCredentialCheckRuleResult, error)
    func LookupLeakedCredentialCheckRuleOutput(ctx *Context, args *LookupLeakedCredentialCheckRuleOutputArgs, opts ...InvokeOption) LookupLeakedCredentialCheckRuleResultOutput

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

    public static class GetLeakedCredentialCheckRule 
    {
        public static Task<GetLeakedCredentialCheckRuleResult> InvokeAsync(GetLeakedCredentialCheckRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetLeakedCredentialCheckRuleResult> Invoke(GetLeakedCredentialCheckRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLeakedCredentialCheckRuleResult> getLeakedCredentialCheckRule(GetLeakedCredentialCheckRuleArgs args, InvokeOptions options)
    public static Output<GetLeakedCredentialCheckRuleResult> getLeakedCredentialCheckRule(GetLeakedCredentialCheckRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getLeakedCredentialCheckRule:getLeakedCredentialCheckRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DetectionId string
    Defines the unique ID for this custom detection.
    ZoneId string
    Defines an identifier.
    DetectionId string
    Defines the unique ID for this custom detection.
    ZoneId string
    Defines an identifier.
    detectionId String
    Defines the unique ID for this custom detection.
    zoneId String
    Defines an identifier.
    detectionId string
    Defines the unique ID for this custom detection.
    zoneId string
    Defines an identifier.
    detection_id str
    Defines the unique ID for this custom detection.
    zone_id str
    Defines an identifier.
    detectionId String
    Defines the unique ID for this custom detection.
    zoneId String
    Defines an identifier.

    getLeakedCredentialCheckRule Result

    The following output properties are available:

    DetectionId string
    Defines the unique ID for this custom detection.
    Id string
    Defines the unique ID for this custom detection.
    Password string
    Defines ehe ruleset expression to use in matching the password in a request.
    Username string
    Defines the ruleset expression to use in matching the username in a request.
    ZoneId string
    Defines an identifier.
    DetectionId string
    Defines the unique ID for this custom detection.
    Id string
    Defines the unique ID for this custom detection.
    Password string
    Defines ehe ruleset expression to use in matching the password in a request.
    Username string
    Defines the ruleset expression to use in matching the username in a request.
    ZoneId string
    Defines an identifier.
    detectionId String
    Defines the unique ID for this custom detection.
    id String
    Defines the unique ID for this custom detection.
    password String
    Defines ehe ruleset expression to use in matching the password in a request.
    username String
    Defines the ruleset expression to use in matching the username in a request.
    zoneId String
    Defines an identifier.
    detectionId string
    Defines the unique ID for this custom detection.
    id string
    Defines the unique ID for this custom detection.
    password string
    Defines ehe ruleset expression to use in matching the password in a request.
    username string
    Defines the ruleset expression to use in matching the username in a request.
    zoneId string
    Defines an identifier.
    detection_id str
    Defines the unique ID for this custom detection.
    id str
    Defines the unique ID for this custom detection.
    password str
    Defines ehe ruleset expression to use in matching the password in a request.
    username str
    Defines the ruleset expression to use in matching the username in a request.
    zone_id str
    Defines an identifier.
    detectionId String
    Defines the unique ID for this custom detection.
    id String
    Defines the unique ID for this custom detection.
    password String
    Defines ehe ruleset expression to use in matching the password in a request.
    username String
    Defines the ruleset expression to use in matching the username in a request.
    zoneId String
    Defines an identifier.

    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 v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate