Grafana v0.16.3 published on Monday, Apr 7, 2025 by pulumiverse
grafana.onCall.getSchedule
Explore with Pulumi AI
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 getSchedule
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 getSchedule(args: GetScheduleArgs, opts?: InvokeOptions): Promise<GetScheduleResult>
function getScheduleOutput(args: GetScheduleOutputArgs, opts?: InvokeOptions): Output<GetScheduleResult>def get_schedule(name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetScheduleResult
def get_schedule_output(name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetScheduleResult]func GetSchedule(ctx *Context, args *GetScheduleArgs, opts ...InvokeOption) (*GetScheduleResult, error)
func GetScheduleOutput(ctx *Context, args *GetScheduleOutputArgs, opts ...InvokeOption) GetScheduleResultOutput> Note: This function is named GetSchedule in the Go SDK.
public static class GetSchedule 
{
    public static Task<GetScheduleResult> InvokeAsync(GetScheduleArgs args, InvokeOptions? opts = null)
    public static Output<GetScheduleResult> Invoke(GetScheduleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetScheduleResult> getSchedule(GetScheduleArgs args, InvokeOptions options)
public static Output<GetScheduleResult> getSchedule(GetScheduleArgs args, InvokeOptions options)
fn::invoke:
  function: grafana:onCall/getSchedule:getSchedule
  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.
 
getSchedule 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.