Harness v0.7.2 published on Tuesday, Apr 15, 2025 by Pulumi
harness.autostopping.getSchedule
Explore with Pulumi AI
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)
public static Output<GetScheduleResult> getSchedule(GetScheduleArgs args, InvokeOptions options)
fn::invoke:
  function: harness:autostopping/getSchedule:getSchedule
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ScheduleType string
- Type of the schedule. Valid values are uptimeanddowntime
- ScheduleType string
- Type of the schedule. Valid values are uptimeanddowntime
- scheduleType String
- Type of the schedule. Valid values are uptimeanddowntime
- scheduleType string
- Type of the schedule. Valid values are uptimeanddowntime
- schedule_type str
- Type of the schedule. Valid values are uptimeanddowntime
- scheduleType String
- Type of the schedule. Valid values are uptimeanddowntime
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<GetSchedule Repeat> 
- 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 uptimeanddowntime
- 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
[]GetSchedule Repeat 
- 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 uptimeanddowntime
- 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<GetSchedule Repeat> 
- 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 uptimeanddowntime
- 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
GetSchedule Repeat[] 
- 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 uptimeanddowntime
- 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[GetSchedule Repeat] 
- 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 uptimeanddowntime
- 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 uptimeanddowntime
- 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 harnessTerraform Provider.
