1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. getMaintenanceWindow
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.StackMonitoring.getMaintenanceWindow

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

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

    > 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)
    }
    public static CompletableFuture<GetMaintenanceWindowResult> getMaintenanceWindow(GetMaintenanceWindowArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:StackMonitoring/getMaintenanceWindow:getMaintenanceWindow
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MaintenanceWindowId string
    The OCID of maintenance window.
    MaintenanceWindowId string
    The OCID of maintenance window.
    maintenanceWindowId String
    The OCID of maintenance window.
    maintenanceWindowId string
    The OCID of maintenance window.
    maintenance_window_id str
    The OCID of maintenance window.
    maintenanceWindowId String
    The OCID of maintenance window.

    getMaintenanceWindow Result

    The following output properties are available:

    CompartmentId string
    Compartment Identifier OCID.
    Description string
    Maintenance Window description.
    Id string
    The OCID of maintenance window.
    LifecycleDetails string
    Lifecycle Details of the Maintenance Window.
    MaintenanceWindowId string
    Name string
    Name of the monitored resource
    Resources List<GetMaintenanceWindowResource>
    List of resource Ids which are part of the Maintenance Window
    ResourcesDetails List<GetMaintenanceWindowResourcesDetail>
    List of resource details that are part of the Maintenance Window.
    Schedules List<GetMaintenanceWindowSchedule>
    Schedule information of the Maintenance Window
    State string
    Lifecycle state of the monitored resource.
    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.
    Description string
    Maintenance Window description.
    Id string
    The OCID of maintenance window.
    LifecycleDetails string
    Lifecycle Details of the Maintenance Window.
    MaintenanceWindowId string
    Name string
    Name of the monitored resource
    Resources []GetMaintenanceWindowResource
    List of resource Ids which are part of the Maintenance Window
    ResourcesDetails []GetMaintenanceWindowResourcesDetail
    List of resource details that are part of the Maintenance Window.
    Schedules []GetMaintenanceWindowSchedule
    Schedule information of the Maintenance Window
    State string
    Lifecycle state of the monitored resource.
    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.
    description String
    Maintenance Window description.
    id String
    The OCID of maintenance window.
    lifecycleDetails String
    Lifecycle Details of the Maintenance Window.
    maintenanceWindowId String
    name String
    Name of the monitored resource
    resources List<GetMaintenanceWindowResource>
    List of resource Ids which are part of the Maintenance Window
    resourcesDetails List<GetMaintenanceWindowResourcesDetail>
    List of resource details that are part of the Maintenance Window.
    schedules List<GetMaintenanceWindowSchedule>
    Schedule information of the Maintenance Window
    state String
    Lifecycle state of the monitored resource.
    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.
    description string
    Maintenance Window description.
    id string
    The OCID of maintenance window.
    lifecycleDetails string
    Lifecycle Details of the Maintenance Window.
    maintenanceWindowId string
    name string
    Name of the monitored resource
    resources GetMaintenanceWindowResource[]
    List of resource Ids which are part of the Maintenance Window
    resourcesDetails GetMaintenanceWindowResourcesDetail[]
    List of resource details that are part of the Maintenance Window.
    schedules GetMaintenanceWindowSchedule[]
    Schedule information of the Maintenance Window
    state string
    Lifecycle state of the monitored resource.
    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.
    description str
    Maintenance Window description.
    id str
    The OCID of maintenance window.
    lifecycle_details str
    Lifecycle Details of the Maintenance Window.
    maintenance_window_id str
    name str
    Name of the monitored resource
    resources Sequence[stackmonitoring.GetMaintenanceWindowResource]
    List of resource Ids which are part of the Maintenance Window
    resources_details Sequence[stackmonitoring.GetMaintenanceWindowResourcesDetail]
    List of resource details that are part of the Maintenance Window.
    schedules Sequence[stackmonitoring.GetMaintenanceWindowSchedule]
    Schedule information of the Maintenance Window
    state str
    Lifecycle state of the monitored resource.
    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.
    description String
    Maintenance Window description.
    id String
    The OCID of maintenance window.
    lifecycleDetails String
    Lifecycle Details of the Maintenance Window.
    maintenanceWindowId String
    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.
    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

    AreMembersIncluded bool
    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.
    AreMembersIncluded bool
    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.
    areMembersIncluded Boolean
    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.
    areMembersIncluded boolean
    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_included bool
    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.
    areMembersIncluded Boolean
    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
    NumberOfMembers int
    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
    NumberOfMembers int
    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
    numberOfMembers Integer
    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
    numberOfMembers number
    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_members int
    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
    numberOfMembers Number
    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

    MaintenanceWindowDuration string
    Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
    MaintenanceWindowRecurrences string
    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 timeMaintenanceWindowStart value. BYMINUTE: Specifies the start minute of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 Other Rules are not supported.
    ScheduleType string
    Property to identify the type of the Maintenance Window.
    TimeMaintenanceWindowEnd string
    Start time of Maintenance window. A RFC3339 formatted datetime string
    TimeMaintenanceWindowStart string
    Start time of Maintenance window. A RFC3339 formatted datetime string
    MaintenanceWindowDuration string
    Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
    MaintenanceWindowRecurrences string
    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 timeMaintenanceWindowStart value. BYMINUTE: Specifies the start minute of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 Other Rules are not supported.
    ScheduleType string
    Property to identify the type of the Maintenance Window.
    TimeMaintenanceWindowEnd string
    Start time of Maintenance window. A RFC3339 formatted datetime string
    TimeMaintenanceWindowStart string
    Start time of Maintenance window. A RFC3339 formatted datetime string
    maintenanceWindowDuration String
    Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
    maintenanceWindowRecurrences String
    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 timeMaintenanceWindowStart value. BYMINUTE: Specifies the start minute of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 Other Rules are not supported.
    scheduleType String
    Property to identify the type of the Maintenance Window.
    timeMaintenanceWindowEnd String
    Start time of Maintenance window. A RFC3339 formatted datetime string
    timeMaintenanceWindowStart String
    Start time of Maintenance window. A RFC3339 formatted datetime string
    maintenanceWindowDuration string
    Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
    maintenanceWindowRecurrences string
    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 timeMaintenanceWindowStart value. BYMINUTE: Specifies the start minute of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 Other Rules are not supported.
    scheduleType string
    Property to identify the type of the Maintenance Window.
    timeMaintenanceWindowEnd string
    Start time of Maintenance window. A RFC3339 formatted datetime string
    timeMaintenanceWindowStart string
    Start time of Maintenance window. A RFC3339 formatted datetime string
    maintenance_window_duration str
    Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
    maintenance_window_recurrences str
    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 timeMaintenanceWindowStart value. BYMINUTE: Specifies the start minute of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 Other Rules are not supported.
    schedule_type str
    Property to identify the type of the Maintenance Window.
    time_maintenance_window_end str
    Start time of Maintenance window. A RFC3339 formatted datetime string
    time_maintenance_window_start str
    Start time of Maintenance window. A RFC3339 formatted datetime string
    maintenanceWindowDuration String
    Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
    maintenanceWindowRecurrences String
    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 timeMaintenanceWindowStart value. BYMINUTE: Specifies the start minute of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence after timeMaintenanceWindowStart value. The default value is 00 Other Rules are not supported.
    scheduleType String
    Property to identify the type of the Maintenance Window.
    timeMaintenanceWindowEnd String
    Start time of Maintenance window. A RFC3339 formatted datetime string
    timeMaintenanceWindowStart String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi