Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse
grafana.getOncallSchedule
Explore with Pulumi AI
Deprecated: grafana.index/getoncallschedule.getOncallSchedule has been deprecated in favor of grafana.oncall/getschedule.getSchedule
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumi/grafana";
const schedule = grafana.onCall.getSchedule({
    name: "example_schedule",
});
import pulumi
import pulumi_grafana as grafana
schedule = grafana.onCall.get_schedule(name="example_schedule")
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.GetSchedule(ctx, &oncall.GetScheduleArgs{
			Name: "example_schedule",
		}, 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 schedule = Grafana.OnCall.GetSchedule.Invoke(new()
    {
        Name = "example_schedule",
    });
});
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.GetScheduleArgs;
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 = OnCallFunctions.getSchedule(GetScheduleArgs.builder()
            .name("example_schedule")
            .build());
    }
}
variables:
  schedule:
    fn::invoke:
      Function: grafana:onCall:getSchedule
      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 dictionaryThe 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:
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the grafanaTerraform Provider.
