1. Registry
  2. Packages
  3. Zenduty Provider
  4. API Docs
  5. getWorkflows
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
zenduty
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty

    zenduty.getWorkflows lists the account’s workflows, or reads one workflow in full.

    API access The workflow endpoints currently accept browser-session authentication only, not the API token the provider uses. Until the backend grants token access to /api/workflows/, this data source fails with an authentication error.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zenduty from "@pulumi/zenduty";
    
    const all = zenduty.getWorkflows({});
    const one = zenduty.getWorkflows({
        workflowId: noteOnCreate.id,
    });
    
    import pulumi
    import pulumi_zenduty as zenduty
    
    all = zenduty.get_workflows()
    one = zenduty.get_workflows(workflow_id=note_on_create["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/zenduty/v2/zenduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zenduty.GetWorkflows(ctx, &zenduty.GetWorkflowsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = zenduty.GetWorkflows(ctx, &zenduty.GetWorkflowsArgs{
    			WorkflowId: pulumi.StringRef(noteOnCreate.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zenduty = Pulumi.Zenduty;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Zenduty.GetWorkflows.Invoke();
    
        var one = Zenduty.GetWorkflows.Invoke(new()
        {
            WorkflowId = noteOnCreate.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zenduty.ZendutyFunctions;
    import com.pulumi.zenduty.inputs.GetWorkflowsArgs;
    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 all = ZendutyFunctions.getWorkflows(GetWorkflowsArgs.builder()
                .build());
    
            final var one = ZendutyFunctions.getWorkflows(GetWorkflowsArgs.builder()
                .workflowId(noteOnCreate.id())
                .build());
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: zenduty:getWorkflows
          arguments: {}
      one:
        fn::invoke:
          function: zenduty:getWorkflows
          arguments:
            workflowId: ${noteOnCreate.id}
    
    Example coming soon!
    

    Using getWorkflows

    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 getWorkflows(args: GetWorkflowsArgs, opts?: InvokeOptions): Promise<GetWorkflowsResult>
    function getWorkflowsOutput(args: GetWorkflowsOutputArgs, opts?: InvokeOutputOptions): Output<GetWorkflowsResult>
    def get_workflows(id: Optional[str] = None,
                      workflow_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetWorkflowsResult
    def get_workflows_output(id: pulumi.Input[Optional[str]] = None,
                      workflow_id: pulumi.Input[Optional[str]] = None,
                      opts: Optional[InvokeOutputOptions] = None) -> Output[GetWorkflowsResult]
    func GetWorkflows(ctx *Context, args *GetWorkflowsArgs, opts ...InvokeOption) (*GetWorkflowsResult, error)
    func GetWorkflowsOutput(ctx *Context, args *GetWorkflowsOutputArgs, opts ...InvokeOption) GetWorkflowsResultOutput

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

    public static class GetWorkflows 
    {
        public static Task<GetWorkflowsResult> InvokeAsync(GetWorkflowsArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkflowsResult> Invoke(GetWorkflowsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkflowsResult> Invoke(GetWorkflowsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetWorkflowsResult> getWorkflows(GetWorkflowsArgs args, InvokeOptions options)
    public static Output<GetWorkflowsResult> getWorkflows(GetWorkflowsArgs args, InvokeOptions options)
    public static Output<GetWorkflowsResult> getWorkflows(GetWorkflowsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: zenduty:index/getWorkflows:getWorkflows
      arguments:
        # arguments dictionary
    data "zenduty_get_workflows" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    WorkflowId string
    Return only this workflow, with its full json_schema and team scope. Without it the list shape is returned: json_schema is empty and teams carry no service_ids.
    Id string
    WorkflowId string
    Return only this workflow, with its full json_schema and team scope. Without it the list shape is returned: json_schema is empty and teams carry no service_ids.
    id string
    workflow_id string
    Return only this workflow, with its full json_schema and team scope. Without it the list shape is returned: json_schema is empty and teams carry no service_ids.
    id String
    workflowId String
    Return only this workflow, with its full json_schema and team scope. Without it the list shape is returned: json_schema is empty and teams carry no service_ids.
    id string
    workflowId string
    Return only this workflow, with its full json_schema and team scope. Without it the list shape is returned: json_schema is empty and teams carry no service_ids.
    id str
    workflow_id str
    Return only this workflow, with its full json_schema and team scope. Without it the list shape is returned: json_schema is empty and teams carry no service_ids.
    id String
    workflowId String
    Return only this workflow, with its full json_schema and team scope. Without it the list shape is returned: json_schema is empty and teams carry no service_ids.

    getWorkflows Result

    The following output properties are available:

    Id string
    Workflows List<GetWorkflowsWorkflow>
    The list of workflows, each with:
    WorkflowId string
    Id string
    Workflows []GetWorkflowsWorkflow
    The list of workflows, each with:
    WorkflowId string
    id string
    workflows list(object)
    The list of workflows, each with:
    workflow_id string
    id String
    workflows List<GetWorkflowsWorkflow>
    The list of workflows, each with:
    workflowId String
    id string
    workflows GetWorkflowsWorkflow[]
    The list of workflows, each with:
    workflowId string
    id str
    workflows Sequence[GetWorkflowsWorkflow]
    The list of workflows, each with:
    workflow_id str
    id String
    workflows List<Property Map>
    The list of workflows, each with:
    workflowId String

    Supporting Types

    GetWorkflowsWorkflow

    Description string
    IsDraft bool
    , is_enabled
    IsEnabled bool
    JsonSchema string
    The workflow graph as JSON (only with workflow_id).
    Name string
    Teams List<GetWorkflowsWorkflowTeam>
    The team scope, each with team_id, name and service_ids.
    UniqueId string
    , name, description
    Description string
    IsDraft bool
    , is_enabled
    IsEnabled bool
    JsonSchema string
    The workflow graph as JSON (only with workflow_id).
    Name string
    Teams []GetWorkflowsWorkflowTeam
    The team scope, each with team_id, name and service_ids.
    UniqueId string
    , name, description
    description string
    is_draft bool
    , is_enabled
    is_enabled bool
    json_schema string
    The workflow graph as JSON (only with workflow_id).
    name string
    teams list(object)
    The team scope, each with team_id, name and service_ids.
    unique_id string
    , name, description
    description String
    isDraft Boolean
    , is_enabled
    isEnabled Boolean
    jsonSchema String
    The workflow graph as JSON (only with workflow_id).
    name String
    teams List<GetWorkflowsWorkflowTeam>
    The team scope, each with team_id, name and service_ids.
    uniqueId String
    , name, description
    description string
    isDraft boolean
    , is_enabled
    isEnabled boolean
    jsonSchema string
    The workflow graph as JSON (only with workflow_id).
    name string
    teams GetWorkflowsWorkflowTeam[]
    The team scope, each with team_id, name and service_ids.
    uniqueId string
    , name, description
    description str
    is_draft bool
    , is_enabled
    is_enabled bool
    json_schema str
    The workflow graph as JSON (only with workflow_id).
    name str
    teams Sequence[GetWorkflowsWorkflowTeam]
    The team scope, each with team_id, name and service_ids.
    unique_id str
    , name, description
    description String
    isDraft Boolean
    , is_enabled
    isEnabled Boolean
    jsonSchema String
    The workflow graph as JSON (only with workflow_id).
    name String
    teams List<Property Map>
    The team scope, each with team_id, name and service_ids.
    uniqueId String
    , name, description

    GetWorkflowsWorkflowTeam

    Name string
    ServiceIds List<string>
    TeamId string
    Name string
    ServiceIds []string
    TeamId string
    name string
    service_ids list(string)
    team_id string
    name String
    serviceIds List<String>
    teamId String
    name string
    serviceIds string[]
    teamId string
    name str
    service_ids Sequence[str]
    team_id str
    name String
    serviceIds List<String>
    teamId String

    Package Details

    Repository
    zenduty zenduty/terraform-provider-zenduty
    License
    Notes
    This Pulumi package is based on the zenduty Terraform Provider.
    zenduty
    Viewing docs for zenduty 2.2.0
    published on Friday, Oct 30, 2026 by zenduty

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial