1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. Database
  6. getAutonomousDatabaseAvailableMaintenanceWindows
Viewing docs for Oracle Cloud Infrastructure v5.1.0
published on Friday, Sep 25, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v5.1.0
published on Friday, Sep 25, 2026 by Pulumi

    This data source provides the list of Autonomous Database Available Maintenance Windows in Oracle Cloud Infrastructure Database service.

    Retrieves the list of available maintenance window options for the specified Autonomous AI Database.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAutonomousDatabaseAvailableMaintenanceWindows = oci.database.getAutonomousDatabaseAvailableMaintenanceWindows({
        autonomousDatabaseId: testAutonomousDatabase.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_autonomous_database_available_maintenance_windows = oci.database.get_autonomous_database_available_maintenance_windows(autonomous_database_id=test_autonomous_database["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := database.GetAutonomousDatabaseAvailableMaintenanceWindows(ctx, &database.GetAutonomousDatabaseAvailableMaintenanceWindowsArgs{
    			AutonomousDatabaseId: testAutonomousDatabase.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 testAutonomousDatabaseAvailableMaintenanceWindows = Oci.Database.GetAutonomousDatabaseAvailableMaintenanceWindows.Invoke(new()
        {
            AutonomousDatabaseId = testAutonomousDatabase.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.GetAutonomousDatabaseAvailableMaintenanceWindowsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testAutonomousDatabaseAvailableMaintenanceWindows = DatabaseFunctions.getAutonomousDatabaseAvailableMaintenanceWindows(GetAutonomousDatabaseAvailableMaintenanceWindowsArgs.builder()
                .autonomousDatabaseId(testAutonomousDatabase.id())
                .build());
    
        }
    }
    
    variables:
      testAutonomousDatabaseAvailableMaintenanceWindows:
        fn::invoke:
          function: oci:Database:getAutonomousDatabaseAvailableMaintenanceWindows
          arguments:
            autonomousDatabaseId: ${testAutonomousDatabase.id}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_database_getautonomousdatabaseavailablemaintenancewindows" "testAutonomousDatabaseAvailableMaintenanceWindows" {
      autonomous_database_id = testAutonomousDatabase.id
    }
    

    Using getAutonomousDatabaseAvailableMaintenanceWindows

    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 getAutonomousDatabaseAvailableMaintenanceWindows(args: GetAutonomousDatabaseAvailableMaintenanceWindowsArgs, opts?: InvokeOptions): Promise<GetAutonomousDatabaseAvailableMaintenanceWindowsResult>
    function getAutonomousDatabaseAvailableMaintenanceWindowsOutput(args: GetAutonomousDatabaseAvailableMaintenanceWindowsOutputArgs, opts?: InvokeOutputOptions): Output<GetAutonomousDatabaseAvailableMaintenanceWindowsResult>
    def get_autonomous_database_available_maintenance_windows(autonomous_database_id: Optional[str] = None,
                                                              filters: Optional[Sequence[GetAutonomousDatabaseAvailableMaintenanceWindowsFilter]] = None,
                                                              opts: Optional[InvokeOptions] = None) -> GetAutonomousDatabaseAvailableMaintenanceWindowsResult
    def get_autonomous_database_available_maintenance_windows_output(autonomous_database_id: pulumi.Input[Optional[str]] = None,
                                                              filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetAutonomousDatabaseAvailableMaintenanceWindowsFilterArgs]]]] = None,
                                                              opts: Optional[InvokeOutputOptions] = None) -> Output[GetAutonomousDatabaseAvailableMaintenanceWindowsResult]
    func GetAutonomousDatabaseAvailableMaintenanceWindows(ctx *Context, args *GetAutonomousDatabaseAvailableMaintenanceWindowsArgs, opts ...InvokeOption) (*GetAutonomousDatabaseAvailableMaintenanceWindowsResult, error)
    func GetAutonomousDatabaseAvailableMaintenanceWindowsOutput(ctx *Context, args *GetAutonomousDatabaseAvailableMaintenanceWindowsOutputArgs, opts ...InvokeOption) GetAutonomousDatabaseAvailableMaintenanceWindowsResultOutput

    > Note: This function is named GetAutonomousDatabaseAvailableMaintenanceWindows in the Go SDK.

    public static class GetAutonomousDatabaseAvailableMaintenanceWindows 
    {
        public static Task<GetAutonomousDatabaseAvailableMaintenanceWindowsResult> InvokeAsync(GetAutonomousDatabaseAvailableMaintenanceWindowsArgs args, InvokeOptions? opts = null)
        public static Output<GetAutonomousDatabaseAvailableMaintenanceWindowsResult> Invoke(GetAutonomousDatabaseAvailableMaintenanceWindowsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAutonomousDatabaseAvailableMaintenanceWindowsResult> Invoke(GetAutonomousDatabaseAvailableMaintenanceWindowsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAutonomousDatabaseAvailableMaintenanceWindowsResult> getAutonomousDatabaseAvailableMaintenanceWindows(GetAutonomousDatabaseAvailableMaintenanceWindowsArgs args, InvokeOptions options)
    public static Output<GetAutonomousDatabaseAvailableMaintenanceWindowsResult> getAutonomousDatabaseAvailableMaintenanceWindows(GetAutonomousDatabaseAvailableMaintenanceWindowsArgs args, InvokeOptions options)
    public static Output<GetAutonomousDatabaseAvailableMaintenanceWindowsResult> getAutonomousDatabaseAvailableMaintenanceWindows(GetAutonomousDatabaseAvailableMaintenanceWindowsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: oci:Database/getAutonomousDatabaseAvailableMaintenanceWindows:getAutonomousDatabaseAvailableMaintenanceWindows
      arguments:
        # arguments dictionary
    data "oci_database_get_autonomous_database_available_maintenance_windows" "name" {
        # arguments
    }

    The following arguments are supported:

    getAutonomousDatabaseAvailableMaintenanceWindows Result

    The following output properties are available:

    autonomous_database_id string
    autonomous_database_maintenance_window_collections list(object)
    The list of autonomous_database_maintenance_window_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    filters list(object)
    autonomousDatabaseId String
    autonomousDatabaseMaintenanceWindowCollections List<Property Map>
    The list of autonomous_database_maintenance_window_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetAutonomousDatabaseAvailableMaintenanceWindowsAutonomousDatabaseMaintenanceWindowCollection

    items list(object)
    List of Autonomous AI Database maintenance windows.
    items List<Property Map>
    List of Autonomous AI Database maintenance windows.

    GetAutonomousDatabaseAvailableMaintenanceWindowsAutonomousDatabaseMaintenanceWindowCollectionItem

    AvailabilityDomain string
    The AD in which the maintenance will occur.
    DayOfWeeks List<GetAutonomousDatabaseAvailableMaintenanceWindowsAutonomousDatabaseMaintenanceWindowCollectionItemDayOfWeek>
    Day of the week.
    IsMaintenanceWindowChangeScheduled bool
    Indicates if the maintenance window change is scheduled or not for the Autonomous AI Database.
    MaintenanceEndTime string
    The maintenance end time. The value must use the ISO-8601 format "hh:mm".
    MaintenanceStartTime string
    The maintenance start time. The value must use the ISO-8601 format "hh:mm".
    AvailabilityDomain string
    The AD in which the maintenance will occur.
    DayOfWeeks []GetAutonomousDatabaseAvailableMaintenanceWindowsAutonomousDatabaseMaintenanceWindowCollectionItemDayOfWeek
    Day of the week.
    IsMaintenanceWindowChangeScheduled bool
    Indicates if the maintenance window change is scheduled or not for the Autonomous AI Database.
    MaintenanceEndTime string
    The maintenance end time. The value must use the ISO-8601 format "hh:mm".
    MaintenanceStartTime string
    The maintenance start time. The value must use the ISO-8601 format "hh:mm".
    availability_domain string
    The AD in which the maintenance will occur.
    day_of_weeks list(object)
    Day of the week.
    is_maintenance_window_change_scheduled bool
    Indicates if the maintenance window change is scheduled or not for the Autonomous AI Database.
    maintenance_end_time string
    The maintenance end time. The value must use the ISO-8601 format "hh:mm".
    maintenance_start_time string
    The maintenance start time. The value must use the ISO-8601 format "hh:mm".
    availabilityDomain String
    The AD in which the maintenance will occur.
    dayOfWeeks List<GetAutonomousAvailableMaintenanceWindowsAutonomousMaintenanceWindowCollectionItemDayOfWeek>
    Day of the week.
    isMaintenanceWindowChangeScheduled Boolean
    Indicates if the maintenance window change is scheduled or not for the Autonomous AI Database.
    maintenanceEndTime String
    The maintenance end time. The value must use the ISO-8601 format "hh:mm".
    maintenanceStartTime String
    The maintenance start time. The value must use the ISO-8601 format "hh:mm".
    availabilityDomain string
    The AD in which the maintenance will occur.
    dayOfWeeks GetAutonomousDatabaseAvailableMaintenanceWindowsAutonomousDatabaseMaintenanceWindowCollectionItemDayOfWeek[]
    Day of the week.
    isMaintenanceWindowChangeScheduled boolean
    Indicates if the maintenance window change is scheduled or not for the Autonomous AI Database.
    maintenanceEndTime string
    The maintenance end time. The value must use the ISO-8601 format "hh:mm".
    maintenanceStartTime string
    The maintenance start time. The value must use the ISO-8601 format "hh:mm".
    availability_domain str
    The AD in which the maintenance will occur.
    day_of_weeks Sequence[GetAutonomousDatabaseAvailableMaintenanceWindowsAutonomousDatabaseMaintenanceWindowCollectionItemDayOfWeek]
    Day of the week.
    is_maintenance_window_change_scheduled bool
    Indicates if the maintenance window change is scheduled or not for the Autonomous AI Database.
    maintenance_end_time str
    The maintenance end time. The value must use the ISO-8601 format "hh:mm".
    maintenance_start_time str
    The maintenance start time. The value must use the ISO-8601 format "hh:mm".
    availabilityDomain String
    The AD in which the maintenance will occur.
    dayOfWeeks List<Property Map>
    Day of the week.
    isMaintenanceWindowChangeScheduled Boolean
    Indicates if the maintenance window change is scheduled or not for the Autonomous AI Database.
    maintenanceEndTime String
    The maintenance end time. The value must use the ISO-8601 format "hh:mm".
    maintenanceStartTime String
    The maintenance start time. The value must use the ISO-8601 format "hh:mm".

    GetAutonomousDatabaseAvailableMaintenanceWindowsAutonomousDatabaseMaintenanceWindowCollectionItemDayOfWeek

    Name string
    Name of the day of the week.
    Name string
    Name of the day of the week.
    name string
    Name of the day of the week.
    name String
    Name of the day of the week.
    name string
    Name of the day of the week.
    name str
    Name of the day of the week.
    name String
    Name of the day of the week.

    GetAutonomousDatabaseAvailableMaintenanceWindowsFilter

    Name string
    Name of the day of the week.
    Values List<string>
    Regex bool
    Name string
    Name of the day of the week.
    Values []string
    Regex bool
    name string
    Name of the day of the week.
    values list(string)
    regex bool
    name String
    Name of the day of the week.
    values List<String>
    regex Boolean
    name string
    Name of the day of the week.
    values string[]
    regex boolean
    name str
    Name of the day of the week.
    values Sequence[str]
    regex bool
    name String
    Name of the day of the week.
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v5.1.0
    published on Friday, Sep 25, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial