Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.ResourceScheduler.getSchedule
Explore with Pulumi AI
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/v2/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 GetSchedule(ctx *Context, args *GetScheduleArgs, opts ...InvokeOption) (*GetScheduleResult, error)
func GetScheduleOutput(ctx *Context, args *GetScheduleOutputArgs, opts ...InvokeOption) GetScheduleResultOutput
> Note: This function is named GetSchedule
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: oci:ResourceScheduler/getSchedule:getSchedule
arguments:
# arguments dictionary
The 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.
- 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.
- 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.
- 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.
- 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.
- 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[resourcescheduler.Get Schedule Resource Filter] - This is a list of resources filters. The schedule will be applied to resources matching all of them.
- resources
Sequence[resourcescheduler.
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.
- 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
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 value of the defined tag.
- 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 value of the defined tag.
- 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 value of the defined tag.
- 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 value of the defined tag.
- 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[resourcescheduler.
Get Schedule Resource Filter Value] - This is the value of the defined tag.
- 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 value of the defined tag.
GetScheduleResourceFilterValue
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.