Harness v0.3.2 published on Monday, Sep 16, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: harness:autostopping/getSchedule:getSchedule
arguments:
# arguments dictionary
The following arguments are supported:
- Schedule
Type string - Type of the schedule. Valid values are
uptime
anddowntime
- Schedule
Type string - Type of the schedule. Valid values are
uptime
anddowntime
- schedule
Type String - Type of the schedule. Valid values are
uptime
anddowntime
- schedule
Type string - Type of the schedule. Valid values are
uptime
anddowntime
- schedule_
type str - Type of the schedule. Valid values are
uptime
anddowntime
- schedule
Type String - Type of the schedule. Valid values are
uptime
anddowntime
getSchedule Result
The following output properties are available:
- Ending
On 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<Get
Schedule 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
- Schedule
Type string - Type of the schedule. Valid values are
uptime
anddowntime
- Starting
From 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
- Time
Zone string - Time zone in which schedule needs to be executed
- Ending
On 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
[]Get
Schedule 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
- Schedule
Type string - Type of the schedule. Valid values are
uptime
anddowntime
- Starting
From 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
- Time
Zone string - Time zone in which schedule needs to be executed
- ending
On 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<Get
Schedule 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
- schedule
Type String - Type of the schedule. Valid values are
uptime
anddowntime
- starting
From 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
- time
Zone String - Time zone in which schedule needs to be executed
- ending
On 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
Get
Schedule 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
- schedule
Type string - Type of the schedule. Valid values are
uptime
anddowntime
- starting
From 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
- time
Zone 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[Get
Schedule 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
uptime
anddowntime
- 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
- ending
On 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
- schedule
Type String - Type of the schedule. Valid values are
uptime
anddowntime
- starting
From 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
- time
Zone 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.
- End
Time string - Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
- Start
Time 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.
- End
Time string - Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
- Start
Time 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.
- end
Time String - Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
- start
Time 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.
- end
Time string - Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
- start
Time 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.
- end
Time String - Ending time of schedule action on the day. Accepted format is HH:MM. Eg : 20:00 for 8pm
- start
Time 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.