Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
published on Friday, Oct 30, 2026 by zenduty
zenduty
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
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 dictionarydata "zenduty_get_workflows" "name" {
# arguments
}The following arguments are supported:
- Id string
- Workflow
Id string - Return only this workflow, with its full
json_schemaand team scope. Without it the list shape is returned:json_schemais empty andteamscarry noservice_ids.
- Id string
- Workflow
Id string - Return only this workflow, with its full
json_schemaand team scope. Without it the list shape is returned:json_schemais empty andteamscarry noservice_ids.
- id string
- workflow_
id string - Return only this workflow, with its full
json_schemaand team scope. Without it the list shape is returned:json_schemais empty andteamscarry noservice_ids.
- id String
- workflow
Id String - Return only this workflow, with its full
json_schemaand team scope. Without it the list shape is returned:json_schemais empty andteamscarry noservice_ids.
- id string
- workflow
Id string - Return only this workflow, with its full
json_schemaand team scope. Without it the list shape is returned:json_schemais empty andteamscarry noservice_ids.
- id str
- workflow_
id str - Return only this workflow, with its full
json_schemaand team scope. Without it the list shape is returned:json_schemais empty andteamscarry noservice_ids.
- id String
- workflow
Id String - Return only this workflow, with its full
json_schemaand team scope. Without it the list shape is returned:json_schemais empty andteamscarry noservice_ids.
getWorkflows Result
The following output properties are available:
- Id string
- Workflows
List<Get
Workflows Workflow> - The list of workflows, each with:
- Workflow
Id string
- Id string
- Workflows
[]Get
Workflows Workflow - The list of workflows, each with:
- Workflow
Id string
- id string
- workflows list(object)
- The list of workflows, each with:
- workflow_
id string
- id String
- workflows
List<Get
Workflows Workflow> - The list of workflows, each with:
- workflow
Id String
- id string
- workflows
Get
Workflows Workflow[] - The list of workflows, each with:
- workflow
Id string
- id str
- workflows
Sequence[Get
Workflows Workflow] - The list of workflows, each with:
- workflow_
id str
- id String
- workflows List<Property Map>
- The list of workflows, each with:
- workflow
Id String
Supporting Types
GetWorkflowsWorkflow
- 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<Get
Workflows Workflow Team> - The team scope, each with
team_id,nameandservice_ids. - Unique
Id 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
[]Get
Workflows Workflow Team - The team scope, each with
team_id,nameandservice_ids. - Unique
Id 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,nameandservice_ids. - unique_
id string - ,
name,description
- description String
- is
Draft Boolean - ,
is_enabled - is
Enabled Boolean - json
Schema String - The workflow graph as JSON (only with
workflow_id). - name String
- teams
List<Get
Workflows Workflow Team> - The team scope, each with
team_id,nameandservice_ids. - unique
Id String - ,
name,description
- description string
- is
Draft boolean - ,
is_enabled - is
Enabled boolean - json
Schema string - The workflow graph as JSON (only with
workflow_id). - name string
- teams
Get
Workflows Workflow Team[] - The team scope, each with
team_id,nameandservice_ids. - unique
Id 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[Get
Workflows Workflow Team] - The team scope, each with
team_id,nameandservice_ids. - unique_
id str - ,
name,description
- description String
- is
Draft Boolean - ,
is_enabled - is
Enabled Boolean - json
Schema String - The workflow graph as JSON (only with
workflow_id). - name String
- teams List<Property Map>
- The team scope, each with
team_id,nameandservice_ids. - unique
Id String - ,
name,description
GetWorkflowsWorkflowTeam
- Name string
- Service
Ids List<string> - Team
Id string
- Name string
- Service
Ids []string - Team
Id string
- name string
- service_
ids list(string) - team_
id string
- name String
- service
Ids List<String> - team
Id String
- name string
- service
Ids string[] - team
Id string
- name str
- service_
ids Sequence[str] - team_
id str
- name String
- service
Ids List<String> - team
Id String
Package Details
- Repository
- zenduty zenduty/terraform-provider-zenduty
- License
- Notes
- This Pulumi package is based on the
zendutyTerraform Provider.
zenduty
Viewing docs for zenduty 2.2.0
published on Friday, Oct 30, 2026 by zenduty
published on Friday, Oct 30, 2026 by zenduty