Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
published on Wednesday, Oct 21, 2026 by Pulumi
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
published on Wednesday, Oct 21, 2026 by Pulumi
Accepted Permissions
Workers Scripts ReadWorkers Scripts WriteWorkers Tail Read
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWorkersDeployment = cloudflare.getWorkersDeployment({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
scriptName: "this-is_my_script-01",
deploymentId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_workers_deployment = cloudflare.get_workers_deployment(account_id="023e105f4ecef8ad9ca31a8372d0c353",
script_name="this-is_my_script-01",
deployment_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
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.GetWorkersDeployment(ctx, &cloudflare.LookupWorkersDeploymentArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
ScriptName: "this-is_my_script-01",
DeploymentId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
}, 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 exampleWorkersDeployment = Cloudflare.GetWorkersDeployment.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
ScriptName = "this-is_my_script-01",
DeploymentId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
});
});
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.GetWorkersDeploymentArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 exampleWorkersDeployment = CloudflareFunctions.getWorkersDeployment(GetWorkersDeploymentArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.scriptName("this-is_my_script-01")
.deploymentId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.build());
}
}
variables:
exampleWorkersDeployment:
fn::invoke:
function: cloudflare:getWorkersDeployment
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
scriptName: this-is_my_script-01
deploymentId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
terraform {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
data "cloudflare_workers_deployment" "exampleWorkersDeployment" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
script_name = "this-is_my_script-01"
deployment_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
Using getWorkersDeployment
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 getWorkersDeployment(args: GetWorkersDeploymentArgs, opts?: InvokeOptions): Promise<GetWorkersDeploymentResult>
function getWorkersDeploymentOutput(args: GetWorkersDeploymentOutputArgs, opts?: InvokeOutputOptions): Output<GetWorkersDeploymentResult>def get_workers_deployment(account_id: Optional[str] = None,
deployment_id: Optional[str] = None,
script_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkersDeploymentResult
def get_workers_deployment_output(account_id: pulumi.Input[Optional[str]] = None,
deployment_id: pulumi.Input[Optional[str]] = None,
script_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetWorkersDeploymentResult]func LookupWorkersDeployment(ctx *Context, args *LookupWorkersDeploymentArgs, opts ...InvokeOption) (*LookupWorkersDeploymentResult, error)
func LookupWorkersDeploymentOutput(ctx *Context, args *LookupWorkersDeploymentOutputArgs, opts ...InvokeOption) LookupWorkersDeploymentResultOutput> Note: This function is named LookupWorkersDeployment in the Go SDK.
public static class GetWorkersDeployment
{
public static Task<GetWorkersDeploymentResult> InvokeAsync(GetWorkersDeploymentArgs args, InvokeOptions? opts = null)
public static Output<GetWorkersDeploymentResult> Invoke(GetWorkersDeploymentInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetWorkersDeploymentResult> Invoke(GetWorkersDeploymentInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetWorkersDeploymentResult> getWorkersDeployment(GetWorkersDeploymentArgs args, InvokeOptions options)
public static Output<GetWorkersDeploymentResult> getWorkersDeployment(GetWorkersDeploymentArgs args, InvokeOptions options)
public static Output<GetWorkersDeploymentResult> getWorkersDeployment(GetWorkersDeploymentArgs args, InvokeOutputOptions options)
fn::invoke:
function: cloudflare:index/getWorkersDeployment:getWorkersDeployment
arguments:
# arguments dictionarydata "cloudflare_get_workers_deployment" "name" {
# arguments
}The following arguments are supported:
- Account
Id string - Identifier.
- Deployment
Id string - Script
Name string - Name of the script.
- Account
Id string - Identifier.
- Deployment
Id string - Script
Name string - Name of the script.
- account_
id string - Identifier.
- deployment_
id string - script_
name string - Name of the script.
- account
Id String - Identifier.
- deployment
Id String - script
Name String - Name of the script.
- account
Id string - Identifier.
- deployment
Id string - script
Name string - Name of the script.
- account_
id str - Identifier.
- deployment_
id str - script_
name str - Name of the script.
- account
Id String - Identifier.
- deployment
Id String - script
Name String - Name of the script.
getWorkersDeployment Result
The following output properties are available:
- Account
Id string - Identifier.
- Annotations
Get
Workers Deployment Annotations - string
- Created
On string - Deployment
Id string - Id string
- The ID of this resource.
- Script
Name string - Name of the script.
- Source string
- Strategy string
- Available values: "percentage".
- Versions
List<Get
Workers Deployment Version> - Worker versions included in this deployment. Each object must contain a
versionIdUUID and apercentage; percentages across all objects must total 100. In thecfCLI, pass the entire array as one JSON value to--versions, either inline, for example--versions '[{"versionId":"023e105f-2a42-4f8b-a1c1-73f6a2a30c0f","percentage":100}]', or from a JSON file with--versions @versions.json.
- Account
Id string - Identifier.
- Annotations
Get
Workers Deployment Annotations - string
- Created
On string - Deployment
Id string - Id string
- The ID of this resource.
- Script
Name string - Name of the script.
- Source string
- Strategy string
- Available values: "percentage".
- Versions
[]Get
Workers Deployment Version - Worker versions included in this deployment. Each object must contain a
versionIdUUID and apercentage; percentages across all objects must total 100. In thecfCLI, pass the entire array as one JSON value to--versions, either inline, for example--versions '[{"versionId":"023e105f-2a42-4f8b-a1c1-73f6a2a30c0f","percentage":100}]', or from a JSON file with--versions @versions.json.
- account_
id string - Identifier.
- annotations object
- string
- created_
on string - deployment_
id string - id string
- The ID of this resource.
- script_
name string - Name of the script.
- source string
- strategy string
- Available values: "percentage".
- versions list(object)
- Worker versions included in this deployment. Each object must contain a
versionIdUUID and apercentage; percentages across all objects must total 100. In thecfCLI, pass the entire array as one JSON value to--versions, either inline, for example--versions '[{"versionId":"023e105f-2a42-4f8b-a1c1-73f6a2a30c0f","percentage":100}]', or from a JSON file with--versions @versions.json.
- account
Id String - Identifier.
- annotations
Get
Workers Deployment Annotations - String
- created
On String - deployment
Id String - id String
- The ID of this resource.
- script
Name String - Name of the script.
- source String
- strategy String
- Available values: "percentage".
- versions
List<Get
Workers Deployment Version> - Worker versions included in this deployment. Each object must contain a
versionIdUUID and apercentage; percentages across all objects must total 100. In thecfCLI, pass the entire array as one JSON value to--versions, either inline, for example--versions '[{"versionId":"023e105f-2a42-4f8b-a1c1-73f6a2a30c0f","percentage":100}]', or from a JSON file with--versions @versions.json.
- account
Id string - Identifier.
- annotations
Get
Workers Deployment Annotations - string
- created
On string - deployment
Id string - id string
- The ID of this resource.
- script
Name string - Name of the script.
- source string
- strategy string
- Available values: "percentage".
- versions
Get
Workers Deployment Version[] - Worker versions included in this deployment. Each object must contain a
versionIdUUID and apercentage; percentages across all objects must total 100. In thecfCLI, pass the entire array as one JSON value to--versions, either inline, for example--versions '[{"versionId":"023e105f-2a42-4f8b-a1c1-73f6a2a30c0f","percentage":100}]', or from a JSON file with--versions @versions.json.
- account_
id str - Identifier.
- annotations
Get
Workers Deployment Annotations - str
- created_
on str - deployment_
id str - id str
- The ID of this resource.
- script_
name str - Name of the script.
- source str
- strategy str
- Available values: "percentage".
- versions
Sequence[Get
Workers Deployment Version] - Worker versions included in this deployment. Each object must contain a
versionIdUUID and apercentage; percentages across all objects must total 100. In thecfCLI, pass the entire array as one JSON value to--versions, either inline, for example--versions '[{"versionId":"023e105f-2a42-4f8b-a1c1-73f6a2a30c0f","percentage":100}]', or from a JSON file with--versions @versions.json.
- account
Id String - Identifier.
- annotations Property Map
- String
- created
On String - deployment
Id String - id String
- The ID of this resource.
- script
Name String - Name of the script.
- source String
- strategy String
- Available values: "percentage".
- versions List<Property Map>
- Worker versions included in this deployment. Each object must contain a
versionIdUUID and apercentage; percentages across all objects must total 100. In thecfCLI, pass the entire array as one JSON value to--versions, either inline, for example--versions '[{"versionId":"023e105f-2a42-4f8b-a1c1-73f6a2a30c0f","percentage":100}]', or from a JSON file with--versions @versions.json.
Supporting Types
GetWorkersDeploymentAnnotations
- Workers
Message string - Human-readable message about the deployment. Truncated to 1000 bytes if longer.
- Workers
Triggered stringBy - Operation that triggered the creation of the deployment.
- Workers
Message string - Human-readable message about the deployment. Truncated to 1000 bytes if longer.
- Workers
Triggered stringBy - Operation that triggered the creation of the deployment.
- workers_
message string - Human-readable message about the deployment. Truncated to 1000 bytes if longer.
- workers_
triggered_ stringby - Operation that triggered the creation of the deployment.
- workers
Message String - Human-readable message about the deployment. Truncated to 1000 bytes if longer.
- workers
Triggered StringBy - Operation that triggered the creation of the deployment.
- workers
Message string - Human-readable message about the deployment. Truncated to 1000 bytes if longer.
- workers
Triggered stringBy - Operation that triggered the creation of the deployment.
- workers_
message str - Human-readable message about the deployment. Truncated to 1000 bytes if longer.
- workers_
triggered_ strby - Operation that triggered the creation of the deployment.
- workers
Message String - Human-readable message about the deployment. Truncated to 1000 bytes if longer.
- workers
Triggered StringBy - Operation that triggered the creation of the deployment.
GetWorkersDeploymentVersion
- Percentage double
- Percentage of traffic served by this version.
- Version
Id string - Identifier of the Worker Version.
- Percentage float64
- Percentage of traffic served by this version.
- Version
Id string - Identifier of the Worker Version.
- percentage number
- Percentage of traffic served by this version.
- version_
id string - Identifier of the Worker Version.
- percentage Double
- Percentage of traffic served by this version.
- version
Id String - Identifier of the Worker Version.
- percentage number
- Percentage of traffic served by this version.
- version
Id string - Identifier of the Worker Version.
- percentage float
- Percentage of traffic served by this version.
- version_
id str - Identifier of the Worker Version.
- percentage Number
- Percentage of traffic served by this version.
- version
Id String - Identifier of the Worker Version.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.23.1
published on Wednesday, Oct 21, 2026 by Pulumi
published on Wednesday, Oct 21, 2026 by Pulumi