1. Packages
  2. Rootly
  3. API Docs
  4. getWorkflowGroup
Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly

rootly.getWorkflowGroup

Explore with Pulumi AI

rootly logo
Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Rootly = Pulumi.Rootly;
    
    return await Deployment.RunAsync(() => 
    {
        var my_workflow_group = Rootly.GetWorkflowGroup.Invoke(new()
        {
            Slug = "my-workflow-group",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-rootly/sdk/go/rootly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rootly.LookupWorkflowGroup(ctx, &rootly.LookupWorkflowGroupArgs{
    			Slug: pulumi.StringRef("my-workflow-group"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.rootly.RootlyFunctions;
    import com.pulumi.rootly.inputs.GetWorkflowGroupArgs;
    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 my-workflow-group = RootlyFunctions.getWorkflowGroup(GetWorkflowGroupArgs.builder()
                .slug("my-workflow-group")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_rootly as rootly
    
    my_workflow_group = rootly.get_workflow_group(slug="my-workflow-group")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as rootly from "@pulumi/rootly";
    
    const my-workflow-group = rootly.getWorkflowGroup({
        slug: "my-workflow-group",
    });
    
    variables:
      my-workflow-group:
        fn::invoke:
          Function: rootly:getWorkflowGroup
          Arguments:
            slug: my-workflow-group
    

    Using getWorkflowGroup

    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 getWorkflowGroup(args: GetWorkflowGroupArgs, opts?: InvokeOptions): Promise<GetWorkflowGroupResult>
    function getWorkflowGroupOutput(args: GetWorkflowGroupOutputArgs, opts?: InvokeOptions): Output<GetWorkflowGroupResult>
    def get_workflow_group(expanded: Optional[bool] = None,
                           kind: Optional[str] = None,
                           name: Optional[str] = None,
                           position: Optional[int] = None,
                           slug: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetWorkflowGroupResult
    def get_workflow_group_output(expanded: Optional[pulumi.Input[bool]] = None,
                           kind: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           position: Optional[pulumi.Input[int]] = None,
                           slug: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetWorkflowGroupResult]
    func LookupWorkflowGroup(ctx *Context, args *LookupWorkflowGroupArgs, opts ...InvokeOption) (*LookupWorkflowGroupResult, error)
    func LookupWorkflowGroupOutput(ctx *Context, args *LookupWorkflowGroupOutputArgs, opts ...InvokeOption) LookupWorkflowGroupResultOutput

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

    public static class GetWorkflowGroup 
    {
        public static Task<GetWorkflowGroupResult> InvokeAsync(GetWorkflowGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkflowGroupResult> Invoke(GetWorkflowGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWorkflowGroupResult> getWorkflowGroup(GetWorkflowGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: rootly:index/getWorkflowGroup:getWorkflowGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Expanded bool
    Kind string
    Name string
    Position int
    Slug string
    Expanded bool
    Kind string
    Name string
    Position int
    Slug string
    expanded Boolean
    kind String
    name String
    position Integer
    slug String
    expanded boolean
    kind string
    name string
    position number
    slug string
    expanded bool
    kind str
    name str
    position int
    slug str
    expanded Boolean
    kind String
    name String
    position Number
    slug String

    getWorkflowGroup Result

    The following output properties are available:

    Expanded bool
    Id string
    The ID of this resource.
    Kind string
    Name string
    Position int
    Slug string
    Expanded bool
    Id string
    The ID of this resource.
    Kind string
    Name string
    Position int
    Slug string
    expanded Boolean
    id String
    The ID of this resource.
    kind String
    name String
    position Integer
    slug String
    expanded boolean
    id string
    The ID of this resource.
    kind string
    name string
    position number
    slug string
    expanded bool
    id str
    The ID of this resource.
    kind str
    name str
    position int
    slug str
    expanded Boolean
    id String
    The ID of this resource.
    kind String
    name String
    position Number
    slug String

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo
    Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly