Grafana v0.16.3 published on Monday, Apr 7, 2025 by pulumiverse
grafana.onCall.getSlackChannel
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumi/grafana";
const exampleSlackChannel = grafana.onCall.getSlackChannel({
    name: "example_slack_channel",
});
import pulumi
import pulumi_grafana as grafana
example_slack_channel = grafana.onCall.get_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/oncall"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := oncall.GetSlackChannel(ctx, &oncall.GetSlackChannelArgs{
			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.OnCall.GetSlackChannel.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.onCall.OnCallFunctions;
import com.pulumi.grafana.onCall.inputs.GetSlackChannelArgs;
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 = OnCallFunctions.getSlackChannel(GetSlackChannelArgs.builder()
            .name("example_slack_channel")
            .build());
    }
}
variables:
  exampleSlackChannel:
    fn::invoke:
      function: grafana:onCall:getSlackChannel
      arguments:
        name: example_slack_channel
Using getSlackChannel
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 getSlackChannel(args: GetSlackChannelArgs, opts?: InvokeOptions): Promise<GetSlackChannelResult>
function getSlackChannelOutput(args: GetSlackChannelOutputArgs, opts?: InvokeOptions): Output<GetSlackChannelResult>def get_slack_channel(name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetSlackChannelResult
def get_slack_channel_output(name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetSlackChannelResult]func GetSlackChannel(ctx *Context, args *GetSlackChannelArgs, opts ...InvokeOption) (*GetSlackChannelResult, error)
func GetSlackChannelOutput(ctx *Context, args *GetSlackChannelOutputArgs, opts ...InvokeOption) GetSlackChannelResultOutput> Note: This function is named GetSlackChannel in the Go SDK.
public static class GetSlackChannel 
{
    public static Task<GetSlackChannelResult> InvokeAsync(GetSlackChannelArgs args, InvokeOptions? opts = null)
    public static Output<GetSlackChannelResult> Invoke(GetSlackChannelInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSlackChannelResult> getSlackChannel(GetSlackChannelArgs args, InvokeOptions options)
public static Output<GetSlackChannelResult> getSlackChannel(GetSlackChannelArgs args, InvokeOptions options)
fn::invoke:
  function: grafana:onCall/getSlackChannel:getSlackChannel
  arguments:
    # arguments dictionaryThe 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.
 
getSlackChannel Result
The following output properties are available:
Package Details
- Repository
 - grafana pulumiverse/pulumi-grafana
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
grafanaTerraform Provider.