1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getQueue
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.getQueue

Explore with Pulumi AI

Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleQueue = cloudflare.getQueue({
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    queueId: "023e105f4ecef8ad9ca31a8372d0c353",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_queue = cloudflare.get_queue(account_id="023e105f4ecef8ad9ca31a8372d0c353",
    queue_id="023e105f4ecef8ad9ca31a8372d0c353")
Copy
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.LookupQueue(ctx, &cloudflare.LookupQueueArgs{
			AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
			QueueId:   pulumi.StringRef("023e105f4ecef8ad9ca31a8372d0c353"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleQueue = Cloudflare.GetQueue.Invoke(new()
    {
        AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        QueueId = "023e105f4ecef8ad9ca31a8372d0c353",
    });

});
Copy
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.GetQueueArgs;
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 exampleQueue = CloudflareFunctions.getQueue(GetQueueArgs.builder()
            .accountId("023e105f4ecef8ad9ca31a8372d0c353")
            .queueId("023e105f4ecef8ad9ca31a8372d0c353")
            .build());

    }
}
Copy
variables:
  exampleQueue:
    fn::invoke:
      function: cloudflare:getQueue
      arguments:
        accountId: 023e105f4ecef8ad9ca31a8372d0c353
        queueId: 023e105f4ecef8ad9ca31a8372d0c353
Copy

Using getQueue

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 getQueue(args: GetQueueArgs, opts?: InvokeOptions): Promise<GetQueueResult>
function getQueueOutput(args: GetQueueOutputArgs, opts?: InvokeOptions): Output<GetQueueResult>
Copy
def get_queue(account_id: Optional[str] = None,
              queue_id: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetQueueResult
def get_queue_output(account_id: Optional[pulumi.Input[str]] = None,
              queue_id: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetQueueResult]
Copy
func LookupQueue(ctx *Context, args *LookupQueueArgs, opts ...InvokeOption) (*LookupQueueResult, error)
func LookupQueueOutput(ctx *Context, args *LookupQueueOutputArgs, opts ...InvokeOption) LookupQueueResultOutput
Copy

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

public static class GetQueue 
{
    public static Task<GetQueueResult> InvokeAsync(GetQueueArgs args, InvokeOptions? opts = null)
    public static Output<GetQueueResult> Invoke(GetQueueInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetQueueResult> getQueue(GetQueueArgs args, InvokeOptions options)
public static Output<GetQueueResult> getQueue(GetQueueArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: cloudflare:index/getQueue:getQueue
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AccountId This property is required. string
A Resource identifier.
QueueId string
A Resource identifier.
AccountId This property is required. string
A Resource identifier.
QueueId string
A Resource identifier.
accountId This property is required. String
A Resource identifier.
queueId String
A Resource identifier.
accountId This property is required. string
A Resource identifier.
queueId string
A Resource identifier.
account_id This property is required. str
A Resource identifier.
queue_id str
A Resource identifier.
accountId This property is required. String
A Resource identifier.
queueId String
A Resource identifier.

getQueue Result

The following output properties are available:

AccountId string
A Resource identifier.
Consumers List<GetQueueConsumer>
ConsumersTotalCount double
CreatedOn string
Id string
A Resource identifier.
ModifiedOn string
Producers List<GetQueueProducer>
ProducersTotalCount double
QueueId string
A Resource identifier.
QueueName string
Settings GetQueueSettings
AccountId string
A Resource identifier.
Consumers []GetQueueConsumerType
ConsumersTotalCount float64
CreatedOn string
Id string
A Resource identifier.
ModifiedOn string
Producers []GetQueueProducer
ProducersTotalCount float64
QueueId string
A Resource identifier.
QueueName string
Settings GetQueueSettings
accountId String
A Resource identifier.
consumers List<GetQueueConsumer>
consumersTotalCount Double
createdOn String
id String
A Resource identifier.
modifiedOn String
producers List<GetQueueProducer>
producersTotalCount Double
queueId String
A Resource identifier.
queueName String
settings GetQueueSettings
accountId string
A Resource identifier.
consumers GetQueueConsumer[]
consumersTotalCount number
createdOn string
id string
A Resource identifier.
modifiedOn string
producers GetQueueProducer[]
producersTotalCount number
queueId string
A Resource identifier.
queueName string
settings GetQueueSettings
accountId String
A Resource identifier.
consumers List<Property Map>
consumersTotalCount Number
createdOn String
id String
A Resource identifier.
modifiedOn String
producers List<Property Map>
producersTotalCount Number
queueId String
A Resource identifier.
queueName String
settings Property Map

Supporting Types

GetQueueConsumer

ConsumerId This property is required. string
A Resource identifier.
CreatedOn This property is required. string
QueueId This property is required. string
A Resource identifier.
Script This property is required. string
Name of a Worker
ScriptName This property is required. string
Name of a Worker
Settings This property is required. GetQueueConsumerSettings
Type This property is required. string
Available values: "worker".
ConsumerId This property is required. string
A Resource identifier.
CreatedOn This property is required. string
QueueId This property is required. string
A Resource identifier.
Script This property is required. string
Name of a Worker
ScriptName This property is required. string
Name of a Worker
Settings This property is required. GetQueueConsumerSettings
Type This property is required. string
Available values: "worker".
consumerId This property is required. String
A Resource identifier.
createdOn This property is required. String
queueId This property is required. String
A Resource identifier.
script This property is required. String
Name of a Worker
scriptName This property is required. String
Name of a Worker
settings This property is required. GetQueueConsumerSettings
type This property is required. String
Available values: "worker".
consumerId This property is required. string
A Resource identifier.
createdOn This property is required. string
queueId This property is required. string
A Resource identifier.
script This property is required. string
Name of a Worker
scriptName This property is required. string
Name of a Worker
settings This property is required. GetQueueConsumerSettings
type This property is required. string
Available values: "worker".
consumer_id This property is required. str
A Resource identifier.
created_on This property is required. str
queue_id This property is required. str
A Resource identifier.
script This property is required. str
Name of a Worker
script_name This property is required. str
Name of a Worker
settings This property is required. GetQueueConsumerSettings
type This property is required. str
Available values: "worker".
consumerId This property is required. String
A Resource identifier.
createdOn This property is required. String
queueId This property is required. String
A Resource identifier.
script This property is required. String
Name of a Worker
scriptName This property is required. String
Name of a Worker
settings This property is required. Property Map
type This property is required. String
Available values: "worker".

GetQueueConsumerSettings

BatchSize This property is required. double
The maximum number of messages to include in a batch.
MaxConcurrency This property is required. double
Maximum number of concurrent consumers that may consume from this Queue. Set to null to automatically opt in to the platform's maximum (recommended).
MaxRetries This property is required. double
The maximum number of retries
MaxWaitTimeMs This property is required. double
The number of milliseconds to wait for a batch to fill up before attempting to deliver it
RetryDelay This property is required. double
The number of seconds to delay before making the message available for another attempt.
VisibilityTimeoutMs This property is required. double
The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.
BatchSize This property is required. float64
The maximum number of messages to include in a batch.
MaxConcurrency This property is required. float64
Maximum number of concurrent consumers that may consume from this Queue. Set to null to automatically opt in to the platform's maximum (recommended).
MaxRetries This property is required. float64
The maximum number of retries
MaxWaitTimeMs This property is required. float64
The number of milliseconds to wait for a batch to fill up before attempting to deliver it
RetryDelay This property is required. float64
The number of seconds to delay before making the message available for another attempt.
VisibilityTimeoutMs This property is required. float64
The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.
batchSize This property is required. Double
The maximum number of messages to include in a batch.
maxConcurrency This property is required. Double
Maximum number of concurrent consumers that may consume from this Queue. Set to null to automatically opt in to the platform's maximum (recommended).
maxRetries This property is required. Double
The maximum number of retries
maxWaitTimeMs This property is required. Double
The number of milliseconds to wait for a batch to fill up before attempting to deliver it
retryDelay This property is required. Double
The number of seconds to delay before making the message available for another attempt.
visibilityTimeoutMs This property is required. Double
The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.
batchSize This property is required. number
The maximum number of messages to include in a batch.
maxConcurrency This property is required. number
Maximum number of concurrent consumers that may consume from this Queue. Set to null to automatically opt in to the platform's maximum (recommended).
maxRetries This property is required. number
The maximum number of retries
maxWaitTimeMs This property is required. number
The number of milliseconds to wait for a batch to fill up before attempting to deliver it
retryDelay This property is required. number
The number of seconds to delay before making the message available for another attempt.
visibilityTimeoutMs This property is required. number
The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.
batch_size This property is required. float
The maximum number of messages to include in a batch.
max_concurrency This property is required. float
Maximum number of concurrent consumers that may consume from this Queue. Set to null to automatically opt in to the platform's maximum (recommended).
max_retries This property is required. float
The maximum number of retries
max_wait_time_ms This property is required. float
The number of milliseconds to wait for a batch to fill up before attempting to deliver it
retry_delay This property is required. float
The number of seconds to delay before making the message available for another attempt.
visibility_timeout_ms This property is required. float
The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.
batchSize This property is required. Number
The maximum number of messages to include in a batch.
maxConcurrency This property is required. Number
Maximum number of concurrent consumers that may consume from this Queue. Set to null to automatically opt in to the platform's maximum (recommended).
maxRetries This property is required. Number
The maximum number of retries
maxWaitTimeMs This property is required. Number
The number of milliseconds to wait for a batch to fill up before attempting to deliver it
retryDelay This property is required. Number
The number of seconds to delay before making the message available for another attempt.
visibilityTimeoutMs This property is required. Number
The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.

GetQueueProducer

BucketName This property is required. string
Script This property is required. string
Type This property is required. string
Available values: "worker".
BucketName This property is required. string
Script This property is required. string
Type This property is required. string
Available values: "worker".
bucketName This property is required. String
script This property is required. String
type This property is required. String
Available values: "worker".
bucketName This property is required. string
script This property is required. string
type This property is required. string
Available values: "worker".
bucket_name This property is required. str
script This property is required. str
type This property is required. str
Available values: "worker".
bucketName This property is required. String
script This property is required. String
type This property is required. String
Available values: "worker".

GetQueueSettings

DeliveryDelay This property is required. double
Number of seconds to delay delivery of all messages to consumers.
MessageRetentionPeriod This property is required. double
Number of seconds after which an unconsumed message will be delayed.
DeliveryDelay This property is required. float64
Number of seconds to delay delivery of all messages to consumers.
MessageRetentionPeriod This property is required. float64
Number of seconds after which an unconsumed message will be delayed.
deliveryDelay This property is required. Double
Number of seconds to delay delivery of all messages to consumers.
messageRetentionPeriod This property is required. Double
Number of seconds after which an unconsumed message will be delayed.
deliveryDelay This property is required. number
Number of seconds to delay delivery of all messages to consumers.
messageRetentionPeriod This property is required. number
Number of seconds after which an unconsumed message will be delayed.
delivery_delay This property is required. float
Number of seconds to delay delivery of all messages to consumers.
message_retention_period This property is required. float
Number of seconds after which an unconsumed message will be delayed.
deliveryDelay This property is required. Number
Number of seconds to delay delivery of all messages to consumers.
messageRetentionPeriod This property is required. Number
Number of seconds after which an unconsumed message will be delayed.

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi