1. Packages
  2. Rootly
  3. API Docs
  4. getFunctionality
Rootly v1.1.1 published on Thursday, Jan 11, 2024 by Rootly

rootly.getFunctionality

Explore with Pulumi AI

rootly logo
Rootly v1.1.1 published on Thursday, Jan 11, 2024 by Rootly

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Rootly = Pulumi.Rootly;
    
    return await Deployment.RunAsync(() => 
    {
        var my_functionality = Rootly.GetFunctionality.Invoke(new()
        {
            Slug = "my-functionality",
        });
    
    });
    
    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.LookupFunctionality(ctx, &rootly.LookupFunctionalityArgs{
    			Slug: pulumi.StringRef("my-functionality"),
    		}, 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.GetFunctionalityArgs;
    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-functionality = RootlyFunctions.getFunctionality(GetFunctionalityArgs.builder()
                .slug("my-functionality")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_rootly as rootly
    
    my_functionality = rootly.get_functionality(slug="my-functionality")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as rootly from "@pulumi/rootly";
    
    const my-functionality = rootly.getFunctionality({
        slug: "my-functionality",
    });
    
    variables:
      my-functionality:
        fn::invoke:
          Function: rootly:getFunctionality
          Arguments:
            slug: my-functionality
    

    Using getFunctionality

    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 getFunctionality(args: GetFunctionalityArgs, opts?: InvokeOptions): Promise<GetFunctionalityResult>
    function getFunctionalityOutput(args: GetFunctionalityOutputArgs, opts?: InvokeOptions): Output<GetFunctionalityResult>
    def get_functionality(created_at: Optional[Mapping[str, Any]] = None,
                          name: Optional[str] = None,
                          slug: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetFunctionalityResult
    def get_functionality_output(created_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          slug: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetFunctionalityResult]
    func LookupFunctionality(ctx *Context, args *LookupFunctionalityArgs, opts ...InvokeOption) (*LookupFunctionalityResult, error)
    func LookupFunctionalityOutput(ctx *Context, args *LookupFunctionalityOutputArgs, opts ...InvokeOption) LookupFunctionalityResultOutput

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

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

    The following arguments are supported:

    CreatedAt Dictionary<string, object>
    Filter by date range using 'lt' and 'gt'.
    Name string
    Slug string
    CreatedAt map[string]interface{}
    Filter by date range using 'lt' and 'gt'.
    Name string
    Slug string
    createdAt Map<String,Object>
    Filter by date range using 'lt' and 'gt'.
    name String
    slug String
    createdAt {[key: string]: any}
    Filter by date range using 'lt' and 'gt'.
    name string
    slug string
    created_at Mapping[str, Any]
    Filter by date range using 'lt' and 'gt'.
    name str
    slug str
    createdAt Map<Any>
    Filter by date range using 'lt' and 'gt'.
    name String
    slug String

    getFunctionality Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Name string
    Slug string
    CreatedAt Dictionary<string, object>
    Filter by date range using 'lt' and 'gt'.
    Id string
    The ID of this resource.
    Name string
    Slug string
    CreatedAt map[string]interface{}
    Filter by date range using 'lt' and 'gt'.
    id String
    The ID of this resource.
    name String
    slug String
    createdAt Map<String,Object>
    Filter by date range using 'lt' and 'gt'.
    id string
    The ID of this resource.
    name string
    slug string
    createdAt {[key: string]: any}
    Filter by date range using 'lt' and 'gt'.
    id str
    The ID of this resource.
    name str
    slug str
    created_at Mapping[str, Any]
    Filter by date range using 'lt' and 'gt'.
    id String
    The ID of this resource.
    name String
    slug String
    createdAt Map<Any>
    Filter by date range using 'lt' and 'gt'.

    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.1.1 published on Thursday, Jan 11, 2024 by Rootly