grafana.OncallEscalationChain

Explore with Pulumi AI

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Lbrlabs.PulumiPackage.Grafana;

return await Deployment.RunAsync(() => 
{
    var @default = new Grafana.OncallEscalationChain("default", new()
    {
    }, new CustomResourceOptions
    {
        Provider = grafana.Oncall,
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-grafana/sdk/go/grafana"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := grafana.NewOncallEscalationChain(ctx, "default", nil, pulumi.Provider(grafana.Oncall))
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.OncallEscalationChain;
import com.pulumi.grafana.OncallEscalationChainArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
        var default_ = new OncallEscalationChain("default", OncallEscalationChainArgs.Empty, CustomResourceOptions.builder()
            .provider(grafana.oncall())
            .build());

    }
}
import pulumi
import lbrlabs_pulumi_grafana as grafana

default = grafana.OncallEscalationChain("default", opts=pulumi.ResourceOptions(provider=grafana["oncall"]))
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@lbrlabs/pulumi-grafana";

const _default = new grafana.OncallEscalationChain("default", {}, {
    provider: grafana.oncall,
});
resources:
  default:
    type: grafana:OncallEscalationChain
    options:
      provider: ${grafana.oncall}

Create OncallEscalationChain Resource

new OncallEscalationChain(name: string, args?: OncallEscalationChainArgs, opts?: CustomResourceOptions);
@overload
def OncallEscalationChain(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          name: Optional[str] = None,
                          team_id: Optional[str] = None)
@overload
def OncallEscalationChain(resource_name: str,
                          args: Optional[OncallEscalationChainArgs] = None,
                          opts: Optional[ResourceOptions] = None)
func NewOncallEscalationChain(ctx *Context, name string, args *OncallEscalationChainArgs, opts ...ResourceOption) (*OncallEscalationChain, error)
public OncallEscalationChain(string name, OncallEscalationChainArgs? args = null, CustomResourceOptions? opts = null)
public OncallEscalationChain(String name, OncallEscalationChainArgs args)
public OncallEscalationChain(String name, OncallEscalationChainArgs args, CustomResourceOptions options)
type: grafana:OncallEscalationChain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args OncallEscalationChainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args OncallEscalationChainArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args OncallEscalationChainArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args OncallEscalationChainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args OncallEscalationChainArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

OncallEscalationChain Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The OncallEscalationChain resource accepts the following input properties:

Name string

The name of the escalation chain.

TeamId string

The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.getOncallTeam datasource.

Name string

The name of the escalation chain.

TeamId string

The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.getOncallTeam datasource.

name String

The name of the escalation chain.

teamId String

The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.getOncallTeam datasource.

name string

The name of the escalation chain.

teamId string

The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.getOncallTeam datasource.

name str

The name of the escalation chain.

team_id str

The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.getOncallTeam datasource.

name String

The name of the escalation chain.

teamId String

The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.getOncallTeam datasource.

Outputs

All input properties are implicitly available as output properties. Additionally, the OncallEscalationChain resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing OncallEscalationChain Resource

Get an existing OncallEscalationChain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: OncallEscalationChainState, opts?: CustomResourceOptions): OncallEscalationChain
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        name: Optional[str] = None,
        team_id: Optional[str] = None) -> OncallEscalationChain
func GetOncallEscalationChain(ctx *Context, name string, id IDInput, state *OncallEscalationChainState, opts ...ResourceOption) (*OncallEscalationChain, error)
public static OncallEscalationChain Get(string name, Input<string> id, OncallEscalationChainState? state, CustomResourceOptions? opts = null)
public static OncallEscalationChain get(String name, Output<String> id, OncallEscalationChainState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Name string

The name of the escalation chain.

TeamId string

The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.getOncallTeam datasource.

Name string

The name of the escalation chain.

TeamId string

The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.getOncallTeam datasource.

name String

The name of the escalation chain.

teamId String

The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.getOncallTeam datasource.

name string

The name of the escalation chain.

teamId string

The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.getOncallTeam datasource.

name str

The name of the escalation chain.

team_id str

The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.getOncallTeam datasource.

name String

The name of the escalation chain.

teamId String

The ID of the OnCall team. To get one, create a team in Grafana, and navigate to the OnCall plugin (to sync the team with OnCall). You can then get the ID using the grafana.getOncallTeam datasource.

Import

 $ pulumi import grafana:index/oncallEscalationChain:OncallEscalationChain escalation_chain_name {{escalation_chain_id}}

Package Details

Repository
grafana lbrlabs/pulumi-grafana
License
Apache-2.0
Notes

This Pulumi package is based on the grafana Terraform Provider.