Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse
grafana.onCall.getEscalationChain
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumi/grafana";
const default = grafana.onCall.getEscalationChain({
name: "default",
});
import pulumi
import pulumi_grafana as grafana
default = grafana.onCall.get_escalation_chain(name="default")
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.GetEscalationChain(ctx, &oncall.GetEscalationChainArgs{
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.OnCall.GetEscalationChain.Invoke(new()
{
Name = "default",
});
});
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.GetEscalationChainArgs;
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 = OnCallFunctions.getEscalationChain(GetEscalationChainArgs.builder()
.name("default")
.build());
}
}
variables:
default:
fn::invoke:
Function: grafana:onCall:getEscalationChain
Arguments:
name: default
Using getEscalationChain
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 getEscalationChain(args: GetEscalationChainArgs, opts?: InvokeOptions): Promise<GetEscalationChainResult>
function getEscalationChainOutput(args: GetEscalationChainOutputArgs, opts?: InvokeOptions): Output<GetEscalationChainResult>
def get_escalation_chain(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEscalationChainResult
def get_escalation_chain_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEscalationChainResult]
func GetEscalationChain(ctx *Context, args *GetEscalationChainArgs, opts ...InvokeOption) (*GetEscalationChainResult, error)
func GetEscalationChainOutput(ctx *Context, args *GetEscalationChainOutputArgs, opts ...InvokeOption) GetEscalationChainResultOutput
> Note: This function is named GetEscalationChain
in the Go SDK.
public static class GetEscalationChain
{
public static Task<GetEscalationChainResult> InvokeAsync(GetEscalationChainArgs args, InvokeOptions? opts = null)
public static Output<GetEscalationChainResult> Invoke(GetEscalationChainInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEscalationChainResult> getEscalationChain(GetEscalationChainArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: grafana:onCall/getEscalationChain:getEscalationChain
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.
getEscalationChain 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.