1. Packages
  2. Grafana Cloud
  3. API Docs
  4. getOncallOutgoingWebhook
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse

grafana.getOncallOutgoingWebhook

Explore with Pulumi AI

grafana logo
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse
    Deprecated: grafana.index/getoncalloutgoingwebhook.getOncallOutgoingWebhook has been deprecated in favor of grafana.oncall/getoutgoingwebhook.getOutgoingWebhook

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumi/grafana";
    
    const exampleOutgoingWebhook = grafana.onCall.getOutgoingWebhook({
        name: "example_outgoing_webhook",
    });
    
    import pulumi
    import pulumi_grafana as grafana
    
    example_outgoing_webhook = grafana.onCall.get_outgoing_webhook(name="example_outgoing_webhook")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/onCall"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := onCall.GetOutgoingWebhook(ctx, &oncall.GetOutgoingWebhookArgs{
    			Name: "example_outgoing_webhook",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumi.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleOutgoingWebhook = Grafana.OnCall.GetOutgoingWebhook.Invoke(new()
        {
            Name = "example_outgoing_webhook",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.onCall.OnCallFunctions;
    import com.pulumi.grafana.onCall.inputs.GetOutgoingWebhookArgs;
    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 exampleOutgoingWebhook = OnCallFunctions.getOutgoingWebhook(GetOutgoingWebhookArgs.builder()
                .name("example_outgoing_webhook")
                .build());
    
        }
    }
    
    variables:
      exampleOutgoingWebhook:
        fn::invoke:
          Function: grafana:onCall:getOutgoingWebhook
          Arguments:
            name: example_outgoing_webhook
    

    Using getOncallOutgoingWebhook

    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 getOncallOutgoingWebhook(args: GetOncallOutgoingWebhookArgs, opts?: InvokeOptions): Promise<GetOncallOutgoingWebhookResult>
    function getOncallOutgoingWebhookOutput(args: GetOncallOutgoingWebhookOutputArgs, opts?: InvokeOptions): Output<GetOncallOutgoingWebhookResult>
    def get_oncall_outgoing_webhook(name: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetOncallOutgoingWebhookResult
    def get_oncall_outgoing_webhook_output(name: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetOncallOutgoingWebhookResult]
    func LookupOncallOutgoingWebhook(ctx *Context, args *LookupOncallOutgoingWebhookArgs, opts ...InvokeOption) (*LookupOncallOutgoingWebhookResult, error)
    func LookupOncallOutgoingWebhookOutput(ctx *Context, args *LookupOncallOutgoingWebhookOutputArgs, opts ...InvokeOption) LookupOncallOutgoingWebhookResultOutput

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

    public static class GetOncallOutgoingWebhook 
    {
        public static Task<GetOncallOutgoingWebhookResult> InvokeAsync(GetOncallOutgoingWebhookArgs args, InvokeOptions? opts = null)
        public static Output<GetOncallOutgoingWebhookResult> Invoke(GetOncallOutgoingWebhookInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOncallOutgoingWebhookResult> getOncallOutgoingWebhook(GetOncallOutgoingWebhookArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: grafana:index/getOncallOutgoingWebhook:getOncallOutgoingWebhook
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The outgoing webhook name.
    Name string
    The outgoing webhook name.
    name String
    The outgoing webhook name.
    name string
    The outgoing webhook name.
    name str
    The outgoing webhook name.
    name String
    The outgoing webhook name.

    getOncallOutgoingWebhook Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The outgoing webhook name.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The outgoing webhook name.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The outgoing webhook name.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The outgoing webhook name.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The outgoing webhook name.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The outgoing webhook name.

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse