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

cloudflare.getWorkersForPlatformsDispatchNamespace

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 exampleWorkersForPlatformsDispatchNamespace = cloudflare.getWorkersForPlatformsDispatchNamespace({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        dispatchNamespace: "my-dispatch-namespace",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_workers_for_platforms_dispatch_namespace = cloudflare.get_workers_for_platforms_dispatch_namespace(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        dispatch_namespace="my-dispatch-namespace")
    
    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.LookupWorkersForPlatformsDispatchNamespace(ctx, &cloudflare.LookupWorkersForPlatformsDispatchNamespaceArgs{
    			AccountId:         "023e105f4ecef8ad9ca31a8372d0c353",
    			DispatchNamespace: pulumi.StringRef("my-dispatch-namespace"),
    		}, 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 exampleWorkersForPlatformsDispatchNamespace = Cloudflare.GetWorkersForPlatformsDispatchNamespace.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            DispatchNamespace = "my-dispatch-namespace",
        });
    
    });
    
    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.GetWorkersForPlatformsDispatchNamespaceArgs;
    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 exampleWorkersForPlatformsDispatchNamespace = CloudflareFunctions.getWorkersForPlatformsDispatchNamespace(GetWorkersForPlatformsDispatchNamespaceArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .dispatchNamespace("my-dispatch-namespace")
                .build());
    
        }
    }
    
    variables:
      exampleWorkersForPlatformsDispatchNamespace:
        fn::invoke:
          function: cloudflare:getWorkersForPlatformsDispatchNamespace
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            dispatchNamespace: my-dispatch-namespace
    

    Using getWorkersForPlatformsDispatchNamespace

    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 getWorkersForPlatformsDispatchNamespace(args: GetWorkersForPlatformsDispatchNamespaceArgs, opts?: InvokeOptions): Promise<GetWorkersForPlatformsDispatchNamespaceResult>
    function getWorkersForPlatformsDispatchNamespaceOutput(args: GetWorkersForPlatformsDispatchNamespaceOutputArgs, opts?: InvokeOptions): Output<GetWorkersForPlatformsDispatchNamespaceResult>
    def get_workers_for_platforms_dispatch_namespace(account_id: Optional[str] = None,
                                                     dispatch_namespace: Optional[str] = None,
                                                     opts: Optional[InvokeOptions] = None) -> GetWorkersForPlatformsDispatchNamespaceResult
    def get_workers_for_platforms_dispatch_namespace_output(account_id: Optional[pulumi.Input[str]] = None,
                                                     dispatch_namespace: Optional[pulumi.Input[str]] = None,
                                                     opts: Optional[InvokeOptions] = None) -> Output[GetWorkersForPlatformsDispatchNamespaceResult]
    func LookupWorkersForPlatformsDispatchNamespace(ctx *Context, args *LookupWorkersForPlatformsDispatchNamespaceArgs, opts ...InvokeOption) (*LookupWorkersForPlatformsDispatchNamespaceResult, error)
    func LookupWorkersForPlatformsDispatchNamespaceOutput(ctx *Context, args *LookupWorkersForPlatformsDispatchNamespaceOutputArgs, opts ...InvokeOption) LookupWorkersForPlatformsDispatchNamespaceResultOutput

    > Note: This function is named LookupWorkersForPlatformsDispatchNamespace in the Go SDK.

    public static class GetWorkersForPlatformsDispatchNamespace 
    {
        public static Task<GetWorkersForPlatformsDispatchNamespaceResult> InvokeAsync(GetWorkersForPlatformsDispatchNamespaceArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkersForPlatformsDispatchNamespaceResult> Invoke(GetWorkersForPlatformsDispatchNamespaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWorkersForPlatformsDispatchNamespaceResult> getWorkersForPlatformsDispatchNamespace(GetWorkersForPlatformsDispatchNamespaceArgs args, InvokeOptions options)
    public static Output<GetWorkersForPlatformsDispatchNamespaceResult> getWorkersForPlatformsDispatchNamespace(GetWorkersForPlatformsDispatchNamespaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getWorkersForPlatformsDispatchNamespace:getWorkersForPlatformsDispatchNamespace
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier.
    DispatchNamespace string
    Name of the Workers for Platforms dispatch namespace.
    AccountId string
    Identifier.
    DispatchNamespace string
    Name of the Workers for Platforms dispatch namespace.
    accountId String
    Identifier.
    dispatchNamespace String
    Name of the Workers for Platforms dispatch namespace.
    accountId string
    Identifier.
    dispatchNamespace string
    Name of the Workers for Platforms dispatch namespace.
    account_id str
    Identifier.
    dispatch_namespace str
    Name of the Workers for Platforms dispatch namespace.
    accountId String
    Identifier.
    dispatchNamespace String
    Name of the Workers for Platforms dispatch namespace.

    getWorkersForPlatformsDispatchNamespace Result

    The following output properties are available:

    AccountId string
    Identifier.
    CreatedBy string
    Identifier.
    CreatedOn string
    When the script was created.
    Id string
    Name of the Workers for Platforms dispatch namespace.
    ModifiedBy string
    Identifier.
    ModifiedOn string
    When the script was last modified.
    NamespaceId string
    API Resource UUID tag.
    NamespaceName string
    Name of the Workers for Platforms dispatch namespace.
    ScriptCount int
    The current number of scripts in this Dispatch Namespace
    DispatchNamespace string
    Name of the Workers for Platforms dispatch namespace.
    AccountId string
    Identifier.
    CreatedBy string
    Identifier.
    CreatedOn string
    When the script was created.
    Id string
    Name of the Workers for Platforms dispatch namespace.
    ModifiedBy string
    Identifier.
    ModifiedOn string
    When the script was last modified.
    NamespaceId string
    API Resource UUID tag.
    NamespaceName string
    Name of the Workers for Platforms dispatch namespace.
    ScriptCount int
    The current number of scripts in this Dispatch Namespace
    DispatchNamespace string
    Name of the Workers for Platforms dispatch namespace.
    accountId String
    Identifier.
    createdBy String
    Identifier.
    createdOn String
    When the script was created.
    id String
    Name of the Workers for Platforms dispatch namespace.
    modifiedBy String
    Identifier.
    modifiedOn String
    When the script was last modified.
    namespaceId String
    API Resource UUID tag.
    namespaceName String
    Name of the Workers for Platforms dispatch namespace.
    scriptCount Integer
    The current number of scripts in this Dispatch Namespace
    dispatchNamespace String
    Name of the Workers for Platforms dispatch namespace.
    accountId string
    Identifier.
    createdBy string
    Identifier.
    createdOn string
    When the script was created.
    id string
    Name of the Workers for Platforms dispatch namespace.
    modifiedBy string
    Identifier.
    modifiedOn string
    When the script was last modified.
    namespaceId string
    API Resource UUID tag.
    namespaceName string
    Name of the Workers for Platforms dispatch namespace.
    scriptCount number
    The current number of scripts in this Dispatch Namespace
    dispatchNamespace string
    Name of the Workers for Platforms dispatch namespace.
    account_id str
    Identifier.
    created_by str
    Identifier.
    created_on str
    When the script was created.
    id str
    Name of the Workers for Platforms dispatch namespace.
    modified_by str
    Identifier.
    modified_on str
    When the script was last modified.
    namespace_id str
    API Resource UUID tag.
    namespace_name str
    Name of the Workers for Platforms dispatch namespace.
    script_count int
    The current number of scripts in this Dispatch Namespace
    dispatch_namespace str
    Name of the Workers for Platforms dispatch namespace.
    accountId String
    Identifier.
    createdBy String
    Identifier.
    createdOn String
    When the script was created.
    id String
    Name of the Workers for Platforms dispatch namespace.
    modifiedBy String
    Identifier.
    modifiedOn String
    When the script was last modified.
    namespaceId String
    API Resource UUID tag.
    namespaceName String
    Name of the Workers for Platforms dispatch namespace.
    scriptCount Number
    The current number of scripts in this Dispatch Namespace
    dispatchNamespace String
    Name of the Workers for Platforms dispatch namespace.

    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