1. Packages
  2. Harness
  3. API Docs
  4. autostopping
  5. getSchedule
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

harness.autostopping.getSchedule

Explore with Pulumi AI

harness logo
Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi

    Data source for retrieving a fixed schedule for Harness AutoStopping rule

    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(schedule_type: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetScheduleResult
    def get_schedule_output(schedule_type: 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: harness:autostopping/getSchedule:getSchedule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ScheduleType string
    Type of the schedule. Valid values are uptime and downtime
    ScheduleType string
    Type of the schedule. Valid values are uptime and downtime
    scheduleType String
    Type of the schedule. Valid values are uptime and downtime
    scheduleType string
    Type of the schedule. Valid values are uptime and downtime
    schedule_type str
    Type of the schedule. Valid values are uptime and downtime
    scheduleType String
    Type of the schedule. Valid values are uptime and downtime

    getSchedule Result

    The following output properties are available:

    EndingOn string
    Time until which schedule will be active. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier double
    Unique identifier of the schedule
    Name string
    Name of the schedule
    Repeats List<GetScheduleRepeat>
    For defining periodic schedule. Periodic nature will be applicable from the time of creation of schedule, unless specific 'time_period' is specified
    Rules List<double>
    ID of AutoStopping rules on which the schedule applies
    ScheduleType string
    Type of the schedule. Valid values are uptime and downtime
    StartingFrom string
    Time from which schedule will be active. Schedule will take immediate effect if starting_from is not specified. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05
    TimeZone string
    Time zone in which schedule needs to be executed
    EndingOn string
    Time until which schedule will be active. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier float64
    Unique identifier of the schedule
    Name string
    Name of the schedule
    Repeats []GetScheduleRepeat
    For defining periodic schedule. Periodic nature will be applicable from the time of creation of schedule, unless specific 'time_period' is specified
    Rules []float64
    ID of AutoStopping rules on which the schedule applies
    ScheduleType string
    Type of the schedule. Valid values are uptime and downtime
    StartingFrom string
    Time from which schedule will be active. Schedule will take immediate effect if starting_from is not specified. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05
    TimeZone string
    Time zone in which schedule needs to be executed
    endingOn String
    Time until which schedule will be active. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05
    id String
    The provider-assigned unique ID for this managed resource.
    identifier Double
    Unique identifier of the schedule
    name String
    Name of the schedule
    repeats List<GetScheduleRepeat>
    For defining periodic schedule. Periodic nature will be applicable from the time of creation of schedule, unless specific 'time_period' is specified
    rules List<Double>
    ID of AutoStopping rules on which the schedule applies
    scheduleType String
    Type of the schedule. Valid values are uptime and downtime
    startingFrom String
    Time from which schedule will be active. Schedule will take immediate effect if starting_from is not specified. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05
    timeZone String
    Time zone in which schedule needs to be executed
    endingOn string
    Time until which schedule will be active. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05
    id string
    The provider-assigned unique ID for this managed resource.
    identifier number
    Unique identifier of the schedule
    name string
    Name of the schedule
    repeats GetScheduleRepeat[]
    For defining periodic schedule. Periodic nature will be applicable from the time of creation of schedule, unless specific 'time_period' is specified
    rules number[]
    ID of AutoStopping rules on which the schedule applies
    scheduleType string
    Type of the schedule. Valid values are uptime and downtime
    startingFrom string
    Time from which schedule will be active. Schedule will take immediate effect if starting_from is not specified. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05
    timeZone string
    Time zone in which schedule needs to be executed
    ending_on str
    Time until which schedule will be active. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05
    id str
    The provider-assigned unique ID for this managed resource.
    identifier float
    Unique identifier of the schedule
    name str
    Name of the schedule
    repeats Sequence[GetScheduleRepeat]
    For defining periodic schedule. Periodic nature will be applicable from the time of creation of schedule, unless specific 'time_period' is specified
    rules Sequence[float]
    ID of AutoStopping rules on which the schedule applies
    schedule_type str
    Type of the schedule. Valid values are uptime and downtime
    starting_from str
    Time from which schedule will be active. Schedule will take immediate effect if starting_from is not specified. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05
    time_zone str
    Time zone in which schedule needs to be executed
    endingOn String
    Time until which schedule will be active. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05
    id String
    The provider-assigned unique ID for this managed resource.
    identifier Number
    Unique identifier of the schedule
    name String
    Name of the schedule
    repeats List<Property Map>
    For defining periodic schedule. Periodic nature will be applicable from the time of creation of schedule, unless specific 'time_period' is specified
    rules List<Number>
    ID of AutoStopping rules on which the schedule applies
    scheduleType String
    Type of the schedule. Valid values are uptime and downtime
    startingFrom String
    Time from which schedule will be active. Schedule will take immediate effect if starting_from is not specified. Need to be in YYYY-MM-DD HH:mm:SS format. Eg 2006-01-02 15:04:05
    timeZone String
    Time zone in which schedule needs to be executed

    Supporting Types

    GetScheduleRepeat

    Days List<string>
    List of days on which schedule need to be active. Valid values are SUN, MON, TUE, WED, THU, FRI and SAT.
    EndTime string
    Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
    StartTime string
    Starting time of schedule action on the day. Accepted format is HH:MM. Eg : 13:15 for 01:15pm
    Days []string
    List of days on which schedule need to be active. Valid values are SUN, MON, TUE, WED, THU, FRI and SAT.
    EndTime string
    Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
    StartTime string
    Starting time of schedule action on the day. Accepted format is HH:MM. Eg : 13:15 for 01:15pm
    days List<String>
    List of days on which schedule need to be active. Valid values are SUN, MON, TUE, WED, THU, FRI and SAT.
    endTime String
    Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
    startTime String
    Starting time of schedule action on the day. Accepted format is HH:MM. Eg : 13:15 for 01:15pm
    days string[]
    List of days on which schedule need to be active. Valid values are SUN, MON, TUE, WED, THU, FRI and SAT.
    endTime string
    Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
    startTime string
    Starting time of schedule action on the day. Accepted format is HH:MM. Eg : 13:15 for 01:15pm
    days Sequence[str]
    List of days on which schedule need to be active. Valid values are SUN, MON, TUE, WED, THU, FRI and SAT.
    end_time str
    Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
    start_time str
    Starting time of schedule action on the day. Accepted format is HH:MM. Eg : 13:15 for 01:15pm
    days List<String>
    List of days on which schedule need to be active. Valid values are SUN, MON, TUE, WED, THU, FRI and SAT.
    endTime String
    Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
    startTime String
    Starting time of schedule action on the day. Accepted format is HH:MM. Eg : 13:15 for 01:15pm

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.3.2 published on Monday, Sep 16, 2024 by Pulumi