Viewing docs for Oracle Cloud Infrastructure v4.4.0
published on Thursday, Mar 26, 2026 by Pulumi
published on Thursday, Mar 26, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.4.0
published on Thursday, Mar 26, 2026 by Pulumi
published on Thursday, Mar 26, 2026 by Pulumi
This data source provides details about a specific Schedule resource in Oracle Cloud Infrastructure Resource Scheduler service.
This API gets information about a schedule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSchedule = oci.ResourceScheduler.getSchedule({
scheduleId: testScheduleOciResourceSchedulerSchedule.id,
});
import pulumi
import pulumi_oci as oci
test_schedule = oci.ResourceScheduler.get_schedule(schedule_id=test_schedule_oci_resource_scheduler_schedule["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/resourcescheduler"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := resourcescheduler.GetSchedule(ctx, &resourcescheduler.GetScheduleArgs{
ScheduleId: testScheduleOciResourceSchedulerSchedule.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testSchedule = Oci.ResourceScheduler.GetSchedule.Invoke(new()
{
ScheduleId = testScheduleOciResourceSchedulerSchedule.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ResourceScheduler.ResourceSchedulerFunctions;
import com.pulumi.oci.ResourceScheduler.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 testSchedule = ResourceSchedulerFunctions.getSchedule(GetScheduleArgs.builder()
.scheduleId(testScheduleOciResourceSchedulerSchedule.id())
.build());
}
}
variables:
testSchedule:
fn::invoke:
function: oci:ResourceScheduler:getSchedule
arguments:
scheduleId: ${testScheduleOciResourceSchedulerSchedule.id}
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_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetScheduleResult
def get_schedule_output(schedule_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)
public static Output<GetScheduleResult> getSchedule(GetScheduleArgs args, InvokeOptions options)
fn::invoke:
function: oci:ResourceScheduler/getSchedule:getSchedule
arguments:
# arguments dictionaryThe following arguments are supported:
- Schedule
Id string - This is the OCID of the schedule.
- Schedule
Id string - This is the OCID of the schedule.
- schedule
Id String - This is the OCID of the schedule.
- schedule
Id string - This is the OCID of the schedule.
- schedule_
id str - This is the OCID of the schedule.
- schedule
Id String - This is the OCID of the schedule.
getSchedule Result
The following output properties are available:
- Action string
- This is the action that will be executed by the schedule.
- Compartment
Id string - The OCID of the compartment in which the schedule is created
- Dictionary<string, string>
- These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- This is the description of the schedule.
- Display
Name string - This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
- Dictionary<string, string>
- These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- This is the resource OCID.
- Last
Run stringStatus - This is the status of the last work request.
- Recurrence
Details string - This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
- Recurrence
Type string - Type of recurrence of a schedule
- Resource
Filters List<GetSchedule Resource Filter> - This is a list of resources filters. The schedule will be applied to resources matching all of them.
- Resources
List<Get
Schedule Resource> - This is the list of resources to which the scheduled operation is applied.
- Schedule
Id string - State string
- This is the current state of a schedule.
- Dictionary<string, string>
- These are system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - This is the date and time the schedule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Ends string - This is the date and time the schedule ends, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - Time
Last stringRun - This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Next stringRun - This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Starts string - This is the date and time the schedule starts, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - Time
Updated string - This is the date and time the schedule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Action string
- This is the action that will be executed by the schedule.
- Compartment
Id string - The OCID of the compartment in which the schedule is created
- map[string]string
- These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- This is the description of the schedule.
- Display
Name string - This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
- map[string]string
- These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- This is the resource OCID.
- Last
Run stringStatus - This is the status of the last work request.
- Recurrence
Details string - This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
- Recurrence
Type string - Type of recurrence of a schedule
- Resource
Filters []GetSchedule Resource Filter - This is a list of resources filters. The schedule will be applied to resources matching all of them.
- Resources
[]Get
Schedule Resource - This is the list of resources to which the scheduled operation is applied.
- Schedule
Id string - State string
- This is the current state of a schedule.
- map[string]string
- These are system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - This is the date and time the schedule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Ends string - This is the date and time the schedule ends, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - Time
Last stringRun - This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Next stringRun - This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Starts string - This is the date and time the schedule starts, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - Time
Updated string - This is the date and time the schedule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- action String
- This is the action that will be executed by the schedule.
- compartment
Id String - The OCID of the compartment in which the schedule is created
- Map<String,String>
- These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- This is the description of the schedule.
- display
Name String - This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
- Map<String,String>
- These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- This is the resource OCID.
- last
Run StringStatus - This is the status of the last work request.
- recurrence
Details String - This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
- recurrence
Type String - Type of recurrence of a schedule
- resource
Filters List<GetSchedule Resource Filter> - This is a list of resources filters. The schedule will be applied to resources matching all of them.
- resources
List<Get
Schedule Resource> - This is the list of resources to which the scheduled operation is applied.
- schedule
Id String - state String
- This is the current state of a schedule.
- Map<String,String>
- These are system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - This is the date and time the schedule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Ends String - This is the date and time the schedule ends, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - time
Last StringRun - This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Next StringRun - This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Starts String - This is the date and time the schedule starts, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - time
Updated String - This is the date and time the schedule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- action string
- This is the action that will be executed by the schedule.
- compartment
Id string - The OCID of the compartment in which the schedule is created
- {[key: string]: string}
- These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description string
- This is the description of the schedule.
- display
Name string - This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
- {[key: string]: string}
- These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id string
- This is the resource OCID.
- last
Run stringStatus - This is the status of the last work request.
- recurrence
Details string - This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
- recurrence
Type string - Type of recurrence of a schedule
- resource
Filters GetSchedule Resource Filter[] - This is a list of resources filters. The schedule will be applied to resources matching all of them.
- resources
Get
Schedule Resource[] - This is the list of resources to which the scheduled operation is applied.
- schedule
Id string - state string
- This is the current state of a schedule.
- {[key: string]: string}
- These are system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - This is the date and time the schedule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Ends string - This is the date and time the schedule ends, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - time
Last stringRun - This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Next stringRun - This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Starts string - This is the date and time the schedule starts, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - time
Updated string - This is the date and time the schedule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- action str
- This is the action that will be executed by the schedule.
- compartment_
id str - The OCID of the compartment in which the schedule is created
- Mapping[str, str]
- These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description str
- This is the description of the schedule.
- display_
name str - This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
- Mapping[str, str]
- These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id str
- This is the resource OCID.
- last_
run_ strstatus - This is the status of the last work request.
- recurrence_
details str - This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
- recurrence_
type str - Type of recurrence of a schedule
- resource_
filters Sequence[GetSchedule Resource Filter] - This is a list of resources filters. The schedule will be applied to resources matching all of them.
- resources
Sequence[Get
Schedule Resource] - This is the list of resources to which the scheduled operation is applied.
- schedule_
id str - state str
- This is the current state of a schedule.
- Mapping[str, str]
- These are system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - This is the date and time the schedule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time_
ends str - This is the date and time the schedule ends, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - time_
last_ strrun - This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time_
next_ strrun - This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time_
starts str - This is the date and time the schedule starts, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - time_
updated str - This is the date and time the schedule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- action String
- This is the action that will be executed by the schedule.
- compartment
Id String - The OCID of the compartment in which the schedule is created
- Map<String>
- These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- This is the description of the schedule.
- display
Name String - This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.
- Map<String>
- These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- This is the resource OCID.
- last
Run StringStatus - This is the status of the last work request.
- recurrence
Details String - This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.
- recurrence
Type String - Type of recurrence of a schedule
- resource
Filters List<Property Map> - This is a list of resources filters. The schedule will be applied to resources matching all of them.
- resources List<Property Map>
- This is the list of resources to which the scheduled operation is applied.
- schedule
Id String - state String
- This is the current state of a schedule.
- Map<String>
- These are system tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - This is the date and time the schedule was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Ends String - This is the date and time the schedule ends, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - time
Last StringRun - This is the date and time the schedule runs last time, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Next StringRun - This is the date and time the schedule run the next time, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Starts String - This is the date and time the schedule starts, in the format defined by RFC 3339 Example:
2016-08-25T21:10:29.600Z - time
Updated String - This is the date and time the schedule was updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
Supporting Types
GetScheduleResource
- Id string
- This is the resource OCID.
- Metadata Dictionary<string, string>
- This is additional information that helps to identity the resource for the schedule.
- Parameters
List<Get
Schedule Resource Parameter> - This is the user input parameters to use when acting on the resource.
- Id string
- This is the resource OCID.
- Metadata map[string]string
- This is additional information that helps to identity the resource for the schedule.
- Parameters
[]Get
Schedule Resource Parameter - This is the user input parameters to use when acting on the resource.
- id String
- This is the resource OCID.
- metadata Map<String,String>
- This is additional information that helps to identity the resource for the schedule.
- parameters
List<Get
Schedule Resource Parameter> - This is the user input parameters to use when acting on the resource.
- id string
- This is the resource OCID.
- metadata {[key: string]: string}
- This is additional information that helps to identity the resource for the schedule.
- parameters
Get
Schedule Resource Parameter[] - This is the user input parameters to use when acting on the resource.
- id str
- This is the resource OCID.
- metadata Mapping[str, str]
- This is additional information that helps to identity the resource for the schedule.
- parameters
Sequence[Get
Schedule Resource Parameter] - This is the user input parameters to use when acting on the resource.
- id String
- This is the resource OCID.
- metadata Map<String>
- This is additional information that helps to identity the resource for the schedule.
- parameters List<Property Map>
- This is the user input parameters to use when acting on the resource.
GetScheduleResourceFilter
- Attribute string
- This is the resource attribute on which the threshold is defined.
- Condition string
- This is the condition for the filter in comparison to its creation time.
- Should
Include boolChild Compartments - This sets whether to include child compartments.
- Values
List<Get
Schedule Resource Filter Value> - This is the HTTP request header value.
- Attribute string
- This is the resource attribute on which the threshold is defined.
- Condition string
- This is the condition for the filter in comparison to its creation time.
- Should
Include boolChild Compartments - This sets whether to include child compartments.
- Values
[]Get
Schedule Resource Filter Value - This is the HTTP request header value.
- attribute String
- This is the resource attribute on which the threshold is defined.
- condition String
- This is the condition for the filter in comparison to its creation time.
- should
Include BooleanChild Compartments - This sets whether to include child compartments.
- values
List<Get
Schedule Resource Filter Value> - This is the HTTP request header value.
- attribute string
- This is the resource attribute on which the threshold is defined.
- condition string
- This is the condition for the filter in comparison to its creation time.
- should
Include booleanChild Compartments - This sets whether to include child compartments.
- values
Get
Schedule Resource Filter Value[] - This is the HTTP request header value.
- attribute str
- This is the resource attribute on which the threshold is defined.
- condition str
- This is the condition for the filter in comparison to its creation time.
- should_
include_ boolchild_ compartments - This sets whether to include child compartments.
- values
Sequence[Get
Schedule Resource Filter Value] - This is the HTTP request header value.
- attribute String
- This is the resource attribute on which the threshold is defined.
- condition String
- This is the condition for the filter in comparison to its creation time.
- should
Include BooleanChild Compartments - This sets whether to include child compartments.
- values List<Property Map>
- This is the HTTP request header value.
GetScheduleResourceFilterValue
GetScheduleResourceParameter
- Parameter
Type string - This is the parameter type on which the input parameter is defined
- Values List<string>
- This is the HTTP request header value.
- Parameter
Type string - This is the parameter type on which the input parameter is defined
- Values []string
- This is the HTTP request header value.
- parameter
Type String - This is the parameter type on which the input parameter is defined
- values List<String>
- This is the HTTP request header value.
- parameter
Type string - This is the parameter type on which the input parameter is defined
- values string[]
- This is the HTTP request header value.
- parameter_
type str - This is the parameter type on which the input parameter is defined
- values Sequence[str]
- This is the HTTP request header value.
- parameter
Type String - This is the parameter type on which the input parameter is defined
- values List<String>
- This is the HTTP request header value.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.4.0
published on Thursday, Mar 26, 2026 by Pulumi
published on Thursday, Mar 26, 2026 by Pulumi
