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

cloudflare.getWorkersCronTrigger

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 exampleWorkersCronTrigger = cloudflare.getWorkersCronTrigger({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        scriptName: "this-is_my_script-01",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_workers_cron_trigger = cloudflare.get_workers_cron_trigger(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        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.LookupWorkersCronTrigger(ctx, &cloudflare.LookupWorkersCronTriggerArgs{
    			AccountId:  "023e105f4ecef8ad9ca31a8372d0c353",
    			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 exampleWorkersCronTrigger = Cloudflare.GetWorkersCronTrigger.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            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.GetWorkersCronTriggerArgs;
    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 exampleWorkersCronTrigger = CloudflareFunctions.getWorkersCronTrigger(GetWorkersCronTriggerArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .scriptName("this-is_my_script-01")
                .build());
    
        }
    }
    
    variables:
      exampleWorkersCronTrigger:
        fn::invoke:
          function: cloudflare:getWorkersCronTrigger
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            scriptName: this-is_my_script-01
    

    Using getWorkersCronTrigger

    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 getWorkersCronTrigger(args: GetWorkersCronTriggerArgs, opts?: InvokeOptions): Promise<GetWorkersCronTriggerResult>
    function getWorkersCronTriggerOutput(args: GetWorkersCronTriggerOutputArgs, opts?: InvokeOptions): Output<GetWorkersCronTriggerResult>
    def get_workers_cron_trigger(account_id: Optional[str] = None,
                                 script_name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetWorkersCronTriggerResult
    def get_workers_cron_trigger_output(account_id: Optional[pulumi.Input[str]] = None,
                                 script_name: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetWorkersCronTriggerResult]
    func LookupWorkersCronTrigger(ctx *Context, args *LookupWorkersCronTriggerArgs, opts ...InvokeOption) (*LookupWorkersCronTriggerResult, error)
    func LookupWorkersCronTriggerOutput(ctx *Context, args *LookupWorkersCronTriggerOutputArgs, opts ...InvokeOption) LookupWorkersCronTriggerResultOutput

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

    public static class GetWorkersCronTrigger 
    {
        public static Task<GetWorkersCronTriggerResult> InvokeAsync(GetWorkersCronTriggerArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkersCronTriggerResult> Invoke(GetWorkersCronTriggerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWorkersCronTriggerResult> getWorkersCronTrigger(GetWorkersCronTriggerArgs args, InvokeOptions options)
    public static Output<GetWorkersCronTriggerResult> getWorkersCronTrigger(GetWorkersCronTriggerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getWorkersCronTrigger:getWorkersCronTrigger
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    Identifier.
    ScriptName string
    Name of the script, used in URLs and route configuration.
    AccountId string
    Identifier.
    ScriptName string
    Name of the script, used in URLs and route configuration.
    accountId String
    Identifier.
    scriptName String
    Name of the script, used in URLs and route configuration.
    accountId string
    Identifier.
    scriptName string
    Name of the script, used in URLs and route configuration.
    account_id str
    Identifier.
    script_name str
    Name of the script, used in URLs and route configuration.
    accountId String
    Identifier.
    scriptName String
    Name of the script, used in URLs and route configuration.

    getWorkersCronTrigger Result

    The following output properties are available:

    AccountId string
    Identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    Schedules List<GetWorkersCronTriggerSchedule>
    ScriptName string
    Name of the script, used in URLs and route configuration.
    AccountId string
    Identifier.
    Id string
    The provider-assigned unique ID for this managed resource.
    Schedules []GetWorkersCronTriggerSchedule
    ScriptName string
    Name of the script, used in URLs and route configuration.
    accountId String
    Identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    schedules List<GetWorkersCronTriggerSchedule>
    scriptName String
    Name of the script, used in URLs and route configuration.
    accountId string
    Identifier.
    id string
    The provider-assigned unique ID for this managed resource.
    schedules GetWorkersCronTriggerSchedule[]
    scriptName string
    Name of the script, used in URLs and route configuration.
    account_id str
    Identifier.
    id str
    The provider-assigned unique ID for this managed resource.
    schedules Sequence[GetWorkersCronTriggerSchedule]
    script_name str
    Name of the script, used in URLs and route configuration.
    accountId String
    Identifier.
    id String
    The provider-assigned unique ID for this managed resource.
    schedules List<Property Map>
    scriptName String
    Name of the script, used in URLs and route configuration.

    Supporting Types

    GetWorkersCronTriggerSchedule

    CreatedOn string
    Cron string
    ModifiedOn string
    CreatedOn string
    Cron string
    ModifiedOn string
    createdOn String
    cron String
    modifiedOn String
    createdOn string
    cron string
    modifiedOn string
    createdOn String
    cron String
    modifiedOn String

    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