Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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 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:
- Maintenance
Window stringId - The OCID of maintenance window.
- Maintenance
Window stringId - The OCID of maintenance window.
- maintenance
Window StringId - The OCID of maintenance window.
- maintenance
Window stringId - The OCID of maintenance window.
- maintenance_
window_ strid - The OCID of maintenance window.
- maintenance
Window StringId - The OCID of maintenance window.
getMaintenanceWindow Result
The following output properties are available:
- Compartment
Id string - Compartment Identifier OCID.
- Description string
- Maintenance Window description.
- Id string
- The OCID of maintenance window.
- Lifecycle
Details string - Lifecycle Details of the Maintenance Window.
- Maintenance
Window stringId - Name string
- Name of the monitored resource
- Resources
List<Get
Maintenance Window Resource> - List of resource Ids which are part of the Maintenance Window
- Resources
Details List<GetMaintenance Window Resources Detail> - List of resource details that are part of the Maintenance Window.
- Schedules
List<Get
Maintenance Window Schedule> - Schedule information of the Maintenance Window
- State string
- Lifecycle state of the monitored resource.
- Time
Created string - The time the the maintenance window was created. An RFC3339 formatted datetime string
- Time
Updated string - The time the the mainteance window was updated. An RFC3339 formatted datetime string
- Compartment
Id string - Compartment Identifier OCID.
- Description string
- Maintenance Window description.
- Id string
- The OCID of maintenance window.
- Lifecycle
Details string - Lifecycle Details of the Maintenance Window.
- Maintenance
Window stringId - Name string
- Name of the monitored resource
- Resources
[]Get
Maintenance Window Resource - List of resource Ids which are part of the Maintenance Window
- Resources
Details []GetMaintenance Window Resources Detail - List of resource details that are part of the Maintenance Window.
- Schedules
[]Get
Maintenance Window Schedule - Schedule information of the Maintenance Window
- State string
- Lifecycle state of the monitored resource.
- Time
Created string - The time the the maintenance window was created. An RFC3339 formatted datetime string
- Time
Updated string - The time the the mainteance window was updated. An RFC3339 formatted datetime string
- compartment
Id String - Compartment Identifier OCID.
- description String
- Maintenance Window description.
- id String
- The OCID of maintenance window.
- lifecycle
Details String - Lifecycle Details of the Maintenance Window.
- maintenance
Window StringId - name String
- Name of the monitored resource
- resources
List<Get
Maintenance Window Resource> - List of resource Ids which are part of the Maintenance Window
- resources
Details List<GetMaintenance Window Resources Detail> - List of resource details that are part of the Maintenance Window.
- schedules
List<Get
Maintenance Window Schedule> - Schedule information of the Maintenance Window
- state String
- Lifecycle state of the monitored resource.
- time
Created String - The time the the maintenance window was created. An RFC3339 formatted datetime string
- time
Updated String - The time the the mainteance window was updated. An RFC3339 formatted datetime string
- compartment
Id string - Compartment Identifier OCID.
- description string
- Maintenance Window description.
- id string
- The OCID of maintenance window.
- lifecycle
Details string - Lifecycle Details of the Maintenance Window.
- maintenance
Window stringId - name string
- Name of the monitored resource
- resources
Get
Maintenance Window Resource[] - List of resource Ids which are part of the Maintenance Window
- resources
Details GetMaintenance Window Resources Detail[] - List of resource details that are part of the Maintenance Window.
- schedules
Get
Maintenance Window Schedule[] - Schedule information of the Maintenance Window
- state string
- Lifecycle state of the monitored resource.
- time
Created string - The time the the maintenance window was created. An RFC3339 formatted datetime string
- time
Updated 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_ strid - name str
- Name of the monitored resource
- resources
Sequence[stackmonitoring.
Get Maintenance Window Resource] - List of resource Ids which are part of the Maintenance Window
- resources_
details Sequence[stackmonitoring.Get Maintenance Window Resources Detail] - List of resource details that are part of the Maintenance Window.
- schedules
Sequence[stackmonitoring.
Get Maintenance Window Schedule] - 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
- compartment
Id String - Compartment Identifier OCID.
- description String
- Maintenance Window description.
- id String
- The OCID of maintenance window.
- lifecycle
Details String - Lifecycle Details of the Maintenance Window.
- maintenance
Window StringId - name String
- Name of the monitored resource
- resources List<Property Map>
- List of resource Ids which are part of the Maintenance Window
- resources
Details 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.
- time
Created String - The time the the maintenance window was created. An RFC3339 formatted datetime string
- time
Updated String - The time the the mainteance window was updated. An RFC3339 formatted datetime string
Supporting Types
GetMaintenanceWindowResource
- Are
Members boolIncluded - Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- Resource
Id 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 string - The OCID of monitored resource part of the Maintenance window.
- are
Members BooleanIncluded - Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- resource
Id String - The OCID of monitored resource part of the Maintenance window.
- are
Members booleanIncluded - Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- resource
Id 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.
- are
Members BooleanIncluded - Flag to indicate if the members of the resource has to be include in the Maintenance Window.
- resource
Id String - The OCID of monitored resource part of the Maintenance window.
GetMaintenanceWindowResourcesDetail
- Name string
- Name of the monitored resource
- Number
Of intMembers - Number of members of the resource
- Resource
Id 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
- Number
Of intMembers - Number of members of the resource
- Resource
Id 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
- number
Of IntegerMembers - Number of members of the resource
- resource
Id 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
- number
Of numberMembers - Number of members of the resource
- resource
Id 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
- number
Of NumberMembers - Number of members of the resource
- resource
Id String - The OCID of monitored resource part of the Maintenance window.
- type String
- Type of the monitored resource
GetMaintenanceWindowSchedule
- Maintenance
Window stringDuration - Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- Maintenance
Window 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
timeMaintenanceWindowStart
value. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 Other Rules are not supported. - Schedule
Type string - Property to identify the type of the Maintenance Window.
- Time
Maintenance stringWindow End - Start time of Maintenance window. A RFC3339 formatted datetime string
- Time
Maintenance stringWindow Start - Start time of Maintenance window. A RFC3339 formatted datetime string
- Maintenance
Window stringDuration - Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- Maintenance
Window 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
timeMaintenanceWindowStart
value. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 Other Rules are not supported. - Schedule
Type string - Property to identify the type of the Maintenance Window.
- Time
Maintenance stringWindow End - Start time of Maintenance window. A RFC3339 formatted datetime string
- Time
Maintenance stringWindow Start - Start time of Maintenance window. A RFC3339 formatted datetime string
- maintenance
Window StringDuration - Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- maintenance
Window 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
timeMaintenanceWindowStart
value. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 Other Rules are not supported. - schedule
Type String - Property to identify the type of the Maintenance Window.
- time
Maintenance StringWindow End - Start time of Maintenance window. A RFC3339 formatted datetime string
- time
Maintenance StringWindow Start - Start time of Maintenance window. A RFC3339 formatted datetime string
- maintenance
Window stringDuration - Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- maintenance
Window 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
timeMaintenanceWindowStart
value. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 Other Rules are not supported. - schedule
Type string - Property to identify the type of the Maintenance Window.
- time
Maintenance stringWindow End - Start time of Maintenance window. A RFC3339 formatted datetime string
- time
Maintenance 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
timeMaintenanceWindowStart
value. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStart
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_ 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
- maintenance
Window StringDuration - Duration time of each recurrence of each Maintenance Window. It must be specified as a string in ISO 8601 extended format.
- maintenance
Window 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
timeMaintenanceWindowStart
value. BYMINUTE: Specifies the start minute of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 BYSECOND: Specifies the start second of each reccurrence aftertimeMaintenanceWindowStart
value. The default value is 00 Other Rules are not supported. - schedule
Type String - Property to identify the type of the Maintenance Window.
- time
Maintenance StringWindow End - Start time of Maintenance window. A RFC3339 formatted datetime string
- time
Maintenance 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
oci
Terraform Provider.