Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getSchedulingPolicySchedulingWindow
Explore with Pulumi AI
This data source provides details about a specific Scheduling Policy Scheduling Window resource in Oracle Cloud Infrastructure Database service.
Gets information about the specified Scheduling Window.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSchedulingPolicySchedulingWindow = oci.Database.getSchedulingPolicySchedulingWindow({
    schedulingPolicyId: testSchedulingPolicy.id,
    schedulingWindowId: testSchedulingWindow.id,
});
import pulumi
import pulumi_oci as oci
test_scheduling_policy_scheduling_window = oci.Database.get_scheduling_policy_scheduling_window(scheduling_policy_id=test_scheduling_policy["id"],
    scheduling_window_id=test_scheduling_window["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.GetSchedulingPolicySchedulingWindow(ctx, &database.GetSchedulingPolicySchedulingWindowArgs{
			SchedulingPolicyId: testSchedulingPolicy.Id,
			SchedulingWindowId: testSchedulingWindow.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 testSchedulingPolicySchedulingWindow = Oci.Database.GetSchedulingPolicySchedulingWindow.Invoke(new()
    {
        SchedulingPolicyId = testSchedulingPolicy.Id,
        SchedulingWindowId = testSchedulingWindow.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetSchedulingPolicySchedulingWindowArgs;
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 testSchedulingPolicySchedulingWindow = DatabaseFunctions.getSchedulingPolicySchedulingWindow(GetSchedulingPolicySchedulingWindowArgs.builder()
            .schedulingPolicyId(testSchedulingPolicy.id())
            .schedulingWindowId(testSchedulingWindow.id())
            .build());
    }
}
variables:
  testSchedulingPolicySchedulingWindow:
    fn::invoke:
      function: oci:Database:getSchedulingPolicySchedulingWindow
      arguments:
        schedulingPolicyId: ${testSchedulingPolicy.id}
        schedulingWindowId: ${testSchedulingWindow.id}
Using getSchedulingPolicySchedulingWindow
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 getSchedulingPolicySchedulingWindow(args: GetSchedulingPolicySchedulingWindowArgs, opts?: InvokeOptions): Promise<GetSchedulingPolicySchedulingWindowResult>
function getSchedulingPolicySchedulingWindowOutput(args: GetSchedulingPolicySchedulingWindowOutputArgs, opts?: InvokeOptions): Output<GetSchedulingPolicySchedulingWindowResult>def get_scheduling_policy_scheduling_window(scheduling_policy_id: Optional[str] = None,
                                            scheduling_window_id: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetSchedulingPolicySchedulingWindowResult
def get_scheduling_policy_scheduling_window_output(scheduling_policy_id: Optional[pulumi.Input[str]] = None,
                                            scheduling_window_id: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetSchedulingPolicySchedulingWindowResult]func LookupSchedulingPolicySchedulingWindow(ctx *Context, args *LookupSchedulingPolicySchedulingWindowArgs, opts ...InvokeOption) (*LookupSchedulingPolicySchedulingWindowResult, error)
func LookupSchedulingPolicySchedulingWindowOutput(ctx *Context, args *LookupSchedulingPolicySchedulingWindowOutputArgs, opts ...InvokeOption) LookupSchedulingPolicySchedulingWindowResultOutput> Note: This function is named LookupSchedulingPolicySchedulingWindow in the Go SDK.
public static class GetSchedulingPolicySchedulingWindow 
{
    public static Task<GetSchedulingPolicySchedulingWindowResult> InvokeAsync(GetSchedulingPolicySchedulingWindowArgs args, InvokeOptions? opts = null)
    public static Output<GetSchedulingPolicySchedulingWindowResult> Invoke(GetSchedulingPolicySchedulingWindowInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSchedulingPolicySchedulingWindowResult> getSchedulingPolicySchedulingWindow(GetSchedulingPolicySchedulingWindowArgs args, InvokeOptions options)
public static Output<GetSchedulingPolicySchedulingWindowResult> getSchedulingPolicySchedulingWindow(GetSchedulingPolicySchedulingWindowArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getSchedulingPolicySchedulingWindow:getSchedulingPolicySchedulingWindow
  arguments:
    # arguments dictionaryThe following arguments are supported:
- SchedulingPolicy stringId 
- The Scheduling Policy OCID.
- SchedulingWindow stringId 
- The Scheduling Window OCID.
- SchedulingPolicy stringId 
- The Scheduling Policy OCID.
- SchedulingWindow stringId 
- The Scheduling Window OCID.
- schedulingPolicy StringId 
- The Scheduling Policy OCID.
- schedulingWindow StringId 
- The Scheduling Window OCID.
- schedulingPolicy stringId 
- The Scheduling Policy OCID.
- schedulingWindow stringId 
- The Scheduling Window OCID.
- scheduling_policy_ strid 
- The Scheduling Policy OCID.
- scheduling_window_ strid 
- The Scheduling Window OCID.
- schedulingPolicy StringId 
- The Scheduling Policy OCID.
- schedulingWindow StringId 
- The Scheduling Window OCID.
getSchedulingPolicySchedulingWindow Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- DisplayName string
- The user-friendly name for the Scheduling Window. The name does not need to be unique.
- Dictionary<string, string>
- 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
- The OCID of the Scheduling Window.
- LifecycleDetails string
- Additional information about the current lifecycle state.
- SchedulingPolicy stringId 
- The OCID of the Scheduling Policy.
- SchedulingWindow stringId 
- State string
- The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
- TimeCreated string
- The date and time the Scheduling Window was created.
- TimeNext stringScheduling Window Starts 
- The date and time of the next upcoming window associated within the schedulingWindow is planned to start.
- TimeUpdated string
- The last date and time that the Scheduling Window was updated.
- WindowPreferences List<GetScheduling Policy Scheduling Window Window Preference> 
- The Single Scheduling Window details.
- CompartmentId string
- The OCID of the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- DisplayName string
- The user-friendly name for the Scheduling Window. The name does not need to be unique.
- map[string]string
- 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
- The OCID of the Scheduling Window.
- LifecycleDetails string
- Additional information about the current lifecycle state.
- SchedulingPolicy stringId 
- The OCID of the Scheduling Policy.
- SchedulingWindow stringId 
- State string
- The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
- TimeCreated string
- The date and time the Scheduling Window was created.
- TimeNext stringScheduling Window Starts 
- The date and time of the next upcoming window associated within the schedulingWindow is planned to start.
- TimeUpdated string
- The last date and time that the Scheduling Window was updated.
- WindowPreferences []GetScheduling Policy Scheduling Window Window Preference 
- The Single Scheduling Window details.
- compartmentId String
- The OCID of the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName String
- The user-friendly name for the Scheduling Window. The name does not need to be unique.
- Map<String,String>
- 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
- The OCID of the Scheduling Window.
- lifecycleDetails String
- Additional information about the current lifecycle state.
- schedulingPolicy StringId 
- The OCID of the Scheduling Policy.
- schedulingWindow StringId 
- state String
- The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
- timeCreated String
- The date and time the Scheduling Window was created.
- timeNext StringScheduling Window Starts 
- The date and time of the next upcoming window associated within the schedulingWindow is planned to start.
- timeUpdated String
- The last date and time that the Scheduling Window was updated.
- windowPreferences List<GetScheduling Policy Scheduling Window Window Preference> 
- The Single Scheduling Window details.
- compartmentId string
- The OCID of the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName string
- The user-friendly name for the Scheduling Window. The name does not need to be unique.
- {[key: string]: string}
- 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
- The OCID of the Scheduling Window.
- lifecycleDetails string
- Additional information about the current lifecycle state.
- schedulingPolicy stringId 
- The OCID of the Scheduling Policy.
- schedulingWindow stringId 
- state string
- The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
- timeCreated string
- The date and time the Scheduling Window was created.
- timeNext stringScheduling Window Starts 
- The date and time of the next upcoming window associated within the schedulingWindow is planned to start.
- timeUpdated string
- The last date and time that the Scheduling Window was updated.
- windowPreferences GetScheduling Policy Scheduling Window Window Preference[] 
- The Single Scheduling Window details.
- compartment_id str
- The OCID of the compartment.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display_name str
- The user-friendly name for the Scheduling Window. The name does not need to be unique.
- Mapping[str, str]
- 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
- The OCID of the Scheduling Window.
- lifecycle_details str
- Additional information about the current lifecycle state.
- scheduling_policy_ strid 
- The OCID of the Scheduling Policy.
- scheduling_window_ strid 
- state str
- The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
- time_created str
- The date and time the Scheduling Window was created.
- time_next_ strscheduling_ window_ starts 
- The date and time of the next upcoming window associated within the schedulingWindow is planned to start.
- time_updated str
- The last date and time that the Scheduling Window was updated.
- window_preferences Sequence[GetScheduling Policy Scheduling Window Window Preference] 
- The Single Scheduling Window details.
- compartmentId String
- The OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- displayName String
- The user-friendly name for the Scheduling Window. The name does not need to be unique.
- Map<String>
- 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
- The OCID of the Scheduling Window.
- lifecycleDetails String
- Additional information about the current lifecycle state.
- schedulingPolicy StringId 
- The OCID of the Scheduling Policy.
- schedulingWindow StringId 
- state String
- The current state of the Scheduling Window. Valid states are CREATING, ACTIVE, UPDATING, FAILED, DELETING and DELETED.
- timeCreated String
- The date and time the Scheduling Window was created.
- timeNext StringScheduling Window Starts 
- The date and time of the next upcoming window associated within the schedulingWindow is planned to start.
- timeUpdated String
- The last date and time that the Scheduling Window was updated.
- windowPreferences List<Property Map>
- The Single Scheduling Window details.
Supporting Types
GetSchedulingPolicySchedulingWindowWindowPreference      
- DaysOf List<GetWeeks Scheduling Policy Scheduling Window Window Preference Days Of Week> 
- Days during the week when scheduling window should be performed.
- Duration int
- Duration window allows user to set a duration they plan to allocate for Scheduling window. The duration is in minutes.
- IsEnforced boolDuration 
- Indicates if duration the user plans to allocate for scheduling window is strictly enforced. The default value is FALSE.
- Months
List<GetScheduling Policy Scheduling Window Window Preference Month> 
- Months during the year when scheduled window should be performed.
- StartTime string
- The scheduling window start time. The value must use the ISO-8601 format "hh:mm".
- WeeksOf List<int>Months 
- Weeks during the month when scheduled window should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week. For example, to allow scheduling window during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Scheduling window cannot be scheduled for the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and startTime parameters to allow you to specify specific days of the week and hours that scheduled window will be performed.
- DaysOf []GetWeeks Scheduling Policy Scheduling Window Window Preference Days Of Week 
- Days during the week when scheduling window should be performed.
- Duration int
- Duration window allows user to set a duration they plan to allocate for Scheduling window. The duration is in minutes.
- IsEnforced boolDuration 
- Indicates if duration the user plans to allocate for scheduling window is strictly enforced. The default value is FALSE.
- Months
[]GetScheduling Policy Scheduling Window Window Preference Month 
- Months during the year when scheduled window should be performed.
- StartTime string
- The scheduling window start time. The value must use the ISO-8601 format "hh:mm".
- WeeksOf []intMonths 
- Weeks during the month when scheduled window should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week. For example, to allow scheduling window during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Scheduling window cannot be scheduled for the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and startTime parameters to allow you to specify specific days of the week and hours that scheduled window will be performed.
- daysOf List<GetWeeks Scheduling Policy Scheduling Window Window Preference Days Of Week> 
- Days during the week when scheduling window should be performed.
- duration Integer
- Duration window allows user to set a duration they plan to allocate for Scheduling window. The duration is in minutes.
- isEnforced BooleanDuration 
- Indicates if duration the user plans to allocate for scheduling window is strictly enforced. The default value is FALSE.
- months
List<GetScheduling Policy Scheduling Window Window Preference Month> 
- Months during the year when scheduled window should be performed.
- startTime String
- The scheduling window start time. The value must use the ISO-8601 format "hh:mm".
- weeksOf List<Integer>Months 
- Weeks during the month when scheduled window should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week. For example, to allow scheduling window during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Scheduling window cannot be scheduled for the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and startTime parameters to allow you to specify specific days of the week and hours that scheduled window will be performed.
- daysOf GetWeeks Scheduling Policy Scheduling Window Window Preference Days Of Week[] 
- Days during the week when scheduling window should be performed.
- duration number
- Duration window allows user to set a duration they plan to allocate for Scheduling window. The duration is in minutes.
- isEnforced booleanDuration 
- Indicates if duration the user plans to allocate for scheduling window is strictly enforced. The default value is FALSE.
- months
GetScheduling Policy Scheduling Window Window Preference Month[] 
- Months during the year when scheduled window should be performed.
- startTime string
- The scheduling window start time. The value must use the ISO-8601 format "hh:mm".
- weeksOf number[]Months 
- Weeks during the month when scheduled window should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week. For example, to allow scheduling window during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Scheduling window cannot be scheduled for the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and startTime parameters to allow you to specify specific days of the week and hours that scheduled window will be performed.
- days_of_ Sequence[Getweeks Scheduling Policy Scheduling Window Window Preference Days Of Week] 
- Days during the week when scheduling window should be performed.
- duration int
- Duration window allows user to set a duration they plan to allocate for Scheduling window. The duration is in minutes.
- is_enforced_ boolduration 
- Indicates if duration the user plans to allocate for scheduling window is strictly enforced. The default value is FALSE.
- months
Sequence[GetScheduling Policy Scheduling Window Window Preference Month] 
- Months during the year when scheduled window should be performed.
- start_time str
- The scheduling window start time. The value must use the ISO-8601 format "hh:mm".
- weeks_of_ Sequence[int]months 
- Weeks during the month when scheduled window should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week. For example, to allow scheduling window during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Scheduling window cannot be scheduled for the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and startTime parameters to allow you to specify specific days of the week and hours that scheduled window will be performed.
- daysOf List<Property Map>Weeks 
- Days during the week when scheduling window should be performed.
- duration Number
- Duration window allows user to set a duration they plan to allocate for Scheduling window. The duration is in minutes.
- isEnforced BooleanDuration 
- Indicates if duration the user plans to allocate for scheduling window is strictly enforced. The default value is FALSE.
- months List<Property Map>
- Months during the year when scheduled window should be performed.
- startTime String
- The scheduling window start time. The value must use the ISO-8601 format "hh:mm".
- weeksOf List<Number>Months 
- Weeks during the month when scheduled window should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week. For example, to allow scheduling window during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Scheduling window cannot be scheduled for the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and startTime parameters to allow you to specify specific days of the week and hours that scheduled window will be performed.
GetSchedulingPolicySchedulingWindowWindowPreferenceDaysOfWeek         
- Name string
- Name of the month of the year.
- Name string
- Name of the month of the year.
- name String
- Name of the month of the year.
- name string
- Name of the month of the year.
- name str
- Name of the month of the year.
- name String
- Name of the month of the year.
GetSchedulingPolicySchedulingWindowWindowPreferenceMonth       
- Name string
- Name of the month of the year.
- Name string
- Name of the month of the year.
- name String
- Name of the month of the year.
- name string
- Name of the month of the year.
- name str
- Name of the month of the year.
- name String
- Name of the month of the year.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.