Cloudflare v6.6.0 published on Wednesday, Aug 20, 2025 by Pulumi
cloudflare.getWorkersDeployment
Explore with Pulumi AI
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.LookupWorkersDeployment(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.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 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
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?: InvokeOptions): 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: Optional[pulumi.Input[str]] = None,
deployment_id: Optional[pulumi.Input[str]] = None,
script_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = 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 CompletableFuture<GetWorkersDeploymentResult> getWorkersDeployment(GetWorkersDeploymentArgs args, InvokeOptions options)
public static Output<GetWorkersDeploymentResult> getWorkersDeployment(GetWorkersDeploymentArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getWorkersDeployment:getWorkersDeployment
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - Identifier.
- Deployment
Id string - Script
Name string - Name of the script, used in URLs and route configuration.
- Account
Id string - Identifier.
- Deployment
Id string - Script
Name string - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- deployment
Id String - script
Name String - Name of the script, used in URLs and route configuration.
- account
Id string - Identifier.
- deployment
Id string - script
Name string - Name of the script, used in URLs and route configuration.
- account_
id str - Identifier.
- deployment_
id str - script_
name str - Name of the script, used in URLs and route configuration.
- account
Id String - Identifier.
- deployment
Id String - script
Name String - Name of the script, used in URLs and route configuration.
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, used in URLs and route configuration.
- Source string
- Strategy string
- Available values: "percentage".
- Versions
List<Get
Workers Deployment Version>
- 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, used in URLs and route configuration.
- Source string
- Strategy string
- Available values: "percentage".
- Versions
[]Get
Workers Deployment Version
- 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, used in URLs and route configuration.
- source String
- strategy String
- Available values: "percentage".
- versions
List<Get
Workers Deployment Version>
- 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, used in URLs and route configuration.
- source string
- strategy string
- Available values: "percentage".
- versions
Get
Workers Deployment Version[]
- 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, used in URLs and route configuration.
- source str
- strategy str
- Available values: "percentage".
- versions
Sequence[Get
Workers Deployment Version]
- 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, used in URLs and route configuration.
- source String
- strategy String
- Available values: "percentage".
- versions List<Property Map>
Supporting Types
GetWorkersDeploymentAnnotations
- Workers
Message string - Human-readable message about the deployment. Truncated to 100 bytes.
- Workers
Triggered stringBy - Operation that triggered the creation of the deployment.
- Workers
Message string - Human-readable message about the deployment. Truncated to 100 bytes.
- Workers
Triggered stringBy - Operation that triggered the creation of the deployment.
- workers
Message String - Human-readable message about the deployment. Truncated to 100 bytes.
- workers
Triggered StringBy - Operation that triggered the creation of the deployment.
- workers
Message string - Human-readable message about the deployment. Truncated to 100 bytes.
- workers
Triggered stringBy - Operation that triggered the creation of the deployment.
- workers_
message str - Human-readable message about the deployment. Truncated to 100 bytes.
- workers_
triggered_ strby - Operation that triggered the creation of the deployment.
- workers
Message String - Human-readable message about the deployment. Truncated to 100 bytes.
- workers
Triggered StringBy - Operation that triggered the creation of the deployment.
GetWorkersDeploymentVersion
- Percentage double
- Version
Id string
- Percentage float64
- Version
Id string
- percentage Double
- version
Id String
- percentage number
- version
Id string
- percentage float
- version_
id str
- percentage Number
- version
Id String
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.