1. Packages
  2. Coder Provider
  3. API Docs
  4. getTask
Viewing docs for coder 2.15.0
published on Monday, Mar 16, 2026 by coder
coder logo
Viewing docs for coder 2.15.0
published on Monday, Mar 16, 2026 by coder

    Use this data source to read information about Coder Tasks.

    Using getTask

    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 getTask(opts?: InvokeOptions): Promise<GetTaskResult>
    function getTaskOutput(opts?: InvokeOptions): Output<GetTaskResult>
    def get_task(opts: Optional[InvokeOptions] = None) -> GetTaskResult
    def get_task_output(opts: Optional[InvokeOptions] = None) -> Output[GetTaskResult]
    func GetTask(ctx *Context, opts ...InvokeOption) (*GetTaskResult, error)
    func GetTaskOutput(ctx *Context, opts ...InvokeOption) GetTaskResultOutput

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

    public static class GetTask 
    {
        public static Task<GetTaskResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetTaskResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTaskResult> getTask(InvokeOptions options)
    public static Output<GetTaskResult> getTask(InvokeOptions options)
    
    fn::invoke:
      function: coder:index/getTask:getTask
      arguments:
        # arguments dictionary

    getTask Result

    The following output properties are available:

    Enabled bool
    True when executing in a Coder Task context, false when in a Coder Workspace context.
    Id string
    Prompt string
    Enabled bool
    True when executing in a Coder Task context, false when in a Coder Workspace context.
    Id string
    Prompt string
    enabled Boolean
    True when executing in a Coder Task context, false when in a Coder Workspace context.
    id String
    prompt String
    enabled boolean
    True when executing in a Coder Task context, false when in a Coder Workspace context.
    id string
    prompt string
    enabled bool
    True when executing in a Coder Task context, false when in a Coder Workspace context.
    id str
    prompt str
    enabled Boolean
    True when executing in a Coder Task context, false when in a Coder Workspace context.
    id String
    prompt String

    Package Details

    Repository
    coder coder/terraform-provider-coder
    License
    Notes
    This Pulumi package is based on the coder Terraform Provider.
    coder logo
    Viewing docs for coder 2.15.0
    published on Monday, Mar 16, 2026 by coder
      Try Pulumi Cloud free. Your team will thank you.