Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse
grafana.getOncallEscalationChain
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumi/grafana";
const default = grafana.getOncallEscalationChain({
name: "default",
});
import pulumi
import pulumi_grafana as grafana
default = grafana.get_oncall_escalation_chain(name="default")
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.LookupOncallEscalationChain(ctx, &grafana.LookupOncallEscalationChainArgs{
Name: "default",
}, 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 @default = Grafana.GetOncallEscalationChain.Invoke(new()
{
Name = "default",
});
});
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.GetOncallEscalationChainArgs;
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 default = GrafanaFunctions.getOncallEscalationChain(GetOncallEscalationChainArgs.builder()
.name("default")
.build());
}
}
variables:
default:
fn::invoke:
Function: grafana:getOncallEscalationChain
Arguments:
name: default
Using getOncallEscalationChain
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 getOncallEscalationChain(args: GetOncallEscalationChainArgs, opts?: InvokeOptions): Promise<GetOncallEscalationChainResult>
function getOncallEscalationChainOutput(args: GetOncallEscalationChainOutputArgs, opts?: InvokeOptions): Output<GetOncallEscalationChainResult>
def get_oncall_escalation_chain(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOncallEscalationChainResult
def get_oncall_escalation_chain_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOncallEscalationChainResult]
func LookupOncallEscalationChain(ctx *Context, args *LookupOncallEscalationChainArgs, opts ...InvokeOption) (*LookupOncallEscalationChainResult, error)
func LookupOncallEscalationChainOutput(ctx *Context, args *LookupOncallEscalationChainOutputArgs, opts ...InvokeOption) LookupOncallEscalationChainResultOutput
> Note: This function is named LookupOncallEscalationChain
in the Go SDK.
public static class GetOncallEscalationChain
{
public static Task<GetOncallEscalationChainResult> InvokeAsync(GetOncallEscalationChainArgs args, InvokeOptions? opts = null)
public static Output<GetOncallEscalationChainResult> Invoke(GetOncallEscalationChainInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOncallEscalationChainResult> getOncallEscalationChain(GetOncallEscalationChainArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: grafana:index/getOncallEscalationChain:getOncallEscalationChain
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The escalation chain name.
- Name string
- The escalation chain name.
- name String
- The escalation chain name.
- name string
- The escalation chain name.
- name str
- The escalation chain name.
- name String
- The escalation chain name.
getOncallEscalationChain 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
grafana
Terraform Provider.