grafana.getOncallSchedule

Explore with Pulumi AI

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var schedule = Grafana.GetOncallSchedule.Invoke(new()
    {
        Name = "example_schedule",
    });

});
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.LookupOncallSchedule(ctx, &grafana.LookupOncallScheduleArgs{
			Name: "example_schedule",
		}, nil)
		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.GrafanaFunctions;
import com.pulumi.grafana.inputs.GetOncallScheduleArgs;
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 schedule = GrafanaFunctions.getOncallSchedule(GetOncallScheduleArgs.builder()
            .name("example_schedule")
            .build());

    }
}
import pulumi
import pulumi_grafana as grafana

schedule = grafana.get_oncall_schedule(name="example_schedule")
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumi/grafana";

const schedule = grafana.getOncallSchedule({
    name: "example_schedule",
});
variables:
  schedule:
    fn::invoke:
      Function: grafana:getOncallSchedule
      Arguments:
        name: example_schedule

Using getOncallSchedule

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 getOncallSchedule(args: GetOncallScheduleArgs, opts?: InvokeOptions): Promise<GetOncallScheduleResult>
function getOncallScheduleOutput(args: GetOncallScheduleOutputArgs, opts?: InvokeOptions): Output<GetOncallScheduleResult>
def get_oncall_schedule(name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetOncallScheduleResult
def get_oncall_schedule_output(name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetOncallScheduleResult]
func LookupOncallSchedule(ctx *Context, args *LookupOncallScheduleArgs, opts ...InvokeOption) (*LookupOncallScheduleResult, error)
func LookupOncallScheduleOutput(ctx *Context, args *LookupOncallScheduleOutputArgs, opts ...InvokeOption) LookupOncallScheduleResultOutput

> Note: This function is named LookupOncallSchedule in the Go SDK.

public static class GetOncallSchedule 
{
    public static Task<GetOncallScheduleResult> InvokeAsync(GetOncallScheduleArgs args, InvokeOptions? opts = null)
    public static Output<GetOncallScheduleResult> Invoke(GetOncallScheduleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOncallScheduleResult> getOncallSchedule(GetOncallScheduleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: grafana:index/getOncallSchedule:getOncallSchedule
  arguments:
    # arguments dictionary

The following arguments are supported:

Name string

The schedule name.

Name string

The schedule name.

name String

The schedule name.

name string

The schedule name.

name str

The schedule name.

name String

The schedule name.

getOncallSchedule Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Name string

The schedule name.

Type string

The schedule type.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The schedule name.

Type string

The schedule type.

id String

The provider-assigned unique ID for this managed resource.

name String

The schedule name.

type String

The schedule type.

id string

The provider-assigned unique ID for this managed resource.

name string

The schedule name.

type string

The schedule type.

id str

The provider-assigned unique ID for this managed resource.

name str

The schedule name.

type str

The schedule type.

id String

The provider-assigned unique ID for this managed resource.

name String

The schedule name.

type String

The schedule type.

Package Details

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

This Pulumi package is based on the grafana Terraform Provider.