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

cloudflare.getWaitingRoomRules

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 exampleWaitingRoomRules = cloudflare.getWaitingRoomRules({
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        waitingRoomId: "699d98642c564d2e855e9661899b7252",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_waiting_room_rules = cloudflare.get_waiting_room_rules(zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        waiting_room_id="699d98642c564d2e855e9661899b7252")
    
    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.LookupWaitingRoomRules(ctx, &cloudflare.LookupWaitingRoomRulesArgs{
    			ZoneId:        "023e105f4ecef8ad9ca31a8372d0c353",
    			WaitingRoomId: "699d98642c564d2e855e9661899b7252",
    		}, 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 exampleWaitingRoomRules = Cloudflare.GetWaitingRoomRules.Invoke(new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            WaitingRoomId = "699d98642c564d2e855e9661899b7252",
        });
    
    });
    
    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.GetWaitingRoomRulesArgs;
    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 exampleWaitingRoomRules = CloudflareFunctions.getWaitingRoomRules(GetWaitingRoomRulesArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .waitingRoomId("699d98642c564d2e855e9661899b7252")
                .build());
    
        }
    }
    
    variables:
      exampleWaitingRoomRules:
        fn::invoke:
          function: cloudflare:getWaitingRoomRules
          arguments:
            zoneId: 023e105f4ecef8ad9ca31a8372d0c353
            waitingRoomId: 699d98642c564d2e855e9661899b7252
    

    Using getWaitingRoomRules

    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 getWaitingRoomRules(args: GetWaitingRoomRulesArgs, opts?: InvokeOptions): Promise<GetWaitingRoomRulesResult>
    function getWaitingRoomRulesOutput(args: GetWaitingRoomRulesOutputArgs, opts?: InvokeOptions): Output<GetWaitingRoomRulesResult>
    def get_waiting_room_rules(waiting_room_id: Optional[str] = None,
                               zone_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetWaitingRoomRulesResult
    def get_waiting_room_rules_output(waiting_room_id: Optional[pulumi.Input[str]] = None,
                               zone_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetWaitingRoomRulesResult]
    func LookupWaitingRoomRules(ctx *Context, args *LookupWaitingRoomRulesArgs, opts ...InvokeOption) (*LookupWaitingRoomRulesResult, error)
    func LookupWaitingRoomRulesOutput(ctx *Context, args *LookupWaitingRoomRulesOutputArgs, opts ...InvokeOption) LookupWaitingRoomRulesResultOutput

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

    public static class GetWaitingRoomRules 
    {
        public static Task<GetWaitingRoomRulesResult> InvokeAsync(GetWaitingRoomRulesArgs args, InvokeOptions? opts = null)
        public static Output<GetWaitingRoomRulesResult> Invoke(GetWaitingRoomRulesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWaitingRoomRulesResult> getWaitingRoomRules(GetWaitingRoomRulesArgs args, InvokeOptions options)
    public static Output<GetWaitingRoomRulesResult> getWaitingRoomRules(GetWaitingRoomRulesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getWaitingRoomRules:getWaitingRoomRules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    WaitingRoomId string
    ZoneId string
    Identifier
    WaitingRoomId string
    ZoneId string
    Identifier
    waitingRoomId String
    zoneId String
    Identifier
    waitingRoomId string
    zoneId string
    Identifier
    waiting_room_id str
    zone_id str
    Identifier
    waitingRoomId String
    zoneId String
    Identifier

    getWaitingRoomRules Result

    The following output properties are available:

    Action string
    The action to take when the expression matches. Available values: "bypasswaitingroom".
    Description string
    The description of the rule.
    Enabled bool
    When set to true, the rule is enabled.
    Expression string
    Criteria defining when there is a match for the current rule.
    Id string
    The ID of the rule.
    LastUpdated string
    Version string
    The version of the rule.
    WaitingRoomId string
    ZoneId string
    Identifier
    Action string
    The action to take when the expression matches. Available values: "bypasswaitingroom".
    Description string
    The description of the rule.
    Enabled bool
    When set to true, the rule is enabled.
    Expression string
    Criteria defining when there is a match for the current rule.
    Id string
    The ID of the rule.
    LastUpdated string
    Version string
    The version of the rule.
    WaitingRoomId string
    ZoneId string
    Identifier
    action String
    The action to take when the expression matches. Available values: "bypasswaitingroom".
    description String
    The description of the rule.
    enabled Boolean
    When set to true, the rule is enabled.
    expression String
    Criteria defining when there is a match for the current rule.
    id String
    The ID of the rule.
    lastUpdated String
    version String
    The version of the rule.
    waitingRoomId String
    zoneId String
    Identifier
    action string
    The action to take when the expression matches. Available values: "bypasswaitingroom".
    description string
    The description of the rule.
    enabled boolean
    When set to true, the rule is enabled.
    expression string
    Criteria defining when there is a match for the current rule.
    id string
    The ID of the rule.
    lastUpdated string
    version string
    The version of the rule.
    waitingRoomId string
    zoneId string
    Identifier
    action str
    The action to take when the expression matches. Available values: "bypasswaitingroom".
    description str
    The description of the rule.
    enabled bool
    When set to true, the rule is enabled.
    expression str
    Criteria defining when there is a match for the current rule.
    id str
    The ID of the rule.
    last_updated str
    version str
    The version of the rule.
    waiting_room_id str
    zone_id str
    Identifier
    action String
    The action to take when the expression matches. Available values: "bypasswaitingroom".
    description String
    The description of the rule.
    enabled Boolean
    When set to true, the rule is enabled.
    expression String
    Criteria defining when there is a match for the current rule.
    id String
    The ID of the rule.
    lastUpdated String
    version String
    The version of the rule.
    waitingRoomId String
    zoneId String
    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.1.2 published on Monday, Apr 28, 2025 by Pulumi