Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getWaitingRoom
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWaitingRoom = cloudflare.getWaitingRoom({
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
waitingRoomId: "699d98642c564d2e855e9661899b7252",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_waiting_room = cloudflare.get_waiting_room(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.LookupWaitingRoom(ctx, &cloudflare.LookupWaitingRoomArgs{
ZoneId: "023e105f4ecef8ad9ca31a8372d0c353",
WaitingRoomId: pulumi.StringRef("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 exampleWaitingRoom = Cloudflare.GetWaitingRoom.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.GetWaitingRoomArgs;
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 exampleWaitingRoom = CloudflareFunctions.getWaitingRoom(GetWaitingRoomArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.waitingRoomId("699d98642c564d2e855e9661899b7252")
.build());
}
}
variables:
exampleWaitingRoom:
fn::invoke:
function: cloudflare:getWaitingRoom
arguments:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
waitingRoomId: 699d98642c564d2e855e9661899b7252
Using getWaitingRoom
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 getWaitingRoom(args: GetWaitingRoomArgs, opts?: InvokeOptions): Promise<GetWaitingRoomResult>
function getWaitingRoomOutput(args: GetWaitingRoomOutputArgs, opts?: InvokeOptions): Output<GetWaitingRoomResult>
def get_waiting_room(waiting_room_id: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWaitingRoomResult
def get_waiting_room_output(waiting_room_id: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWaitingRoomResult]
func LookupWaitingRoom(ctx *Context, args *LookupWaitingRoomArgs, opts ...InvokeOption) (*LookupWaitingRoomResult, error)
func LookupWaitingRoomOutput(ctx *Context, args *LookupWaitingRoomOutputArgs, opts ...InvokeOption) LookupWaitingRoomResultOutput
> Note: This function is named LookupWaitingRoom
in the Go SDK.
public static class GetWaitingRoom
{
public static Task<GetWaitingRoomResult> InvokeAsync(GetWaitingRoomArgs args, InvokeOptions? opts = null)
public static Output<GetWaitingRoomResult> Invoke(GetWaitingRoomInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWaitingRoomResult> getWaitingRoom(GetWaitingRoomArgs args, InvokeOptions options)
public static Output<GetWaitingRoomResult> getWaitingRoom(GetWaitingRoomArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getWaitingRoom:getWaitingRoom
arguments:
# arguments dictionary
The following arguments are supported:
- Zone
Id string - Identifier
- Waiting
Room stringId
- Zone
Id string - Identifier
- Waiting
Room stringId
- zone
Id String - Identifier
- waiting
Room StringId
- zone
Id string - Identifier
- waiting
Room stringId
- zone_
id str - Identifier
- waiting_
room_ strid
- zone
Id String - Identifier
- waiting
Room StringId
getWaitingRoom Result
The following output properties are available:
- Additional
Routes List<GetWaiting Room Additional Route> - Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms.
- Get
Waiting Room Cookie Attributes - Configures cookie attributes for the waiting room cookie. This encrypted cookie stores a user's status in the waiting room, such as queue position.
- string
- Appends a '' + a custom suffix to the end of Cloudflare Waiting Room's cookie name(cfwaitingroom). If
cookie_suffix
is "abcd", the cookie name will be__cf_waitingroom_abcd
. This field is required if usingadditional_routes
. - Created
On string - Custom
Page stringHtml - Only available for the Waiting Room Advanced subscription. This is a template html file that will be rendered at the edge. If no custompagehtml is provided, the default waiting room will be used. The template is based on mustache ( https://mustache.github.io/ ). There are several variables that are evaluated by the Cloudflare edge:
- Default
Template stringLanguage - Description string
- Disable
Session boolRenewal - Enabled
Origin List<string>Commands - Host string
- Id string
- Json
Response boolEnabled - Modified
On string - Name string
- New
Users intPer Minute - Next
Event stringPrequeue Start Time - Next
Event stringStart Time - Path string
- Queue
All bool - Queueing
Method string - Queueing
Status intCode - Session
Duration int - Suspended bool
- Total
Active intUsers - Turnstile
Action string - Turnstile
Mode string - Zone
Id string - Identifier
- Waiting
Room stringId
- Additional
Routes []GetWaiting Room Additional Route - Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms.
- Get
Waiting Room Cookie Attributes - Configures cookie attributes for the waiting room cookie. This encrypted cookie stores a user's status in the waiting room, such as queue position.
- string
- Appends a '' + a custom suffix to the end of Cloudflare Waiting Room's cookie name(cfwaitingroom). If
cookie_suffix
is "abcd", the cookie name will be__cf_waitingroom_abcd
. This field is required if usingadditional_routes
. - Created
On string - Custom
Page stringHtml - Only available for the Waiting Room Advanced subscription. This is a template html file that will be rendered at the edge. If no custompagehtml is provided, the default waiting room will be used. The template is based on mustache ( https://mustache.github.io/ ). There are several variables that are evaluated by the Cloudflare edge:
- Default
Template stringLanguage - Description string
- Disable
Session boolRenewal - Enabled
Origin []stringCommands - Host string
- Id string
- Json
Response boolEnabled - Modified
On string - Name string
- New
Users intPer Minute - Next
Event stringPrequeue Start Time - Next
Event stringStart Time - Path string
- Queue
All bool - Queueing
Method string - Queueing
Status intCode - Session
Duration int - Suspended bool
- Total
Active intUsers - Turnstile
Action string - Turnstile
Mode string - Zone
Id string - Identifier
- Waiting
Room stringId
- additional
Routes List<GetWaiting Room Additional Route> - Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms.
- Get
Waiting Room Cookie Attributes - Configures cookie attributes for the waiting room cookie. This encrypted cookie stores a user's status in the waiting room, such as queue position.
- String
- Appends a '' + a custom suffix to the end of Cloudflare Waiting Room's cookie name(cfwaitingroom). If
cookie_suffix
is "abcd", the cookie name will be__cf_waitingroom_abcd
. This field is required if usingadditional_routes
. - created
On String - custom
Page StringHtml - Only available for the Waiting Room Advanced subscription. This is a template html file that will be rendered at the edge. If no custompagehtml is provided, the default waiting room will be used. The template is based on mustache ( https://mustache.github.io/ ). There are several variables that are evaluated by the Cloudflare edge:
- default
Template StringLanguage - description String
- disable
Session BooleanRenewal - enabled
Origin List<String>Commands - host String
- id String
- json
Response BooleanEnabled - modified
On String - name String
- new
Users IntegerPer Minute - next
Event StringPrequeue Start Time - next
Event StringStart Time - path String
- queue
All Boolean - queueing
Method String - queueing
Status IntegerCode - session
Duration Integer - suspended Boolean
- total
Active IntegerUsers - turnstile
Action String - turnstile
Mode String - zone
Id String - Identifier
- waiting
Room StringId
- additional
Routes GetWaiting Room Additional Route[] - Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms.
- Get
Waiting Room Cookie Attributes - Configures cookie attributes for the waiting room cookie. This encrypted cookie stores a user's status in the waiting room, such as queue position.
- string
- Appends a '' + a custom suffix to the end of Cloudflare Waiting Room's cookie name(cfwaitingroom). If
cookie_suffix
is "abcd", the cookie name will be__cf_waitingroom_abcd
. This field is required if usingadditional_routes
. - created
On string - custom
Page stringHtml - Only available for the Waiting Room Advanced subscription. This is a template html file that will be rendered at the edge. If no custompagehtml is provided, the default waiting room will be used. The template is based on mustache ( https://mustache.github.io/ ). There are several variables that are evaluated by the Cloudflare edge:
- default
Template stringLanguage - description string
- disable
Session booleanRenewal - enabled
Origin string[]Commands - host string
- id string
- json
Response booleanEnabled - modified
On string - name string
- new
Users numberPer Minute - next
Event stringPrequeue Start Time - next
Event stringStart Time - path string
- queue
All boolean - queueing
Method string - queueing
Status numberCode - session
Duration number - suspended boolean
- total
Active numberUsers - turnstile
Action string - turnstile
Mode string - zone
Id string - Identifier
- waiting
Room stringId
- additional_
routes Sequence[GetWaiting Room Additional Route] - Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms.
- Get
Waiting Room Cookie Attributes - Configures cookie attributes for the waiting room cookie. This encrypted cookie stores a user's status in the waiting room, such as queue position.
- str
- Appends a '' + a custom suffix to the end of Cloudflare Waiting Room's cookie name(cfwaitingroom). If
cookie_suffix
is "abcd", the cookie name will be__cf_waitingroom_abcd
. This field is required if usingadditional_routes
. - created_
on str - custom_
page_ strhtml - Only available for the Waiting Room Advanced subscription. This is a template html file that will be rendered at the edge. If no custompagehtml is provided, the default waiting room will be used. The template is based on mustache ( https://mustache.github.io/ ). There are several variables that are evaluated by the Cloudflare edge:
- default_
template_ strlanguage - description str
- disable_
session_ boolrenewal - enabled_
origin_ Sequence[str]commands - host str
- id str
- json_
response_ boolenabled - modified_
on str - name str
- new_
users_ intper_ minute - next_
event_ strprequeue_ start_ time - next_
event_ strstart_ time - path str
- queue_
all bool - queueing_
method str - queueing_
status_ intcode - session_
duration int - suspended bool
- total_
active_ intusers - turnstile_
action str - turnstile_
mode str - zone_
id str - Identifier
- waiting_
room_ strid
- additional
Routes List<Property Map> - Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms.
- Property Map
- Configures cookie attributes for the waiting room cookie. This encrypted cookie stores a user's status in the waiting room, such as queue position.
- String
- Appends a '' + a custom suffix to the end of Cloudflare Waiting Room's cookie name(cfwaitingroom). If
cookie_suffix
is "abcd", the cookie name will be__cf_waitingroom_abcd
. This field is required if usingadditional_routes
. - created
On String - custom
Page StringHtml - Only available for the Waiting Room Advanced subscription. This is a template html file that will be rendered at the edge. If no custompagehtml is provided, the default waiting room will be used. The template is based on mustache ( https://mustache.github.io/ ). There are several variables that are evaluated by the Cloudflare edge:
- default
Template StringLanguage - description String
- disable
Session BooleanRenewal - enabled
Origin List<String>Commands - host String
- id String
- json
Response BooleanEnabled - modified
On String - name String
- new
Users NumberPer Minute - next
Event StringPrequeue Start Time - next
Event StringStart Time - path String
- queue
All Boolean - queueing
Method String - queueing
Status NumberCode - session
Duration Number - suspended Boolean
- total
Active NumberUsers - turnstile
Action String - turnstile
Mode String - zone
Id String - Identifier
- waiting
Room StringId
Supporting Types
GetWaitingRoomAdditionalRoute
- Host string
- The hostname to which this waiting room will be applied (no wildcards). The hostname must be the primary domain, subdomain, or custom hostname (if using SSL for SaaS) of this zone. Please do not include the scheme (http:// or https://).
- Path string
- Sets the path within the host to enable the waiting room on. The waiting room will be enabled for all subpaths as well. If there are two waiting rooms on the same subpath, the waiting room for the most specific path will be chosen. Wildcards and query parameters are not supported.
- Host string
- The hostname to which this waiting room will be applied (no wildcards). The hostname must be the primary domain, subdomain, or custom hostname (if using SSL for SaaS) of this zone. Please do not include the scheme (http:// or https://).
- Path string
- Sets the path within the host to enable the waiting room on. The waiting room will be enabled for all subpaths as well. If there are two waiting rooms on the same subpath, the waiting room for the most specific path will be chosen. Wildcards and query parameters are not supported.
- host String
- The hostname to which this waiting room will be applied (no wildcards). The hostname must be the primary domain, subdomain, or custom hostname (if using SSL for SaaS) of this zone. Please do not include the scheme (http:// or https://).
- path String
- Sets the path within the host to enable the waiting room on. The waiting room will be enabled for all subpaths as well. If there are two waiting rooms on the same subpath, the waiting room for the most specific path will be chosen. Wildcards and query parameters are not supported.
- host string
- The hostname to which this waiting room will be applied (no wildcards). The hostname must be the primary domain, subdomain, or custom hostname (if using SSL for SaaS) of this zone. Please do not include the scheme (http:// or https://).
- path string
- Sets the path within the host to enable the waiting room on. The waiting room will be enabled for all subpaths as well. If there are two waiting rooms on the same subpath, the waiting room for the most specific path will be chosen. Wildcards and query parameters are not supported.
- host str
- The hostname to which this waiting room will be applied (no wildcards). The hostname must be the primary domain, subdomain, or custom hostname (if using SSL for SaaS) of this zone. Please do not include the scheme (http:// or https://).
- path str
- Sets the path within the host to enable the waiting room on. The waiting room will be enabled for all subpaths as well. If there are two waiting rooms on the same subpath, the waiting room for the most specific path will be chosen. Wildcards and query parameters are not supported.
- host String
- The hostname to which this waiting room will be applied (no wildcards). The hostname must be the primary domain, subdomain, or custom hostname (if using SSL for SaaS) of this zone. Please do not include the scheme (http:// or https://).
- path String
- Sets the path within the host to enable the waiting room on. The waiting room will be enabled for all subpaths as well. If there are two waiting rooms on the same subpath, the waiting room for the most specific path will be chosen. Wildcards and query parameters are not supported.
GetWaitingRoomCookieAttributes
- Samesite string
- Configures the SameSite attribute on the waiting room cookie. Value
auto
will be translated tolax
ornone
depending if Always Use HTTPS is enabled. Note that when using valuenone
, the secure attribute cannot be set tonever
. Available values: "auto", "lax", "none", "strict". - Secure string
- Configures the Secure attribute on the waiting room cookie. Value
always
indicates that the Secure attribute will be set in the Set-Cookie header,never
indicates that the Secure attribute will not be set, andauto
will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "auto", "always", "never".
- Samesite string
- Configures the SameSite attribute on the waiting room cookie. Value
auto
will be translated tolax
ornone
depending if Always Use HTTPS is enabled. Note that when using valuenone
, the secure attribute cannot be set tonever
. Available values: "auto", "lax", "none", "strict". - Secure string
- Configures the Secure attribute on the waiting room cookie. Value
always
indicates that the Secure attribute will be set in the Set-Cookie header,never
indicates that the Secure attribute will not be set, andauto
will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "auto", "always", "never".
- samesite String
- Configures the SameSite attribute on the waiting room cookie. Value
auto
will be translated tolax
ornone
depending if Always Use HTTPS is enabled. Note that when using valuenone
, the secure attribute cannot be set tonever
. Available values: "auto", "lax", "none", "strict". - secure String
- Configures the Secure attribute on the waiting room cookie. Value
always
indicates that the Secure attribute will be set in the Set-Cookie header,never
indicates that the Secure attribute will not be set, andauto
will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "auto", "always", "never".
- samesite string
- Configures the SameSite attribute on the waiting room cookie. Value
auto
will be translated tolax
ornone
depending if Always Use HTTPS is enabled. Note that when using valuenone
, the secure attribute cannot be set tonever
. Available values: "auto", "lax", "none", "strict". - secure string
- Configures the Secure attribute on the waiting room cookie. Value
always
indicates that the Secure attribute will be set in the Set-Cookie header,never
indicates that the Secure attribute will not be set, andauto
will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "auto", "always", "never".
- samesite str
- Configures the SameSite attribute on the waiting room cookie. Value
auto
will be translated tolax
ornone
depending if Always Use HTTPS is enabled. Note that when using valuenone
, the secure attribute cannot be set tonever
. Available values: "auto", "lax", "none", "strict". - secure str
- Configures the Secure attribute on the waiting room cookie. Value
always
indicates that the Secure attribute will be set in the Set-Cookie header,never
indicates that the Secure attribute will not be set, andauto
will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "auto", "always", "never".
- samesite String
- Configures the SameSite attribute on the waiting room cookie. Value
auto
will be translated tolax
ornone
depending if Always Use HTTPS is enabled. Note that when using valuenone
, the secure attribute cannot be set tonever
. Available values: "auto", "lax", "none", "strict". - secure String
- Configures the Secure attribute on the waiting room cookie. Value
always
indicates that the Secure attribute will be set in the Set-Cookie header,never
indicates that the Secure attribute will not be set, andauto
will set the Secure attribute depending if Always Use HTTPS is enabled. Available values: "auto", "always", "never".
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.