1. Packages
  2. Harness Provider
  3. API Docs
  4. autostopping
  5. getSchedule
Harness v0.7.1 published on Saturday, Mar 29, 2025 by Pulumi

harness.autostopping.getSchedule

Explore with Pulumi AI

Harness v0.7.1 published on Saturday, Mar 29, 2025 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>
Copy
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]
Copy
func LookupSchedule(ctx *Context, args *LookupScheduleArgs, opts ...InvokeOption) (*LookupScheduleResult, error)
func LookupScheduleOutput(ctx *Context, args *LookupScheduleOutputArgs, opts ...InvokeOption) LookupScheduleResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetScheduleResult> getSchedule(GetScheduleArgs args, InvokeOptions options)
public static Output<GetScheduleResult> getSchedule(GetScheduleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harness:autostopping/getSchedule:getSchedule
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ScheduleType This property is required. string
Type of the schedule. Valid values are uptime and downtime
ScheduleType This property is required. string
Type of the schedule. Valid values are uptime and downtime
scheduleType This property is required. String
Type of the schedule. Valid values are uptime and downtime
scheduleType This property is required. string
Type of the schedule. Valid values are uptime and downtime
schedule_type This property is required. str
Type of the schedule. Valid values are uptime and downtime
scheduleType This property is required. 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 This property is required. List<string>
List of days on which schedule need to be active. Valid values are SUN, MON, TUE, WED, THU, FRI and SAT.
EndTime This property is required. string
Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
StartTime This property is required. string
Starting time of schedule action on the day. Accepted format is HH:MM. Eg : 13:15 for 01:15pm
Days This property is required. []string
List of days on which schedule need to be active. Valid values are SUN, MON, TUE, WED, THU, FRI and SAT.
EndTime This property is required. string
Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
StartTime This property is required. string
Starting time of schedule action on the day. Accepted format is HH:MM. Eg : 13:15 for 01:15pm
days This property is required. List<String>
List of days on which schedule need to be active. Valid values are SUN, MON, TUE, WED, THU, FRI and SAT.
endTime This property is required. String
Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
startTime This property is required. String
Starting time of schedule action on the day. Accepted format is HH:MM. Eg : 13:15 for 01:15pm
days This property is required. string[]
List of days on which schedule need to be active. Valid values are SUN, MON, TUE, WED, THU, FRI and SAT.
endTime This property is required. string
Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
startTime This property is required. string
Starting time of schedule action on the day. Accepted format is HH:MM. Eg : 13:15 for 01:15pm
days This property is required. 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 This property is required. str
Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
start_time This property is required. str
Starting time of schedule action on the day. Accepted format is HH:MM. Eg : 13:15 for 01:15pm
days This property is required. List<String>
List of days on which schedule need to be active. Valid values are SUN, MON, TUE, WED, THU, FRI and SAT.
endTime This property is required. String
Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
startTime This property is required. 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 v0.7.1 published on Saturday, Mar 29, 2025 by Pulumi