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

grafana.getOncallEscalationChain

Explore with Pulumi AI

grafana logo
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse
    Deprecated: grafana.index/getoncallescalationchain.getOncallEscalationChain has been deprecated in favor of grafana.oncall/getescalationchain.getEscalationChain

    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 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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The escalation chain name.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The escalation chain name.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The escalation chain name.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The escalation chain name.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The escalation chain name.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The escalation chain 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