Cloudflare v6.11.0 published on Friday, Oct 31, 2025 by Pulumi
cloudflare.getWorkers
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWorkers = cloudflare.getWorkers({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_workers = cloudflare.get_workers(account_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.LookupWorkers(ctx, &cloudflare.LookupWorkersArgs{
AccountId: "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 exampleWorkers = Cloudflare.GetWorkers.Invoke(new()
{
AccountId = "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.GetWorkersArgs;
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 exampleWorkers = CloudflareFunctions.getWorkers(GetWorkersArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
variables:
exampleWorkers:
fn::invoke:
function: cloudflare:getWorkers
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
Using getWorkers
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 getWorkers(args: GetWorkersArgs, opts?: InvokeOptions): Promise<GetWorkersResult>
function getWorkersOutput(args: GetWorkersOutputArgs, opts?: InvokeOptions): Output<GetWorkersResult>def get_workers(account_id: Optional[str] = None,
max_items: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkersResult
def get_workers_output(account_id: Optional[pulumi.Input[str]] = None,
max_items: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWorkersResult]func LookupWorkers(ctx *Context, args *LookupWorkersArgs, opts ...InvokeOption) (*LookupWorkersResult, error)
func LookupWorkersOutput(ctx *Context, args *LookupWorkersOutputArgs, opts ...InvokeOption) LookupWorkersResultOutput> Note: This function is named LookupWorkers in the Go SDK.
public static class GetWorkers
{
public static Task<GetWorkersResult> InvokeAsync(GetWorkersArgs args, InvokeOptions? opts = null)
public static Output<GetWorkersResult> Invoke(GetWorkersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWorkersResult> getWorkers(GetWorkersArgs args, InvokeOptions options)
public static Output<GetWorkersResult> getWorkers(GetWorkersArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getWorkers:getWorkers
arguments:
# arguments dictionaryThe following arguments are supported:
- account_
id str - Identifier.
- max_
items int - Max items to fetch, default: 1000
getWorkers Result
The following output properties are available:
- Account
Id string - Identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Workers Result> - The items returned by the data source
- Max
Items int - Max items to fetch, default: 1000
- Account
Id string - Identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Workers Result - The items returned by the data source
- Max
Items int - Max items to fetch, default: 1000
- account
Id String - Identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Workers Result> - The items returned by the data source
- max
Items Integer - Max items to fetch, default: 1000
- account
Id string - Identifier.
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Workers Result[] - The items returned by the data source
- max
Items number - Max items to fetch, default: 1000
- account_
id str - Identifier.
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Workers Result] - The items returned by the data source
- max_
items int - Max items to fetch, default: 1000
- account
Id String - Identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Property Map>
- The items returned by the data source
- max
Items Number - Max items to fetch, default: 1000
Supporting Types
GetWorkersResult
- Created
On string - When the Worker was created.
- Id string
- Immutable ID of the Worker.
- Logpush bool
- Whether logpush is enabled for the Worker.
- Name string
- Name of the Worker.
- Observability
Get
Workers Result Observability - Observability settings for the Worker.
- References
Get
Workers Result References - Other resources that reference the Worker and depend on it existing.
- Subdomain
Get
Workers Result Subdomain - Subdomain settings for the Worker.
- List<string>
- Tags associated with the Worker.
- Tail
Consumers List<GetWorkers Result Tail Consumer> - Other Workers that should consume logs from the Worker.
- Updated
On string - When the Worker was most recently updated.
- Created
On string - When the Worker was created.
- Id string
- Immutable ID of the Worker.
- Logpush bool
- Whether logpush is enabled for the Worker.
- Name string
- Name of the Worker.
- Observability
Get
Workers Result Observability - Observability settings for the Worker.
- References
Get
Workers Result References - Other resources that reference the Worker and depend on it existing.
- Subdomain
Get
Workers Result Subdomain - Subdomain settings for the Worker.
- []string
- Tags associated with the Worker.
- Tail
Consumers []GetWorkers Result Tail Consumer - Other Workers that should consume logs from the Worker.
- Updated
On string - When the Worker was most recently updated.
- created
On String - When the Worker was created.
- id String
- Immutable ID of the Worker.
- logpush Boolean
- Whether logpush is enabled for the Worker.
- name String
- Name of the Worker.
- observability
Get
Workers Result Observability - Observability settings for the Worker.
- references
Get
Workers Result References - Other resources that reference the Worker and depend on it existing.
- subdomain
Get
Workers Result Subdomain - Subdomain settings for the Worker.
- List<String>
- Tags associated with the Worker.
- tail
Consumers List<GetWorkers Result Tail Consumer> - Other Workers that should consume logs from the Worker.
- updated
On String - When the Worker was most recently updated.
- created
On string - When the Worker was created.
- id string
- Immutable ID of the Worker.
- logpush boolean
- Whether logpush is enabled for the Worker.
- name string
- Name of the Worker.
- observability
Get
Workers Result Observability - Observability settings for the Worker.
- references
Get
Workers Result References - Other resources that reference the Worker and depend on it existing.
- subdomain
Get
Workers Result Subdomain - Subdomain settings for the Worker.
- string[]
- Tags associated with the Worker.
- tail
Consumers GetWorkers Result Tail Consumer[] - Other Workers that should consume logs from the Worker.
- updated
On string - When the Worker was most recently updated.
- created_
on str - When the Worker was created.
- id str
- Immutable ID of the Worker.
- logpush bool
- Whether logpush is enabled for the Worker.
- name str
- Name of the Worker.
- observability
Get
Workers Result Observability - Observability settings for the Worker.
- references
Get
Workers Result References - Other resources that reference the Worker and depend on it existing.
- subdomain
Get
Workers Result Subdomain - Subdomain settings for the Worker.
- Sequence[str]
- Tags associated with the Worker.
- tail_
consumers Sequence[GetWorkers Result Tail Consumer] - Other Workers that should consume logs from the Worker.
- updated_
on str - When the Worker was most recently updated.
- created
On String - When the Worker was created.
- id String
- Immutable ID of the Worker.
- logpush Boolean
- Whether logpush is enabled for the Worker.
- name String
- Name of the Worker.
- observability Property Map
- Observability settings for the Worker.
- references Property Map
- Other resources that reference the Worker and depend on it existing.
- subdomain Property Map
- Subdomain settings for the Worker.
- List<String>
- Tags associated with the Worker.
- tail
Consumers List<Property Map> - Other Workers that should consume logs from the Worker.
- updated
On String - When the Worker was most recently updated.
GetWorkersResultObservability
- Enabled bool
- Whether observability is enabled for the Worker.
- Head
Sampling doubleRate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Logs
Get
Workers Result Observability Logs - Log settings for the Worker.
- Enabled bool
- Whether observability is enabled for the Worker.
- Head
Sampling float64Rate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Logs
Get
Workers Result Observability Logs - Log settings for the Worker.
- enabled Boolean
- Whether observability is enabled for the Worker.
- head
Sampling DoubleRate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- logs
Get
Workers Result Observability Logs - Log settings for the Worker.
- enabled boolean
- Whether observability is enabled for the Worker.
- head
Sampling numberRate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- logs
Get
Workers Result Observability Logs - Log settings for the Worker.
- enabled bool
- Whether observability is enabled for the Worker.
- head_
sampling_ floatrate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- logs
Get
Workers Result Observability Logs - Log settings for the Worker.
- enabled Boolean
- Whether observability is enabled for the Worker.
- head
Sampling NumberRate - The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).
- logs Property Map
- Log settings for the Worker.
GetWorkersResultObservabilityLogs
- Enabled bool
- Whether logs are enabled for the Worker.
- Head
Sampling doubleRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Invocation
Logs bool - Whether invocation logs are enabled for the Worker.
- Enabled bool
- Whether logs are enabled for the Worker.
- Head
Sampling float64Rate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- Invocation
Logs bool - Whether invocation logs are enabled for the Worker.
- enabled Boolean
- Whether logs are enabled for the Worker.
- head
Sampling DoubleRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation
Logs Boolean - Whether invocation logs are enabled for the Worker.
- enabled boolean
- Whether logs are enabled for the Worker.
- head
Sampling numberRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation
Logs boolean - Whether invocation logs are enabled for the Worker.
- enabled bool
- Whether logs are enabled for the Worker.
- head_
sampling_ floatrate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation_
logs bool - Whether invocation logs are enabled for the Worker.
- enabled Boolean
- Whether logs are enabled for the Worker.
- head
Sampling NumberRate - The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).
- invocation
Logs Boolean - Whether invocation logs are enabled for the Worker.
GetWorkersResultReferences
- Dispatch
Namespace List<GetOutbounds Workers Result References Dispatch Namespace Outbound> - Other Workers that reference the Worker as an outbound for a dispatch namespace.
- Domains
List<Get
Workers Result References Domain> - Custom domains connected to the Worker.
- Durable
Objects List<GetWorkers Result References Durable Object> - Other Workers that reference Durable Object classes implemented by the Worker.
- Queues
List<Get
Workers Result References Queue> - Queues that send messages to the Worker.
- Workers
List<Get
Workers Result References Worker> - Other Workers that reference the Worker using service bindings.
- Dispatch
Namespace []GetOutbounds Workers Result References Dispatch Namespace Outbound - Other Workers that reference the Worker as an outbound for a dispatch namespace.
- Domains
[]Get
Workers Result References Domain - Custom domains connected to the Worker.
- Durable
Objects []GetWorkers Result References Durable Object - Other Workers that reference Durable Object classes implemented by the Worker.
- Queues
[]Get
Workers Result References Queue - Queues that send messages to the Worker.
- Workers
[]Get
Workers Result References Worker - Other Workers that reference the Worker using service bindings.
- dispatch
Namespace List<GetOutbounds Workers Result References Dispatch Namespace Outbound> - Other Workers that reference the Worker as an outbound for a dispatch namespace.
- domains
List<Get
Workers Result References Domain> - Custom domains connected to the Worker.
- durable
Objects List<GetWorkers Result References Durable Object> - Other Workers that reference Durable Object classes implemented by the Worker.
- queues
List<Get
Workers Result References Queue> - Queues that send messages to the Worker.
- workers
List<Get
Workers Result References Worker> - Other Workers that reference the Worker using service bindings.
- dispatch
Namespace GetOutbounds Workers Result References Dispatch Namespace Outbound[] - Other Workers that reference the Worker as an outbound for a dispatch namespace.
- domains
Get
Workers Result References Domain[] - Custom domains connected to the Worker.
- durable
Objects GetWorkers Result References Durable Object[] - Other Workers that reference Durable Object classes implemented by the Worker.
- queues
Get
Workers Result References Queue[] - Queues that send messages to the Worker.
- workers
Get
Workers Result References Worker[] - Other Workers that reference the Worker using service bindings.
- dispatch_
namespace_ Sequence[Getoutbounds Workers Result References Dispatch Namespace Outbound] - Other Workers that reference the Worker as an outbound for a dispatch namespace.
- domains
Sequence[Get
Workers Result References Domain] - Custom domains connected to the Worker.
- durable_
objects Sequence[GetWorkers Result References Durable Object] - Other Workers that reference Durable Object classes implemented by the Worker.
- queues
Sequence[Get
Workers Result References Queue] - Queues that send messages to the Worker.
- workers
Sequence[Get
Workers Result References Worker] - Other Workers that reference the Worker using service bindings.
- dispatch
Namespace List<Property Map>Outbounds - Other Workers that reference the Worker as an outbound for a dispatch namespace.
- domains List<Property Map>
- Custom domains connected to the Worker.
- durable
Objects List<Property Map> - Other Workers that reference Durable Object classes implemented by the Worker.
- queues List<Property Map>
- Queues that send messages to the Worker.
- workers List<Property Map>
- Other Workers that reference the Worker using service bindings.
GetWorkersResultReferencesDispatchNamespaceOutbound
- Namespace
Id string - ID of the dispatch namespace.
- Namespace
Name string - Name of the dispatch namespace.
- Worker
Id string - ID of the Worker using the dispatch namespace.
- Worker
Name string - Name of the Worker using the dispatch namespace.
- Namespace
Id string - ID of the dispatch namespace.
- Namespace
Name string - Name of the dispatch namespace.
- Worker
Id string - ID of the Worker using the dispatch namespace.
- Worker
Name string - Name of the Worker using the dispatch namespace.
- namespace
Id String - ID of the dispatch namespace.
- namespace
Name String - Name of the dispatch namespace.
- worker
Id String - ID of the Worker using the dispatch namespace.
- worker
Name String - Name of the Worker using the dispatch namespace.
- namespace
Id string - ID of the dispatch namespace.
- namespace
Name string - Name of the dispatch namespace.
- worker
Id string - ID of the Worker using the dispatch namespace.
- worker
Name string - Name of the Worker using the dispatch namespace.
- namespace_
id str - ID of the dispatch namespace.
- namespace_
name str - Name of the dispatch namespace.
- worker_
id str - ID of the Worker using the dispatch namespace.
- worker_
name str - Name of the Worker using the dispatch namespace.
- namespace
Id String - ID of the dispatch namespace.
- namespace
Name String - Name of the dispatch namespace.
- worker
Id String - ID of the Worker using the dispatch namespace.
- worker
Name String - Name of the Worker using the dispatch namespace.
GetWorkersResultReferencesDomain
- Certificate
Id string - ID of the TLS certificate issued for the custom domain.
- Hostname string
- Full hostname of the custom domain, including the zone name.
- Id string
- ID of the custom domain.
- Zone
Id string - ID of the zone.
- Zone
Name string - Name of the zone.
- Certificate
Id string - ID of the TLS certificate issued for the custom domain.
- Hostname string
- Full hostname of the custom domain, including the zone name.
- Id string
- ID of the custom domain.
- Zone
Id string - ID of the zone.
- Zone
Name string - Name of the zone.
- certificate
Id String - ID of the TLS certificate issued for the custom domain.
- hostname String
- Full hostname of the custom domain, including the zone name.
- id String
- ID of the custom domain.
- zone
Id String - ID of the zone.
- zone
Name String - Name of the zone.
- certificate
Id string - ID of the TLS certificate issued for the custom domain.
- hostname string
- Full hostname of the custom domain, including the zone name.
- id string
- ID of the custom domain.
- zone
Id string - ID of the zone.
- zone
Name string - Name of the zone.
- certificate_
id str - ID of the TLS certificate issued for the custom domain.
- hostname str
- Full hostname of the custom domain, including the zone name.
- id str
- ID of the custom domain.
- zone_
id str - ID of the zone.
- zone_
name str - Name of the zone.
- certificate
Id String - ID of the TLS certificate issued for the custom domain.
- hostname String
- Full hostname of the custom domain, including the zone name.
- id String
- ID of the custom domain.
- zone
Id String - ID of the zone.
- zone
Name String - Name of the zone.
GetWorkersResultReferencesDurableObject
- Namespace
Id string - ID of the Durable Object namespace being used.
- Namespace
Name string - Name of the Durable Object namespace being used.
- Worker
Id string - ID of the Worker using the Durable Object implementation.
- Worker
Name string - Name of the Worker using the Durable Object implementation.
- Namespace
Id string - ID of the Durable Object namespace being used.
- Namespace
Name string - Name of the Durable Object namespace being used.
- Worker
Id string - ID of the Worker using the Durable Object implementation.
- Worker
Name string - Name of the Worker using the Durable Object implementation.
- namespace
Id String - ID of the Durable Object namespace being used.
- namespace
Name String - Name of the Durable Object namespace being used.
- worker
Id String - ID of the Worker using the Durable Object implementation.
- worker
Name String - Name of the Worker using the Durable Object implementation.
- namespace
Id string - ID of the Durable Object namespace being used.
- namespace
Name string - Name of the Durable Object namespace being used.
- worker
Id string - ID of the Worker using the Durable Object implementation.
- worker
Name string - Name of the Worker using the Durable Object implementation.
- namespace_
id str - ID of the Durable Object namespace being used.
- namespace_
name str - Name of the Durable Object namespace being used.
- worker_
id str - ID of the Worker using the Durable Object implementation.
- worker_
name str - Name of the Worker using the Durable Object implementation.
- namespace
Id String - ID of the Durable Object namespace being used.
- namespace
Name String - Name of the Durable Object namespace being used.
- worker
Id String - ID of the Worker using the Durable Object implementation.
- worker
Name String - Name of the Worker using the Durable Object implementation.
GetWorkersResultReferencesQueue
- Queue
Consumer stringId - ID of the queue consumer configuration.
- Queue
Id string - ID of the queue.
- Queue
Name string - Name of the queue.
- Queue
Consumer stringId - ID of the queue consumer configuration.
- Queue
Id string - ID of the queue.
- Queue
Name string - Name of the queue.
- queue
Consumer StringId - ID of the queue consumer configuration.
- queue
Id String - ID of the queue.
- queue
Name String - Name of the queue.
- queue
Consumer stringId - ID of the queue consumer configuration.
- queue
Id string - ID of the queue.
- queue
Name string - Name of the queue.
- queue_
consumer_ strid - ID of the queue consumer configuration.
- queue_
id str - ID of the queue.
- queue_
name str - Name of the queue.
- queue
Consumer StringId - ID of the queue consumer configuration.
- queue
Id String - ID of the queue.
- queue
Name String - Name of the queue.
GetWorkersResultReferencesWorker
GetWorkersResultSubdomain
- Enabled bool
- Whether the *.workers.dev subdomain is enabled for the Worker.
- Previews
Enabled bool - Whether preview URLs are enabled for the Worker.
- Enabled bool
- Whether the *.workers.dev subdomain is enabled for the Worker.
- Previews
Enabled bool - Whether preview URLs are enabled for the Worker.
- enabled Boolean
- Whether the *.workers.dev subdomain is enabled for the Worker.
- previews
Enabled Boolean - Whether preview URLs are enabled for the Worker.
- enabled boolean
- Whether the *.workers.dev subdomain is enabled for the Worker.
- previews
Enabled boolean - Whether preview URLs are enabled for the Worker.
- enabled bool
- Whether the *.workers.dev subdomain is enabled for the Worker.
- previews_
enabled bool - Whether preview URLs are enabled for the Worker.
- enabled Boolean
- Whether the *.workers.dev subdomain is enabled for the Worker.
- previews
Enabled Boolean - Whether preview URLs are enabled for the Worker.
GetWorkersResultTailConsumer
- Name string
- Name of the consumer Worker.
- Name string
- Name of the consumer Worker.
- name String
- Name of the consumer Worker.
- name string
- Name of the consumer Worker.
- name str
- Name of the consumer Worker.
- name String
- Name of the consumer Worker.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
