Strata Cloud Manager v0.1.6 published on Wednesday, Oct 16, 2024 by Pulumi
scm.getSchedule
Explore with Pulumi AI
Retrieves a config item.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const example = scm.getSchedule({
id: "1234-56-789",
});
import pulumi
import pulumi_scm as scm
example = scm.get_schedule(id="1234-56-789")
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scm.LookupSchedule(ctx, &scm.LookupScheduleArgs{
Id: "1234-56-789",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
var example = Scm.GetSchedule.Invoke(new()
{
Id = "1234-56-789",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.ScmFunctions;
import com.pulumi.scm.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 example = ScmFunctions.getSchedule(GetScheduleArgs.builder()
.id("1234-56-789")
.build());
}
}
variables:
example:
fn::invoke:
Function: scm:getSchedule
Arguments:
id: 1234-56-789
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(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetScheduleResult
def get_schedule_output(id: 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)
}
public static CompletableFuture<GetScheduleResult> getSchedule(GetScheduleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: scm:index/getSchedule:getSchedule
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The Id param.
- Id string
- The Id param.
- id String
- The Id param.
- id string
- The Id param.
- id str
- The Id param.
- id String
- The Id param.
getSchedule Result
The following output properties are available:
- Id string
- The Id param.
- Name string
- Alphanumeric string [ 0-9a-zA-Z._-]. String length must not exceed 31 characters.
- Schedule
Type GetSchedule Schedule Type - The ScheduleType param.
- Tfid string
- Id string
- The Id param.
- Name string
- Alphanumeric string [ 0-9a-zA-Z._-]. String length must not exceed 31 characters.
- Schedule
Type GetSchedule Schedule Type - The ScheduleType param.
- Tfid string
- id String
- The Id param.
- name String
- Alphanumeric string [ 0-9a-zA-Z._-]. String length must not exceed 31 characters.
- schedule
Type GetSchedule Schedule Type - The ScheduleType param.
- tfid String
- id string
- The Id param.
- name string
- Alphanumeric string [ 0-9a-zA-Z._-]. String length must not exceed 31 characters.
- schedule
Type GetSchedule Schedule Type - The ScheduleType param.
- tfid string
- id str
- The Id param.
- name str
- Alphanumeric string [ 0-9a-zA-Z._-]. String length must not exceed 31 characters.
- schedule_
type GetSchedule Schedule Type - The ScheduleType param.
- tfid str
- id String
- The Id param.
- name String
- Alphanumeric string [ 0-9a-zA-Z._-]. String length must not exceed 31 characters.
- schedule
Type Property Map - The ScheduleType param.
- tfid String
Supporting Types
GetScheduleScheduleType
- Non
Recurring List<string>Lists - The NonRecurringList param. Individual elements in this list are subject to additional validation. String length must be between 33 and 33 characters. String validation regex:
[0-9][0-9][0-9][0-9]\/([0][1-9]|[1][0-2])\/([0-2][0-9]|[3][0-1])@([01][0-9]|[2][0-3]):([0-5][0-9])-[0-9][0-9][0-9][0-9]\/([0][1-9]|[1][0-2])\/([0-2][0-9]|[3][0-1])@([01][0-9]|[2][0-3]):([0-5][0-9])
. - Recurring
Get
Schedule Schedule Type Recurring - The Recurring param.
- Non
Recurring []stringLists - The NonRecurringList param. Individual elements in this list are subject to additional validation. String length must be between 33 and 33 characters. String validation regex:
[0-9][0-9][0-9][0-9]\/([0][1-9]|[1][0-2])\/([0-2][0-9]|[3][0-1])@([01][0-9]|[2][0-3]):([0-5][0-9])-[0-9][0-9][0-9][0-9]\/([0][1-9]|[1][0-2])\/([0-2][0-9]|[3][0-1])@([01][0-9]|[2][0-3]):([0-5][0-9])
. - Recurring
Get
Schedule Schedule Type Recurring - The Recurring param.
- non
Recurring List<String>Lists - The NonRecurringList param. Individual elements in this list are subject to additional validation. String length must be between 33 and 33 characters. String validation regex:
[0-9][0-9][0-9][0-9]\/([0][1-9]|[1][0-2])\/([0-2][0-9]|[3][0-1])@([01][0-9]|[2][0-3]):([0-5][0-9])-[0-9][0-9][0-9][0-9]\/([0][1-9]|[1][0-2])\/([0-2][0-9]|[3][0-1])@([01][0-9]|[2][0-3]):([0-5][0-9])
. - recurring
Get
Schedule Schedule Type Recurring - The Recurring param.
- non
Recurring string[]Lists - The NonRecurringList param. Individual elements in this list are subject to additional validation. String length must be between 33 and 33 characters. String validation regex:
[0-9][0-9][0-9][0-9]\/([0][1-9]|[1][0-2])\/([0-2][0-9]|[3][0-1])@([01][0-9]|[2][0-3]):([0-5][0-9])-[0-9][0-9][0-9][0-9]\/([0][1-9]|[1][0-2])\/([0-2][0-9]|[3][0-1])@([01][0-9]|[2][0-3]):([0-5][0-9])
. - recurring
Get
Schedule Schedule Type Recurring - The Recurring param.
- non_
recurring_ Sequence[str]lists - The NonRecurringList param. Individual elements in this list are subject to additional validation. String length must be between 33 and 33 characters. String validation regex:
[0-9][0-9][0-9][0-9]\/([0][1-9]|[1][0-2])\/([0-2][0-9]|[3][0-1])@([01][0-9]|[2][0-3]):([0-5][0-9])-[0-9][0-9][0-9][0-9]\/([0][1-9]|[1][0-2])\/([0-2][0-9]|[3][0-1])@([01][0-9]|[2][0-3]):([0-5][0-9])
. - recurring
Get
Schedule Schedule Type Recurring - The Recurring param.
- non
Recurring List<String>Lists - The NonRecurringList param. Individual elements in this list are subject to additional validation. String length must be between 33 and 33 characters. String validation regex:
[0-9][0-9][0-9][0-9]\/([0][1-9]|[1][0-2])\/([0-2][0-9]|[3][0-1])@([01][0-9]|[2][0-3]):([0-5][0-9])-[0-9][0-9][0-9][0-9]\/([0][1-9]|[1][0-2])\/([0-2][0-9]|[3][0-1])@([01][0-9]|[2][0-3]):([0-5][0-9])
. - recurring Property Map
- The Recurring param.
GetScheduleScheduleTypeRecurring
- Daily
Lists List<string> - The DailyList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Weekly
Get
Schedule Schedule Type Recurring Weekly - The Weekly param.
- Daily
Lists []string - The DailyList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Weekly
Get
Schedule Schedule Type Recurring Weekly - The Weekly param.
- daily
Lists List<String> - The DailyList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - weekly
Get
Schedule Schedule Type Recurring Weekly - The Weekly param.
- daily
Lists string[] - The DailyList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - weekly
Get
Schedule Schedule Type Recurring Weekly - The Weekly param.
- daily_
lists Sequence[str] - The DailyList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - weekly
Get
Schedule Schedule Type Recurring Weekly - The Weekly param.
- daily
Lists List<String> - The DailyList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - weekly Property Map
- The Weekly param.
GetScheduleScheduleTypeRecurringWeekly
- Friday
Lists List<string> - The FridayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Monday
Lists List<string> - The MondayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Saturday
Lists List<string> - The SaturdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Sunday
Lists List<string> - The SundayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Thursday
Lists List<string> - The ThursdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Tuesday
Lists List<string> - The TuesdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Wednesday
Lists List<string> - The WednesdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
.
- Friday
Lists []string - The FridayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Monday
Lists []string - The MondayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Saturday
Lists []string - The SaturdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Sunday
Lists []string - The SundayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Thursday
Lists []string - The ThursdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Tuesday
Lists []string - The TuesdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - Wednesday
Lists []string - The WednesdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
.
- friday
Lists List<String> - The FridayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - monday
Lists List<String> - The MondayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - saturday
Lists List<String> - The SaturdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - sunday
Lists List<String> - The SundayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - thursday
Lists List<String> - The ThursdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - tuesday
Lists List<String> - The TuesdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - wednesday
Lists List<String> - The WednesdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
.
- friday
Lists string[] - The FridayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - monday
Lists string[] - The MondayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - saturday
Lists string[] - The SaturdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - sunday
Lists string[] - The SundayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - thursday
Lists string[] - The ThursdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - tuesday
Lists string[] - The TuesdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - wednesday
Lists string[] - The WednesdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
.
- friday_
lists Sequence[str] - The FridayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - monday_
lists Sequence[str] - The MondayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - saturday_
lists Sequence[str] - The SaturdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - sunday_
lists Sequence[str] - The SundayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - thursday_
lists Sequence[str] - The ThursdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - tuesday_
lists Sequence[str] - The TuesdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - wednesday_
lists Sequence[str] - The WednesdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
.
- friday
Lists List<String> - The FridayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - monday
Lists List<String> - The MondayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - saturday
Lists List<String> - The SaturdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - sunday
Lists List<String> - The SundayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - thursday
Lists List<String> - The ThursdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - tuesday
Lists List<String> - The TuesdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
. - wednesday
Lists List<String> - The WednesdayList param. Individual elements in this list are subject to additional validation. String length must be between 11 and 11 characters. String validation regex:
([01][0-9]|[2][0-3]):([0-5][0-9])-([01][0-9]|[2][0-3]):([0-5][0-9])
.
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scm
Terraform Provider.