Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
cloudflare.getWorkersForPlatformsScriptSecrets
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleWorkersForPlatformsScriptSecrets = cloudflare.getWorkersForPlatformsScriptSecrets({
accountId: "023e105f4ecef8ad9ca31a8372d0c353",
dispatchNamespace: "my-dispatch-namespace",
scriptName: "this-is_my_script-01",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_workers_for_platforms_script_secrets = cloudflare.get_workers_for_platforms_script_secrets(account_id="023e105f4ecef8ad9ca31a8372d0c353",
dispatch_namespace="my-dispatch-namespace",
script_name="this-is_my_script-01")
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.LookupWorkersForPlatformsScriptSecrets(ctx, &cloudflare.LookupWorkersForPlatformsScriptSecretsArgs{
AccountId: "023e105f4ecef8ad9ca31a8372d0c353",
DispatchNamespace: "my-dispatch-namespace",
ScriptName: "this-is_my_script-01",
}, 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 exampleWorkersForPlatformsScriptSecrets = Cloudflare.GetWorkersForPlatformsScriptSecrets.Invoke(new()
{
AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
DispatchNamespace = "my-dispatch-namespace",
ScriptName = "this-is_my_script-01",
});
});
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.GetWorkersForPlatformsScriptSecretsArgs;
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 exampleWorkersForPlatformsScriptSecrets = CloudflareFunctions.getWorkersForPlatformsScriptSecrets(GetWorkersForPlatformsScriptSecretsArgs.builder()
.accountId("023e105f4ecef8ad9ca31a8372d0c353")
.dispatchNamespace("my-dispatch-namespace")
.scriptName("this-is_my_script-01")
.build());
}
}
variables:
exampleWorkersForPlatformsScriptSecrets:
fn::invoke:
function: cloudflare:getWorkersForPlatformsScriptSecrets
arguments:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
dispatchNamespace: my-dispatch-namespace
scriptName: this-is_my_script-01
Using getWorkersForPlatformsScriptSecrets
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 getWorkersForPlatformsScriptSecrets(args: GetWorkersForPlatformsScriptSecretsArgs, opts?: InvokeOptions): Promise<GetWorkersForPlatformsScriptSecretsResult>
function getWorkersForPlatformsScriptSecretsOutput(args: GetWorkersForPlatformsScriptSecretsOutputArgs, opts?: InvokeOptions): Output<GetWorkersForPlatformsScriptSecretsResult>
def get_workers_for_platforms_script_secrets(account_id: Optional[str] = None,
dispatch_namespace: Optional[str] = None,
max_items: Optional[int] = None,
script_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkersForPlatformsScriptSecretsResult
def get_workers_for_platforms_script_secrets_output(account_id: Optional[pulumi.Input[str]] = None,
dispatch_namespace: Optional[pulumi.Input[str]] = None,
max_items: Optional[pulumi.Input[int]] = None,
script_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWorkersForPlatformsScriptSecretsResult]
func LookupWorkersForPlatformsScriptSecrets(ctx *Context, args *LookupWorkersForPlatformsScriptSecretsArgs, opts ...InvokeOption) (*LookupWorkersForPlatformsScriptSecretsResult, error)
func LookupWorkersForPlatformsScriptSecretsOutput(ctx *Context, args *LookupWorkersForPlatformsScriptSecretsOutputArgs, opts ...InvokeOption) LookupWorkersForPlatformsScriptSecretsResultOutput
> Note: This function is named LookupWorkersForPlatformsScriptSecrets
in the Go SDK.
public static class GetWorkersForPlatformsScriptSecrets
{
public static Task<GetWorkersForPlatformsScriptSecretsResult> InvokeAsync(GetWorkersForPlatformsScriptSecretsArgs args, InvokeOptions? opts = null)
public static Output<GetWorkersForPlatformsScriptSecretsResult> Invoke(GetWorkersForPlatformsScriptSecretsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWorkersForPlatformsScriptSecretsResult> getWorkersForPlatformsScriptSecrets(GetWorkersForPlatformsScriptSecretsArgs args, InvokeOptions options)
public static Output<GetWorkersForPlatformsScriptSecretsResult> getWorkersForPlatformsScriptSecrets(GetWorkersForPlatformsScriptSecretsArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getWorkersForPlatformsScriptSecrets:getWorkersForPlatformsScriptSecrets
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - Identifier.
- Dispatch
Namespace string - Name of the Workers for Platforms dispatch namespace.
- Script
Name string - Name of the script, used in URLs and route configuration.
- Max
Items int - Max items to fetch, default: 1000
- Account
Id string - Identifier.
- Dispatch
Namespace string - Name of the Workers for Platforms dispatch namespace.
- Script
Name string - Name of the script, used in URLs and route configuration.
- Max
Items int - Max items to fetch, default: 1000
- account
Id String - Identifier.
- dispatch
Namespace String - Name of the Workers for Platforms dispatch namespace.
- script
Name String - Name of the script, used in URLs and route configuration.
- max
Items Integer - Max items to fetch, default: 1000
- account
Id string - Identifier.
- dispatch
Namespace string - Name of the Workers for Platforms dispatch namespace.
- script
Name string - Name of the script, used in URLs and route configuration.
- max
Items number - Max items to fetch, default: 1000
- account_
id str - Identifier.
- dispatch_
namespace str - Name of the Workers for Platforms dispatch namespace.
- script_
name str - Name of the script, used in URLs and route configuration.
- max_
items int - Max items to fetch, default: 1000
- account
Id String - Identifier.
- dispatch
Namespace String - Name of the Workers for Platforms dispatch namespace.
- script
Name String - Name of the script, used in URLs and route configuration.
- max
Items Number - Max items to fetch, default: 1000
getWorkersForPlatformsScriptSecrets Result
The following output properties are available:
- Account
Id string - Identifier.
- Dispatch
Namespace string - Name of the Workers for Platforms dispatch namespace.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
List<Get
Workers For Platforms Script Secrets Result> - The items returned by the data source
- Script
Name string - Name of the script, used in URLs and route configuration.
- Max
Items int - Max items to fetch, default: 1000
- Account
Id string - Identifier.
- Dispatch
Namespace string - Name of the Workers for Platforms dispatch namespace.
- Id string
- The provider-assigned unique ID for this managed resource.
- Results
[]Get
Workers For Platforms Script Secrets Result - The items returned by the data source
- Script
Name string - Name of the script, used in URLs and route configuration.
- Max
Items int - Max items to fetch, default: 1000
- account
Id String - Identifier.
- dispatch
Namespace String - Name of the Workers for Platforms dispatch namespace.
- id String
- The provider-assigned unique ID for this managed resource.
- results
List<Get
Workers For Platforms Script Secrets Result> - The items returned by the data source
- script
Name String - Name of the script, used in URLs and route configuration.
- max
Items Integer - Max items to fetch, default: 1000
- account
Id string - Identifier.
- dispatch
Namespace string - Name of the Workers for Platforms dispatch namespace.
- id string
- The provider-assigned unique ID for this managed resource.
- results
Get
Workers For Platforms Script Secrets Result[] - The items returned by the data source
- script
Name string - Name of the script, used in URLs and route configuration.
- max
Items number - Max items to fetch, default: 1000
- account_
id str - Identifier.
- dispatch_
namespace str - Name of the Workers for Platforms dispatch namespace.
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Workers For Platforms Script Secrets Result] - The items returned by the data source
- script_
name str - Name of the script, used in URLs and route configuration.
- max_
items int - Max items to fetch, default: 1000
- account
Id String - Identifier.
- dispatch
Namespace String - Name of the Workers for Platforms dispatch namespace.
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Property Map>
- The items returned by the data source
- script
Name String - Name of the script, used in URLs and route configuration.
- max
Items Number - Max items to fetch, default: 1000
Supporting Types
GetWorkersForPlatformsScriptSecretsResult
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.