1. Packages
  2. Rootly
  3. API Docs
  4. getWebhooksEndpoint
Rootly v1.2.1 published on Tuesday, Apr 2, 2024 by Rootly

rootly.getWebhooksEndpoint

Explore with Pulumi AI

rootly logo
Rootly v1.2.1 published on Tuesday, Apr 2, 2024 by Rootly

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Rootly = Pulumi.Rootly;
    
    return await Deployment.RunAsync(() => 
    {
        var my_webhook_endpoint = Rootly.GetWebhooksEndpoint.Invoke(new()
        {
            Slug = "my-webhookd-endpoint",
        });
    
    });
    
    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.LookupWebhooksEndpoint(ctx, &rootly.LookupWebhooksEndpointArgs{
    			Slug: pulumi.StringRef("my-webhookd-endpoint"),
    		}, 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.GetWebhooksEndpointArgs;
    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-webhook-endpoint = RootlyFunctions.getWebhooksEndpoint(GetWebhooksEndpointArgs.builder()
                .slug("my-webhookd-endpoint")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_rootly as rootly
    
    my_webhook_endpoint = rootly.get_webhooks_endpoint(slug="my-webhookd-endpoint")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as rootly from "@pulumi/rootly";
    
    const my-webhook-endpoint = rootly.getWebhooksEndpoint({
        slug: "my-webhookd-endpoint",
    });
    
    variables:
      my-webhook-endpoint:
        fn::invoke:
          Function: rootly:getWebhooksEndpoint
          Arguments:
            slug: my-webhookd-endpoint
    

    Using getWebhooksEndpoint

    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 getWebhooksEndpoint(args: GetWebhooksEndpointArgs, opts?: InvokeOptions): Promise<GetWebhooksEndpointResult>
    function getWebhooksEndpointOutput(args: GetWebhooksEndpointOutputArgs, opts?: InvokeOptions): Output<GetWebhooksEndpointResult>
    def get_webhooks_endpoint(name: Optional[str] = None,
                              slug: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetWebhooksEndpointResult
    def get_webhooks_endpoint_output(name: Optional[pulumi.Input[str]] = None,
                              slug: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetWebhooksEndpointResult]
    func LookupWebhooksEndpoint(ctx *Context, args *LookupWebhooksEndpointArgs, opts ...InvokeOption) (*LookupWebhooksEndpointResult, error)
    func LookupWebhooksEndpointOutput(ctx *Context, args *LookupWebhooksEndpointOutputArgs, opts ...InvokeOption) LookupWebhooksEndpointResultOutput

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

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

    The following arguments are supported:

    Name string
    Slug string
    Name string
    Slug string
    name String
    slug String
    name string
    slug string
    name str
    slug str
    name String
    slug String

    getWebhooksEndpoint Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Name string
    Slug string
    Id string
    The ID of this resource.
    Name string
    Slug string
    id String
    The ID of this resource.
    name String
    slug String
    id string
    The ID of this resource.
    name string
    slug string
    id str
    The ID of this resource.
    name str
    slug str
    id String
    The ID of this resource.
    name String
    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.2.1 published on Tuesday, Apr 2, 2024 by Rootly