1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getMaintenanceWindow
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.FleetAppsManagement.getMaintenanceWindow

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

This data source provides details about a specific Maintenance Window resource in Oracle Cloud Infrastructure Fleet Apps Management service.

Get the details for a maintenance window in Fleet Application Management.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testMaintenanceWindow = oci.FleetAppsManagement.getMaintenanceWindow({
    maintenanceWindowId: testMaintenanceWindowOciFleetAppsManagementMaintenanceWindow.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_maintenance_window = oci.FleetAppsManagement.get_maintenance_window(maintenance_window_id=test_maintenance_window_oci_fleet_apps_management_maintenance_window["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/fleetappsmanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fleetappsmanagement.GetMaintenanceWindow(ctx, &fleetappsmanagement.GetMaintenanceWindowArgs{
			MaintenanceWindowId: testMaintenanceWindowOciFleetAppsManagementMaintenanceWindow.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testMaintenanceWindow = Oci.FleetAppsManagement.GetMaintenanceWindow.Invoke(new()
    {
        MaintenanceWindowId = testMaintenanceWindowOciFleetAppsManagementMaintenanceWindow.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FleetAppsManagement.FleetAppsManagementFunctions;
import com.pulumi.oci.FleetAppsManagement.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 = FleetAppsManagementFunctions.getMaintenanceWindow(GetMaintenanceWindowArgs.builder()
            .maintenanceWindowId(testMaintenanceWindowOciFleetAppsManagementMaintenanceWindow.id())
            .build());

    }
}
Copy
variables:
  testMaintenanceWindow:
    fn::invoke:
      function: oci:FleetAppsManagement:getMaintenanceWindow
      arguments:
        maintenanceWindowId: ${testMaintenanceWindowOciFleetAppsManagementMaintenanceWindow.id}
Copy

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>
Copy
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]
Copy
func GetMaintenanceWindow(ctx *Context, args *GetMaintenanceWindowArgs, opts ...InvokeOption) (*GetMaintenanceWindowResult, error)
func GetMaintenanceWindowOutput(ctx *Context, args *GetMaintenanceWindowOutputArgs, opts ...InvokeOption) GetMaintenanceWindowResultOutput
Copy

> Note: This function is named GetMaintenanceWindow 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)
}
Copy
public static CompletableFuture<GetMaintenanceWindowResult> getMaintenanceWindow(GetMaintenanceWindowArgs args, InvokeOptions options)
public static Output<GetMaintenanceWindowResult> getMaintenanceWindow(GetMaintenanceWindowArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:FleetAppsManagement/getMaintenanceWindow:getMaintenanceWindow
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

MaintenanceWindowId This property is required. string
unique MaintenanceWindow identifier
MaintenanceWindowId This property is required. string
unique MaintenanceWindow identifier
maintenanceWindowId This property is required. String
unique MaintenanceWindow identifier
maintenanceWindowId This property is required. string
unique MaintenanceWindow identifier
maintenance_window_id This property is required. str
unique MaintenanceWindow identifier
maintenanceWindowId This property is required. String
unique MaintenanceWindow identifier

getMaintenanceWindow Result

The following output properties are available:

CompartmentId string
Tenancy OCID
DefinedTags 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
A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
Duration string
Duration of the maintenance window. Specify how long the maintenance window remains open.
FreeformTags 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 the resource.
IsOutage bool
Does the maintenenace window cause outage? An outage indicates whether a maintenance window can consider operations that require downtime. It means a period when the application is not accessible.
IsRecurring bool
Is this a recurring maintenance window?
LifecycleDetails string
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
MaintenanceWindowId string
MaintenanceWindowType string
Type of the MaintenanceWindow.
Recurrences string
Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
ResourceRegion string
Associated region
State string
The current state of the MaintenanceWindow.
SystemTags Dictionary<string, string>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TaskInitiationCutoff int
Task initiation cutoff time for the maintenance window.
TimeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
TimeScheduleStart string
Specify the date and time of the day that the maintenance window starts.
TimeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
CompartmentId string
Tenancy OCID
DefinedTags 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
A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
Duration string
Duration of the maintenance window. Specify how long the maintenance window remains open.
FreeformTags 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 the resource.
IsOutage bool
Does the maintenenace window cause outage? An outage indicates whether a maintenance window can consider operations that require downtime. It means a period when the application is not accessible.
IsRecurring bool
Is this a recurring maintenance window?
LifecycleDetails string
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
MaintenanceWindowId string
MaintenanceWindowType string
Type of the MaintenanceWindow.
Recurrences string
Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
ResourceRegion string
Associated region
State string
The current state of the MaintenanceWindow.
SystemTags map[string]string
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TaskInitiationCutoff int
Task initiation cutoff time for the maintenance window.
TimeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
TimeScheduleStart string
Specify the date and time of the day that the maintenance window starts.
TimeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
compartmentId String
Tenancy OCID
definedTags 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
A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
displayName String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
duration String
Duration of the maintenance window. Specify how long the maintenance window remains open.
freeformTags 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 the resource.
isOutage Boolean
Does the maintenenace window cause outage? An outage indicates whether a maintenance window can consider operations that require downtime. It means a period when the application is not accessible.
isRecurring Boolean
Is this a recurring maintenance window?
lifecycleDetails String
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
maintenanceWindowId String
maintenanceWindowType String
Type of the MaintenanceWindow.
recurrences String
Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
resourceRegion String
Associated region
state String
The current state of the MaintenanceWindow.
systemTags Map<String,String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
taskInitiationCutoff Integer
Task initiation cutoff time for the maintenance window.
timeCreated String
The time this resource was created. An RFC3339 formatted datetime string.
timeScheduleStart String
Specify the date and time of the day that the maintenance window starts.
timeUpdated String
The time this resource was last updated. An RFC3339 formatted datetime string.
compartmentId string
Tenancy OCID
definedTags {[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
A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
displayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
duration string
Duration of the maintenance window. Specify how long the maintenance window remains open.
freeformTags {[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 the resource.
isOutage boolean
Does the maintenenace window cause outage? An outage indicates whether a maintenance window can consider operations that require downtime. It means a period when the application is not accessible.
isRecurring boolean
Is this a recurring maintenance window?
lifecycleDetails string
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
maintenanceWindowId string
maintenanceWindowType string
Type of the MaintenanceWindow.
recurrences string
Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
resourceRegion string
Associated region
state string
The current state of the MaintenanceWindow.
systemTags {[key: string]: string}
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
taskInitiationCutoff number
Task initiation cutoff time for the maintenance window.
timeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
timeScheduleStart string
Specify the date and time of the day that the maintenance window starts.
timeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
compartment_id str
Tenancy OCID
defined_tags 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
A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
display_name str
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
duration str
Duration of the maintenance window. Specify how long the maintenance window remains open.
freeform_tags 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 the resource.
is_outage bool
Does the maintenenace window cause outage? An outage indicates whether a maintenance window can consider operations that require downtime. It means a period when the application is not accessible.
is_recurring bool
Is this a recurring maintenance window?
lifecycle_details str
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
maintenance_window_id str
maintenance_window_type str
Type of the MaintenanceWindow.
recurrences str
Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
resource_region str
Associated region
state str
The current state of the MaintenanceWindow.
system_tags Mapping[str, str]
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
task_initiation_cutoff int
Task initiation cutoff time for the maintenance window.
time_created str
The time this resource was created. An RFC3339 formatted datetime string.
time_schedule_start str
Specify the date and time of the day that the maintenance window starts.
time_updated str
The time this resource was last updated. An RFC3339 formatted datetime string.
compartmentId String
Tenancy OCID
definedTags Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description String
A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
displayName String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
duration String
Duration of the maintenance window. Specify how long the maintenance window remains open.
freeformTags 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 the resource.
isOutage Boolean
Does the maintenenace window cause outage? An outage indicates whether a maintenance window can consider operations that require downtime. It means a period when the application is not accessible.
isRecurring Boolean
Is this a recurring maintenance window?
lifecycleDetails String
A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
maintenanceWindowId String
maintenanceWindowType String
Type of the MaintenanceWindow.
recurrences String
Recurrence rule specification if maintenance window recurring. Specify the frequency of running the maintenance window.
resourceRegion String
Associated region
state String
The current state of the MaintenanceWindow.
systemTags Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
taskInitiationCutoff Number
Task initiation cutoff time for the maintenance window.
timeCreated String
The time this resource was created. An RFC3339 formatted datetime string.
timeScheduleStart String
Specify the date and time of the day that the maintenance window starts.
timeUpdated String
The time this resource was last updated. An RFC3339 formatted datetime string.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi