Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.StackMonitoring.getMaintenanceWindow
Explore with Pulumi AI
This data source provides details about a specific Maintenance Window resource in Oracle Cloud Infrastructure Stack Monitoring service.
Get maintenance window for the given identifier OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMaintenanceWindow = oci.StackMonitoring.getMaintenanceWindow({
    maintenanceWindowId: testMaintenanceWindowOciStackMonitoringMaintenanceWindow.id,
});
import pulumi
import pulumi_oci as oci
test_maintenance_window = oci.StackMonitoring.get_maintenance_window(maintenance_window_id=test_maintenance_window_oci_stack_monitoring_maintenance_window["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/stackmonitoring"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := stackmonitoring.GetMaintenanceWindow(ctx, &stackmonitoring.GetMaintenanceWindowArgs{
			MaintenanceWindowId: testMaintenanceWindowOciStackMonitoringMaintenanceWindow.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 testMaintenanceWindow = Oci.StackMonitoring.GetMaintenanceWindow.Invoke(new()
    {
        MaintenanceWindowId = testMaintenanceWindowOciStackMonitoringMaintenanceWindow.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.StackMonitoringFunctions;
import com.pulumi.oci.StackMonitoring.inputs.GetMaintenanceWindowArgs;
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 testMaintenanceWindow = StackMonitoringFunctions.getMaintenanceWindow(GetMaintenanceWindowArgs.builder()
            .maintenanceWindowId(testMaintenanceWindowOciStackMonitoringMaintenanceWindow.id())
            .build());
    }
}
variables:
  testMaintenanceWindow:
    fn::invoke:
      function: oci:StackMonitoring:getMaintenanceWindow
      arguments:
        maintenanceWindowId: ${testMaintenanceWindowOciStackMonitoringMaintenanceWindow.id}
Using getMaintenanceWindow
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 getMaintenanceWindow(args: GetMaintenanceWindowArgs, opts?: InvokeOptions): Promise<GetMaintenanceWindowResult>
function getMaintenanceWindowOutput(args: GetMaintenanceWindowOutputArgs, opts?: InvokeOptions): Output<GetMaintenanceWindowResult>def get_maintenance_window(maintenance_window_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetMaintenanceWindowResult
def get_maintenance_window_output(maintenance_window_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetMaintenanceWindowResult]func LookupMaintenanceWindow(ctx *Context, args *LookupMaintenanceWindowArgs, opts ...InvokeOption) (*LookupMaintenanceWindowResult, error)
func LookupMaintenanceWindowOutput(ctx *Context, args *LookupMaintenanceWindowOutputArgs, opts ...InvokeOption) LookupMaintenanceWindowResultOutput> Note: This function is named LookupMaintenanceWindow in the Go SDK.
public static class GetMaintenanceWindow 
{
    public static Task<GetMaintenanceWindowResult> InvokeAsync(GetMaintenanceWindowArgs args, InvokeOptions? opts = null)
    public static Output<GetMaintenanceWindowResult> Invoke(GetMaintenanceWindowInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMaintenanceWindowResult> getMaintenanceWindow(GetMaintenanceWindowArgs args, InvokeOptions options)
public static Output<GetMaintenanceWindowResult> getMaintenanceWindow(GetMaintenanceWindowArgs args, InvokeOptions options)
fn::invoke:
  function: oci:StackMonitoring/getMaintenanceWindow:getMaintenanceWindow
  arguments:
    # arguments dictionaryThe following arguments are supported:
- MaintenanceWindow stringId 
- The OCID of maintenance window.
- MaintenanceWindow stringId 
- The OCID of maintenance window.
- maintenanceWindow StringId 
- The OCID of maintenance window.
- maintenanceWindow stringId 
- The OCID of maintenance window.
- maintenance_window_ strid 
- The OCID of maintenance window.
- maintenanceWindow StringId 
- The OCID of maintenance window.
getMaintenanceWindow Result
The following output properties are available:
- CompartmentId string
- Compartment Identifier OCID.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- Maintenance Window description.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The OCID of maintenance window.
- LifecycleDetails string
- Lifecycle Details of the Maintenance Window.
- MaintenanceWindow stringId 
- Name string
- Name of the monitored resource
- Resources
List<GetMaintenance Window Resource> 
- List of resource Ids which are part of the Maintenance Window
- ResourcesDetails List<GetMaintenance Window Resources Detail> 
- List of resource details that are part of the Maintenance Window.
- Schedules
List<GetMaintenance Window Schedule> 
- Schedule information of the Maintenance Window
- State string
- Lifecycle state of the monitored resource.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time the the maintenance window was created. An RFC3339 formatted datetime string
- TimeUpdated string
- The time the the mainteance window was updated. An RFC3339 formatted datetime string
- CompartmentId string
- Compartment Identifier OCID.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- Description string
- Maintenance Window description.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- The OCID of maintenance window.
- LifecycleDetails string
- Lifecycle Details of the Maintenance Window.
- MaintenanceWindow stringId 
- Name string
- Name of the monitored resource
- Resources
[]GetMaintenance Window Resource 
- List of resource Ids which are part of the Maintenance Window
- ResourcesDetails []GetMaintenance Window Resources Detail 
- List of resource details that are part of the Maintenance Window.
- Schedules
[]GetMaintenance Window Schedule 
- Schedule information of the Maintenance Window
- State string
- Lifecycle state of the monitored resource.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time the the maintenance window was created. An RFC3339 formatted datetime string
- TimeUpdated string
- The time the the mainteance window was updated. An RFC3339 formatted datetime string
- compartmentId String
- Compartment Identifier OCID.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- Maintenance Window description.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The OCID of maintenance window.
- lifecycleDetails String
- Lifecycle Details of the Maintenance Window.
- maintenanceWindow StringId 
- name String
- Name of the monitored resource
- resources
List<GetMaintenance Window Resource> 
- List of resource Ids which are part of the Maintenance Window
- resourcesDetails List<GetMaintenance Window Resources Detail> 
- List of resource details that are part of the Maintenance Window.
- schedules
List<GetMaintenance Window Schedule> 
- Schedule information of the Maintenance Window
- state String
- Lifecycle state of the monitored resource.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time the the maintenance window was created. An RFC3339 formatted datetime string
- timeUpdated String
- The time the the mainteance window was updated. An RFC3339 formatted datetime string
- compartmentId string
- Compartment Identifier OCID.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description string
- Maintenance Window description.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id string
- The OCID of maintenance window.
- lifecycleDetails string
- Lifecycle Details of the Maintenance Window.
- maintenanceWindow stringId 
- name string
- Name of the monitored resource
- resources
GetMaintenance Window Resource[] 
- List of resource Ids which are part of the Maintenance Window
- resourcesDetails GetMaintenance Window Resources Detail[] 
- List of resource details that are part of the Maintenance Window.
- schedules
GetMaintenance Window Schedule[] 
- Schedule information of the Maintenance Window
- state string
- Lifecycle state of the monitored resource.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The time the the maintenance window was created. An RFC3339 formatted datetime string
- timeUpdated string
- The time the the mainteance window was updated. An RFC3339 formatted datetime string
- compartment_id str
- Compartment Identifier OCID.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description str
- Maintenance Window description.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id str
- The OCID of maintenance window.
- lifecycle_details str
- Lifecycle Details of the Maintenance Window.
- maintenance_window_ strid 
- name str
- Name of the monitored resource
- resources
Sequence[GetMaintenance Window Resource] 
- List of resource Ids which are part of the Maintenance Window
- resources_details Sequence[GetMaintenance Window Resources Detail] 
- List of resource details that are part of the Maintenance Window.
- schedules
Sequence[GetMaintenance Window Schedule] 
- Schedule information of the Maintenance Window
- state str
- Lifecycle state of the monitored resource.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The time the the maintenance window was created. An RFC3339 formatted datetime string
- time_updated str
- The time the the mainteance window was updated. An RFC3339 formatted datetime string
- compartmentId String
- Compartment Identifier OCID.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- description String
- Maintenance Window description.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- The OCID of maintenance window.
- lifecycleDetails String
- Lifecycle Details of the Maintenance Window.
- maintenanceWindow StringId 
- name String
- Name of the monitored resource
- resources List<Property Map>
- List of resource Ids which are part of the Maintenance Window
- resourcesDetails List<Property Map>
- List of resource details that are part of the Maintenance Window.
- schedules List<Property Map>
- Schedule information of the Maintenance Window
- state String
- Lifecycle state of the monitored resource.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time the the maintenance window was created. An RFC3339 formatted datetime string
- timeUpdated String
- The time the the mainteance window was updated. An RFC3339 formatted datetime string
Supporting Types
GetMaintenanceWindowResource   
- AreMembers boolIncluded 
- Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- ResourceId string
- The OCID of monitored resource part of the Maintenance window.
- AreMembers boolIncluded 
- Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- ResourceId string
- The OCID of monitored resource part of the Maintenance window.
- areMembers BooleanIncluded 
- Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- resourceId String
- The OCID of monitored resource part of the Maintenance window.
- areMembers booleanIncluded 
- Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- resourceId string
- The OCID of monitored resource part of the Maintenance window.
- are_members_ boolincluded 
- Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- resource_id str
- The OCID of monitored resource part of the Maintenance window.
- areMembers BooleanIncluded 
- Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- resourceId String
- The OCID of monitored resource part of the Maintenance window.
GetMaintenanceWindowResourcesDetail    
- Name string
- Name of the monitored resource
- NumberOf intMembers 
- Number of members of the resource
- ResourceId string
- The OCID of monitored resource part of the Maintenance window.
- Type string
- Type of the monitored resource
- Name string
- Name of the monitored resource
- NumberOf intMembers 
- Number of members of the resource
- ResourceId string
- The OCID of monitored resource part of the Maintenance window.
- Type string
- Type of the monitored resource
- name String
- Name of the monitored resource
- numberOf IntegerMembers 
- Number of members of the resource
- resourceId String
- The OCID of monitored resource part of the Maintenance window.
- type String
- Type of the monitored resource
- name string
- Name of the monitored resource
- numberOf numberMembers 
- Number of members of the resource
- resourceId string
- The OCID of monitored resource part of the Maintenance window.
- type string
- Type of the monitored resource
- name str
- Name of the monitored resource
- number_of_ intmembers 
- Number of members of the resource
- resource_id str
- The OCID of monitored resource part of the Maintenance window.
- type str
- Type of the monitored resource
- name String
- Name of the monitored resource
- numberOf NumberMembers 
- Number of members of the resource
- resourceId String
- The OCID of monitored resource part of the Maintenance window.
- type String
- Type of the monitored resource
GetMaintenanceWindowSchedule   
- MaintenanceWindow stringDuration 
- Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- MaintenanceWindow stringRecurrences 
- A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. BYDAY: Comma separated days for Weekly Maintenance Window. BYHOUR: Specifies the start hour of each recurrence after timeMaintenanceWindowStartvalue. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStartvalue. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStartvalue. The default value is 00 Other Rules are not supported.
- ScheduleType string
- Property to identify the type of the Maintenance Window.
- TimeMaintenance stringWindow End 
- Start time of Maintenance window. A RFC3339 formatted datetime string
- TimeMaintenance stringWindow Start 
- Start time of Maintenance window. A RFC3339 formatted datetime string
- MaintenanceWindow stringDuration 
- Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- MaintenanceWindow stringRecurrences 
- A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. BYDAY: Comma separated days for Weekly Maintenance Window. BYHOUR: Specifies the start hour of each recurrence after timeMaintenanceWindowStartvalue. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStartvalue. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStartvalue. The default value is 00 Other Rules are not supported.
- ScheduleType string
- Property to identify the type of the Maintenance Window.
- TimeMaintenance stringWindow End 
- Start time of Maintenance window. A RFC3339 formatted datetime string
- TimeMaintenance stringWindow Start 
- Start time of Maintenance window. A RFC3339 formatted datetime string
- maintenanceWindow StringDuration 
- Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- maintenanceWindow StringRecurrences 
- A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. BYDAY: Comma separated days for Weekly Maintenance Window. BYHOUR: Specifies the start hour of each recurrence after timeMaintenanceWindowStartvalue. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStartvalue. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStartvalue. The default value is 00 Other Rules are not supported.
- scheduleType String
- Property to identify the type of the Maintenance Window.
- timeMaintenance StringWindow End 
- Start time of Maintenance window. A RFC3339 formatted datetime string
- timeMaintenance StringWindow Start 
- Start time of Maintenance window. A RFC3339 formatted datetime string
- maintenanceWindow stringDuration 
- Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- maintenanceWindow stringRecurrences 
- A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. BYDAY: Comma separated days for Weekly Maintenance Window. BYHOUR: Specifies the start hour of each recurrence after timeMaintenanceWindowStartvalue. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStartvalue. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStartvalue. The default value is 00 Other Rules are not supported.
- scheduleType string
- Property to identify the type of the Maintenance Window.
- timeMaintenance stringWindow End 
- Start time of Maintenance window. A RFC3339 formatted datetime string
- timeMaintenance stringWindow Start 
- Start time of Maintenance window. A RFC3339 formatted datetime string
- maintenance_window_ strduration 
- Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- maintenance_window_ strrecurrences 
- A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. BYDAY: Comma separated days for Weekly Maintenance Window. BYHOUR: Specifies the start hour of each recurrence after timeMaintenanceWindowStartvalue. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStartvalue. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStartvalue. The default value is 00 Other Rules are not supported.
- schedule_type str
- Property to identify the type of the Maintenance Window.
- time_maintenance_ strwindow_ end 
- Start time of Maintenance window. A RFC3339 formatted datetime string
- time_maintenance_ strwindow_ start 
- Start time of Maintenance window. A RFC3339 formatted datetime string
- maintenanceWindow StringDuration 
- Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- maintenanceWindow StringRecurrences 
- A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. BYDAY: Comma separated days for Weekly Maintenance Window. BYHOUR: Specifies the start hour of each recurrence after timeMaintenanceWindowStartvalue. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStartvalue. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStartvalue. The default value is 00 Other Rules are not supported.
- scheduleType String
- Property to identify the type of the Maintenance Window.
- timeMaintenance StringWindow End 
- Start time of Maintenance window. A RFC3339 formatted datetime string
- timeMaintenance StringWindow Start 
- Start time of Maintenance window. A RFC3339 formatted datetime string
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.