1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getLeakedCredentialCheckRules
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getLeakedCredentialCheckRules

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleLeakedCredentialCheckRules = cloudflare.getLeakedCredentialCheckRules({
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_leaked_credential_check_rules = cloudflare.get_leaked_credential_check_rules(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.LookupLeakedCredentialCheckRules(ctx, &cloudflare.LookupLeakedCredentialCheckRulesArgs{
    			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 exampleLeakedCredentialCheckRules = Cloudflare.GetLeakedCredentialCheckRules.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.GetLeakedCredentialCheckRulesArgs;
    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 exampleLeakedCredentialCheckRules = CloudflareFunctions.getLeakedCredentialCheckRules(GetLeakedCredentialCheckRulesArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .build());
    
        }
    }
    
    variables:
      exampleLeakedCredentialCheckRules:
        fn::invoke:
          function: cloudflare:getLeakedCredentialCheckRules
          arguments:
            zoneId: 023e105f4ecef8ad9ca31a8372d0c353
    

    Using getLeakedCredentialCheckRules

    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 getLeakedCredentialCheckRules(args: GetLeakedCredentialCheckRulesArgs, opts?: InvokeOptions): Promise<GetLeakedCredentialCheckRulesResult>
    function getLeakedCredentialCheckRulesOutput(args: GetLeakedCredentialCheckRulesOutputArgs, opts?: InvokeOptions): Output<GetLeakedCredentialCheckRulesResult>
    def get_leaked_credential_check_rules(max_items: Optional[int] = None,
                                          zone_id: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetLeakedCredentialCheckRulesResult
    def get_leaked_credential_check_rules_output(max_items: Optional[pulumi.Input[int]] = None,
                                          zone_id: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetLeakedCredentialCheckRulesResult]
    func LookupLeakedCredentialCheckRules(ctx *Context, args *LookupLeakedCredentialCheckRulesArgs, opts ...InvokeOption) (*LookupLeakedCredentialCheckRulesResult, error)
    func LookupLeakedCredentialCheckRulesOutput(ctx *Context, args *LookupLeakedCredentialCheckRulesOutputArgs, opts ...InvokeOption) LookupLeakedCredentialCheckRulesResultOutput

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

    public static class GetLeakedCredentialCheckRules 
    {
        public static Task<GetLeakedCredentialCheckRulesResult> InvokeAsync(GetLeakedCredentialCheckRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetLeakedCredentialCheckRulesResult> Invoke(GetLeakedCredentialCheckRulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLeakedCredentialCheckRulesResult> getLeakedCredentialCheckRules(GetLeakedCredentialCheckRulesArgs args, InvokeOptions options)
    public static Output<GetLeakedCredentialCheckRulesResult> getLeakedCredentialCheckRules(GetLeakedCredentialCheckRulesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getLeakedCredentialCheckRules:getLeakedCredentialCheckRules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ZoneId string
    Identifier
    MaxItems int
    Max items to fetch, default: 1000
    ZoneId string
    Identifier
    MaxItems int
    Max items to fetch, default: 1000
    zoneId String
    Identifier
    maxItems Integer
    Max items to fetch, default: 1000
    zoneId string
    Identifier
    maxItems number
    Max items to fetch, default: 1000
    zone_id str
    Identifier
    max_items int
    Max items to fetch, default: 1000
    zoneId String
    Identifier
    maxItems Number
    Max items to fetch, default: 1000

    getLeakedCredentialCheckRules Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetLeakedCredentialCheckRulesResult>
    The items returned by the data source
    ZoneId string
    Identifier
    MaxItems int
    Max items to fetch, default: 1000
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetLeakedCredentialCheckRulesResult
    The items returned by the data source
    ZoneId string
    Identifier
    MaxItems int
    Max items to fetch, default: 1000
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetLeakedCredentialCheckRulesResult>
    The items returned by the data source
    zoneId String
    Identifier
    maxItems Integer
    Max items to fetch, default: 1000
    id string
    The provider-assigned unique ID for this managed resource.
    results GetLeakedCredentialCheckRulesResult[]
    The items returned by the data source
    zoneId string
    Identifier
    maxItems number
    Max items to fetch, default: 1000
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetLeakedCredentialCheckRulesResult]
    The items returned by the data source
    zone_id str
    Identifier
    max_items int
    Max items to fetch, default: 1000
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    zoneId String
    Identifier
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetLeakedCredentialCheckRulesResult

    Id string
    The unique ID for this custom detection
    Password string
    The ruleset expression to use in matching the password in a request
    Username string
    The ruleset expression to use in matching the username in a request
    Id string
    The unique ID for this custom detection
    Password string
    The ruleset expression to use in matching the password in a request
    Username string
    The ruleset expression to use in matching the username in a request
    id String
    The unique ID for this custom detection
    password String
    The ruleset expression to use in matching the password in a request
    username String
    The ruleset expression to use in matching the username in a request
    id string
    The unique ID for this custom detection
    password string
    The ruleset expression to use in matching the password in a request
    username string
    The ruleset expression to use in matching the username in a request
    id str
    The unique ID for this custom detection
    password str
    The ruleset expression to use in matching the password in a request
    username str
    The ruleset expression to use in matching the username in a request
    id String
    The unique ID for this custom detection
    password String
    The ruleset expression to use in matching the password in a request
    username String
    The ruleset expression to use in matching the username in a request

    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.1.2 published on Monday, Apr 28, 2025 by Pulumi