1. Packages
  2. Grafana Cloud
  3. API Docs
  4. getOnCallSlackChannel
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

grafana.getOnCallSlackChannel

Explore with Pulumi AI

grafana logo
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumi/grafana";
    
    const exampleSlackChannel = grafana.getOnCallSlackChannel({
        name: "example_slack_channel",
    });
    
    import pulumi
    import pulumi_grafana as grafana
    
    example_slack_channel = grafana.get_on_call_slack_channel(name="example_slack_channel")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := grafana.GetOnCallSlackChannel(ctx, &grafana.GetOnCallSlackChannelArgs{
    			Name: "example_slack_channel",
    		}, 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 exampleSlackChannel = Grafana.GetOnCallSlackChannel.Invoke(new()
        {
            Name = "example_slack_channel",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.GrafanaFunctions;
    import com.pulumi.grafana.inputs.GetOnCallSlackChannelArgs;
    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 exampleSlackChannel = GrafanaFunctions.getOnCallSlackChannel(GetOnCallSlackChannelArgs.builder()
                .name("example_slack_channel")
                .build());
    
        }
    }
    
    variables:
      exampleSlackChannel:
        fn::invoke:
          Function: grafana:getOnCallSlackChannel
          Arguments:
            name: example_slack_channel
    

    Using getOnCallSlackChannel

    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 getOnCallSlackChannel(args: GetOnCallSlackChannelArgs, opts?: InvokeOptions): Promise<GetOnCallSlackChannelResult>
    function getOnCallSlackChannelOutput(args: GetOnCallSlackChannelOutputArgs, opts?: InvokeOptions): Output<GetOnCallSlackChannelResult>
    def get_on_call_slack_channel(name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetOnCallSlackChannelResult
    def get_on_call_slack_channel_output(name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetOnCallSlackChannelResult]
    func GetOnCallSlackChannel(ctx *Context, args *GetOnCallSlackChannelArgs, opts ...InvokeOption) (*GetOnCallSlackChannelResult, error)
    func GetOnCallSlackChannelOutput(ctx *Context, args *GetOnCallSlackChannelOutputArgs, opts ...InvokeOption) GetOnCallSlackChannelResultOutput

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

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

    The following arguments are supported:

    Name string
    The Slack channel name.
    Name string
    The Slack channel name.
    name String
    The Slack channel name.
    name string
    The Slack channel name.
    name str
    The Slack channel name.
    name String
    The Slack channel name.

    getOnCallSlackChannel Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The Slack channel name.
    SlackId string
    The Slack ID of the channel.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The Slack channel name.
    SlackId string
    The Slack ID of the channel.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The Slack channel name.
    slackId String
    The Slack ID of the channel.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The Slack channel name.
    slackId string
    The Slack ID of the channel.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The Slack channel name.
    slack_id str
    The Slack ID of the channel.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The Slack channel name.
    slackId String
    The Slack ID of the channel.

    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.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse