1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getWorkersForPlatformsScriptSecrets
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getWorkersForPlatformsScriptSecrets

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    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:

    AccountId string
    Identifier.
    DispatchNamespace string
    Name of the Workers for Platforms dispatch namespace.
    ScriptName string
    Name of the script, used in URLs and route configuration.
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Identifier.
    DispatchNamespace string
    Name of the Workers for Platforms dispatch namespace.
    ScriptName string
    Name of the script, used in URLs and route configuration.
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    Identifier.
    dispatchNamespace String
    Name of the Workers for Platforms dispatch namespace.
    scriptName String
    Name of the script, used in URLs and route configuration.
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Identifier.
    dispatchNamespace string
    Name of the Workers for Platforms dispatch namespace.
    scriptName string
    Name of the script, used in URLs and route configuration.
    maxItems 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
    accountId String
    Identifier.
    dispatchNamespace String
    Name of the Workers for Platforms dispatch namespace.
    scriptName String
    Name of the script, used in URLs and route configuration.
    maxItems Number
    Max items to fetch, default: 1000

    getWorkersForPlatformsScriptSecrets Result

    The following output properties are available:

    AccountId string
    Identifier.
    DispatchNamespace string
    Name of the Workers for Platforms dispatch namespace.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetWorkersForPlatformsScriptSecretsResult>
    The items returned by the data source
    ScriptName string
    Name of the script, used in URLs and route configuration.
    MaxItems int
    Max items to fetch, default: 1000
    AccountId string
    Identifier.
    DispatchNamespace string
    Name of the Workers for Platforms dispatch namespace.
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetWorkersForPlatformsScriptSecretsResult
    The items returned by the data source
    ScriptName string
    Name of the script, used in URLs and route configuration.
    MaxItems int
    Max items to fetch, default: 1000
    accountId String
    Identifier.
    dispatchNamespace String
    Name of the Workers for Platforms dispatch namespace.
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetWorkersForPlatformsScriptSecretsResult>
    The items returned by the data source
    scriptName String
    Name of the script, used in URLs and route configuration.
    maxItems Integer
    Max items to fetch, default: 1000
    accountId string
    Identifier.
    dispatchNamespace string
    Name of the Workers for Platforms dispatch namespace.
    id string
    The provider-assigned unique ID for this managed resource.
    results GetWorkersForPlatformsScriptSecretsResult[]
    The items returned by the data source
    scriptName string
    Name of the script, used in URLs and route configuration.
    maxItems 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[GetWorkersForPlatformsScriptSecretsResult]
    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
    accountId String
    Identifier.
    dispatchNamespace 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
    scriptName String
    Name of the script, used in URLs and route configuration.
    maxItems Number
    Max items to fetch, default: 1000

    Supporting Types

    GetWorkersForPlatformsScriptSecretsResult

    Name string
    The name of this secret, this is what will be used to access it inside the Worker.
    Type string
    The type of secret. Available values: "secret_text".
    Name string
    The name of this secret, this is what will be used to access it inside the Worker.
    Type string
    The type of secret. Available values: "secret_text".
    name String
    The name of this secret, this is what will be used to access it inside the Worker.
    type String
    The type of secret. Available values: "secret_text".
    name string
    The name of this secret, this is what will be used to access it inside the Worker.
    type string
    The type of secret. Available values: "secret_text".
    name str
    The name of this secret, this is what will be used to access it inside the Worker.
    type str
    The type of secret. Available values: "secret_text".
    name String
    The name of this secret, this is what will be used to access it inside the Worker.
    type String
    The type of secret. Available values: "secret_text".

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi