Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Opsgenie

v1.1.0 published on Thursday, Nov 11, 2021 by Pulumi

getSchedule

Manages a Schedule within Opsgenie.

Example Usage

using Pulumi;
using Opsgenie = Pulumi.Opsgenie;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Opsgenie.GetSchedule.InvokeAsync(new Opsgenie.GetScheduleArgs
        {
            Name = "sre-team schedule",
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opsgenie.LookupSchedule(ctx, &GetScheduleArgs{
			Name: "sre-team schedule",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_opsgenie as opsgenie

test = opsgenie.get_schedule(name="sre-team schedule")
import * as pulumi from "@pulumi/pulumi";
import * as opsgenie from "@pulumi/opsgenie";

const test = pulumi.output(opsgenie.getSchedule({
    name: "sre-team 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(description: Optional[str] = None,
                 enabled: Optional[bool] = None,
                 name: Optional[str] = None,
                 owner_team_id: Optional[str] = None,
                 timezone: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetScheduleResult
def get_schedule_output(description: Optional[pulumi.Input[str]] = None,
                 enabled: Optional[pulumi.Input[bool]] = None,
                 name: Optional[pulumi.Input[str]] = None,
                 owner_team_id: Optional[pulumi.Input[str]] = None,
                 timezone: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetScheduleResult]
func LookupSchedule(ctx *Context, args *LookupScheduleArgs, opts ...InvokeOption) (*LookupScheduleResult, error)
func LookupScheduleOutput(ctx *Context, args *LookupScheduleOutputArgs, opts ...InvokeOption) LookupScheduleResultOutput

> Note: This function is named LookupSchedule 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)
}

The following arguments are supported:

Name string
Name of the schedule.
Description string
Timezone of schedule. Please look at Supported Timezone Ids for available timezones - Default: America/New_York.
Enabled bool
Enable/disable state of schedule
OwnerTeamId string
Owner team id of the schedule.
Timezone string
The description of schedule.
Name string
Name of the schedule.
Description string
Timezone of schedule. Please look at Supported Timezone Ids for available timezones - Default: America/New_York.
Enabled bool
Enable/disable state of schedule
OwnerTeamId string
Owner team id of the schedule.
Timezone string
The description of schedule.
name string
Name of the schedule.
description string
Timezone of schedule. Please look at Supported Timezone Ids for available timezones - Default: America/New_York.
enabled boolean
Enable/disable state of schedule
ownerTeamId string
Owner team id of the schedule.
timezone string
The description of schedule.
name str
Name of the schedule.
description str
Timezone of schedule. Please look at Supported Timezone Ids for available timezones - Default: America/New_York.
enabled bool
Enable/disable state of schedule
owner_team_id str
Owner team id of the schedule.
timezone str
The description of schedule.

getSchedule Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Description string
Timezone of schedule. Please look at Supported Timezone Ids for available timezones - Default: America/New_York.
Enabled bool
Enable/disable state of schedule
OwnerTeamId string
Owner team id of the schedule.
Timezone string
The description of schedule.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Description string
Timezone of schedule. Please look at Supported Timezone Ids for available timezones - Default: America/New_York.
Enabled bool
Enable/disable state of schedule
OwnerTeamId string
Owner team id of the schedule.
Timezone string
The description of schedule.
id string
The provider-assigned unique ID for this managed resource.
name string
description string
Timezone of schedule. Please look at Supported Timezone Ids for available timezones - Default: America/New_York.
enabled boolean
Enable/disable state of schedule
ownerTeamId string
Owner team id of the schedule.
timezone string
The description of schedule.
id str
The provider-assigned unique ID for this managed resource.
name str
description str
Timezone of schedule. Please look at Supported Timezone Ids for available timezones - Default: America/New_York.
enabled bool
Enable/disable state of schedule
owner_team_id str
Owner team id of the schedule.
timezone str
The description of schedule.

Package Details

Repository
https://github.com/pulumi/pulumi-opsgenie
License
Apache-2.0
Notes
This Pulumi package is based on the opsgenie Terraform Provider.