Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
This data source provides the list of Db System Maintenance Events in Oracle Cloud Infrastructure MySQL Database service.
List all the maintenance events.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbSystemMaintenanceEvents = oci.Mysql.getDbSystemMaintenanceEvents({
dbSystemId: testMysqlDbSystem.id,
maintenanceAction: dbSystemMaintenanceEventMaintenanceAction,
maintenanceStatus: dbSystemMaintenanceEventMaintenanceStatus,
maintenanceType: dbSystemMaintenanceEventMaintenanceType,
mysqlVersionAfterMaintenance: dbSystemMaintenanceEventMysqlVersionAfterMaintenance,
mysqlVersionBeforeMaintenance: dbSystemMaintenanceEventMysqlVersionBeforeMaintenance,
});
import pulumi
import pulumi_oci as oci
test_db_system_maintenance_events = oci.Mysql.get_db_system_maintenance_events(db_system_id=test_mysql_db_system["id"],
maintenance_action=db_system_maintenance_event_maintenance_action,
maintenance_status=db_system_maintenance_event_maintenance_status,
maintenance_type=db_system_maintenance_event_maintenance_type,
mysql_version_after_maintenance=db_system_maintenance_event_mysql_version_after_maintenance,
mysql_version_before_maintenance=db_system_maintenance_event_mysql_version_before_maintenance)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/mysql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mysql.GetDbSystemMaintenanceEvents(ctx, &mysql.GetDbSystemMaintenanceEventsArgs{
DbSystemId: testMysqlDbSystem.Id,
MaintenanceAction: pulumi.StringRef(dbSystemMaintenanceEventMaintenanceAction),
MaintenanceStatus: pulumi.StringRef(dbSystemMaintenanceEventMaintenanceStatus),
MaintenanceType: pulumi.StringRef(dbSystemMaintenanceEventMaintenanceType),
MysqlVersionAfterMaintenance: pulumi.StringRef(dbSystemMaintenanceEventMysqlVersionAfterMaintenance),
MysqlVersionBeforeMaintenance: pulumi.StringRef(dbSystemMaintenanceEventMysqlVersionBeforeMaintenance),
}, 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 testDbSystemMaintenanceEvents = Oci.Mysql.GetDbSystemMaintenanceEvents.Invoke(new()
{
DbSystemId = testMysqlDbSystem.Id,
MaintenanceAction = dbSystemMaintenanceEventMaintenanceAction,
MaintenanceStatus = dbSystemMaintenanceEventMaintenanceStatus,
MaintenanceType = dbSystemMaintenanceEventMaintenanceType,
MysqlVersionAfterMaintenance = dbSystemMaintenanceEventMysqlVersionAfterMaintenance,
MysqlVersionBeforeMaintenance = dbSystemMaintenanceEventMysqlVersionBeforeMaintenance,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Mysql.MysqlFunctions;
import com.pulumi.oci.Mysql.inputs.GetDbSystemMaintenanceEventsArgs;
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 testDbSystemMaintenanceEvents = MysqlFunctions.getDbSystemMaintenanceEvents(GetDbSystemMaintenanceEventsArgs.builder()
.dbSystemId(testMysqlDbSystem.id())
.maintenanceAction(dbSystemMaintenanceEventMaintenanceAction)
.maintenanceStatus(dbSystemMaintenanceEventMaintenanceStatus)
.maintenanceType(dbSystemMaintenanceEventMaintenanceType)
.mysqlVersionAfterMaintenance(dbSystemMaintenanceEventMysqlVersionAfterMaintenance)
.mysqlVersionBeforeMaintenance(dbSystemMaintenanceEventMysqlVersionBeforeMaintenance)
.build());
}
}
variables:
testDbSystemMaintenanceEvents:
fn::invoke:
function: oci:Mysql:getDbSystemMaintenanceEvents
arguments:
dbSystemId: ${testMysqlDbSystem.id}
maintenanceAction: ${dbSystemMaintenanceEventMaintenanceAction}
maintenanceStatus: ${dbSystemMaintenanceEventMaintenanceStatus}
maintenanceType: ${dbSystemMaintenanceEventMaintenanceType}
mysqlVersionAfterMaintenance: ${dbSystemMaintenanceEventMysqlVersionAfterMaintenance}
mysqlVersionBeforeMaintenance: ${dbSystemMaintenanceEventMysqlVersionBeforeMaintenance}
Using getDbSystemMaintenanceEvents
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 getDbSystemMaintenanceEvents(args: GetDbSystemMaintenanceEventsArgs, opts?: InvokeOptions): Promise<GetDbSystemMaintenanceEventsResult>
function getDbSystemMaintenanceEventsOutput(args: GetDbSystemMaintenanceEventsOutputArgs, opts?: InvokeOptions): Output<GetDbSystemMaintenanceEventsResult>def get_db_system_maintenance_events(db_system_id: Optional[str] = None,
filters: Optional[Sequence[GetDbSystemMaintenanceEventsFilter]] = None,
maintenance_action: Optional[str] = None,
maintenance_status: Optional[str] = None,
maintenance_type: Optional[str] = None,
mysql_version_after_maintenance: Optional[str] = None,
mysql_version_before_maintenance: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbSystemMaintenanceEventsResult
def get_db_system_maintenance_events_output(db_system_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDbSystemMaintenanceEventsFilterArgs]]]] = None,
maintenance_action: Optional[pulumi.Input[str]] = None,
maintenance_status: Optional[pulumi.Input[str]] = None,
maintenance_type: Optional[pulumi.Input[str]] = None,
mysql_version_after_maintenance: Optional[pulumi.Input[str]] = None,
mysql_version_before_maintenance: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbSystemMaintenanceEventsResult]func GetDbSystemMaintenanceEvents(ctx *Context, args *GetDbSystemMaintenanceEventsArgs, opts ...InvokeOption) (*GetDbSystemMaintenanceEventsResult, error)
func GetDbSystemMaintenanceEventsOutput(ctx *Context, args *GetDbSystemMaintenanceEventsOutputArgs, opts ...InvokeOption) GetDbSystemMaintenanceEventsResultOutput> Note: This function is named GetDbSystemMaintenanceEvents in the Go SDK.
public static class GetDbSystemMaintenanceEvents
{
public static Task<GetDbSystemMaintenanceEventsResult> InvokeAsync(GetDbSystemMaintenanceEventsArgs args, InvokeOptions? opts = null)
public static Output<GetDbSystemMaintenanceEventsResult> Invoke(GetDbSystemMaintenanceEventsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbSystemMaintenanceEventsResult> getDbSystemMaintenanceEvents(GetDbSystemMaintenanceEventsArgs args, InvokeOptions options)
public static Output<GetDbSystemMaintenanceEventsResult> getDbSystemMaintenanceEvents(GetDbSystemMaintenanceEventsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Mysql/getDbSystemMaintenanceEvents:getDbSystemMaintenanceEvents
arguments:
# arguments dictionaryThe following arguments are supported:
- Db
System stringId - The DB System OCID.
- Filters
List<Get
Db System Maintenance Events Filter> - Maintenance
Action string - The nature of the maintenance event.
- Maintenance
Status string - The last status of the maintenance event.
- Maintenance
Type string - How the maintenance event was triggered.
- Mysql
Version stringAfter Maintenance - The MySQL version after the maintenance event.
- Mysql
Version stringBefore Maintenance - The MySQL version before the maintenance event.
- Db
System stringId - The DB System OCID.
- Filters
[]Get
Db System Maintenance Events Filter - Maintenance
Action string - The nature of the maintenance event.
- Maintenance
Status string - The last status of the maintenance event.
- Maintenance
Type string - How the maintenance event was triggered.
- Mysql
Version stringAfter Maintenance - The MySQL version after the maintenance event.
- Mysql
Version stringBefore Maintenance - The MySQL version before the maintenance event.
- db
System StringId - The DB System OCID.
- filters
List<Get
Db System Maintenance Events Filter> - maintenance
Action String - The nature of the maintenance event.
- maintenance
Status String - The last status of the maintenance event.
- maintenance
Type String - How the maintenance event was triggered.
- mysql
Version StringAfter Maintenance - The MySQL version after the maintenance event.
- mysql
Version StringBefore Maintenance - The MySQL version before the maintenance event.
- db
System stringId - The DB System OCID.
- filters
Get
Db System Maintenance Events Filter[] - maintenance
Action string - The nature of the maintenance event.
- maintenance
Status string - The last status of the maintenance event.
- maintenance
Type string - How the maintenance event was triggered.
- mysql
Version stringAfter Maintenance - The MySQL version after the maintenance event.
- mysql
Version stringBefore Maintenance - The MySQL version before the maintenance event.
- db_
system_ strid - The DB System OCID.
- filters
Sequence[Get
Db System Maintenance Events Filter] - maintenance_
action str - The nature of the maintenance event.
- maintenance_
status str - The last status of the maintenance event.
- maintenance_
type str - How the maintenance event was triggered.
- mysql_
version_ strafter_ maintenance - The MySQL version after the maintenance event.
- mysql_
version_ strbefore_ maintenance - The MySQL version before the maintenance event.
- db
System StringId - The DB System OCID.
- filters List<Property Map>
- maintenance
Action String - The nature of the maintenance event.
- maintenance
Status String - The last status of the maintenance event.
- maintenance
Type String - How the maintenance event was triggered.
- mysql
Version StringAfter Maintenance - The MySQL version after the maintenance event.
- mysql
Version StringBefore Maintenance - The MySQL version before the maintenance event.
getDbSystemMaintenanceEvents Result
The following output properties are available:
- Db
System stringId - The OCID of the DB System this maintenance event is associated with.
- Id string
- The provider-assigned unique ID for this managed resource.
- Maintenance
Events List<GetDb System Maintenance Events Maintenance Event> - The list of maintenance_events.
- Filters
List<Get
Db System Maintenance Events Filter> - Maintenance
Action string - The nature of the maintenance event. * DATABASE: maintenance event causing a MySQL version upgrade. This may also include OS updates. OS_UPDATE: maintenance event causing an OS update. ONLINE_UPDATE: maintenance event causing downtime-free OS security patches. HARDWARE: hardware maintenance event affecting the DB System's VMs and BMs.
- Maintenance
Status string - The last status of the maintenance event.
- Maintenance
Type string - How the maintenance event was triggered.
- Mysql
Version stringAfter Maintenance - The MySQL version after the maintenance.
- Mysql
Version stringBefore Maintenance - The MySQL version prior to the maintenance.
- Db
System stringId - The OCID of the DB System this maintenance event is associated with.
- Id string
- The provider-assigned unique ID for this managed resource.
- Maintenance
Events []GetDb System Maintenance Events Maintenance Event - The list of maintenance_events.
- Filters
[]Get
Db System Maintenance Events Filter - Maintenance
Action string - The nature of the maintenance event. * DATABASE: maintenance event causing a MySQL version upgrade. This may also include OS updates. OS_UPDATE: maintenance event causing an OS update. ONLINE_UPDATE: maintenance event causing downtime-free OS security patches. HARDWARE: hardware maintenance event affecting the DB System's VMs and BMs.
- Maintenance
Status string - The last status of the maintenance event.
- Maintenance
Type string - How the maintenance event was triggered.
- Mysql
Version stringAfter Maintenance - The MySQL version after the maintenance.
- Mysql
Version stringBefore Maintenance - The MySQL version prior to the maintenance.
- db
System StringId - The OCID of the DB System this maintenance event is associated with.
- id String
- The provider-assigned unique ID for this managed resource.
- maintenance
Events List<GetDb System Maintenance Events Maintenance Event> - The list of maintenance_events.
- filters
List<Get
Db System Maintenance Events Filter> - maintenance
Action String - The nature of the maintenance event. * DATABASE: maintenance event causing a MySQL version upgrade. This may also include OS updates. OS_UPDATE: maintenance event causing an OS update. ONLINE_UPDATE: maintenance event causing downtime-free OS security patches. HARDWARE: hardware maintenance event affecting the DB System's VMs and BMs.
- maintenance
Status String - The last status of the maintenance event.
- maintenance
Type String - How the maintenance event was triggered.
- mysql
Version StringAfter Maintenance - The MySQL version after the maintenance.
- mysql
Version StringBefore Maintenance - The MySQL version prior to the maintenance.
- db
System stringId - The OCID of the DB System this maintenance event is associated with.
- id string
- The provider-assigned unique ID for this managed resource.
- maintenance
Events GetDb System Maintenance Events Maintenance Event[] - The list of maintenance_events.
- filters
Get
Db System Maintenance Events Filter[] - maintenance
Action string - The nature of the maintenance event. * DATABASE: maintenance event causing a MySQL version upgrade. This may also include OS updates. OS_UPDATE: maintenance event causing an OS update. ONLINE_UPDATE: maintenance event causing downtime-free OS security patches. HARDWARE: hardware maintenance event affecting the DB System's VMs and BMs.
- maintenance
Status string - The last status of the maintenance event.
- maintenance
Type string - How the maintenance event was triggered.
- mysql
Version stringAfter Maintenance - The MySQL version after the maintenance.
- mysql
Version stringBefore Maintenance - The MySQL version prior to the maintenance.
- db_
system_ strid - The OCID of the DB System this maintenance event is associated with.
- id str
- The provider-assigned unique ID for this managed resource.
- maintenance_
events Sequence[GetDb System Maintenance Events Maintenance Event] - The list of maintenance_events.
- filters
Sequence[Get
Db System Maintenance Events Filter] - maintenance_
action str - The nature of the maintenance event. * DATABASE: maintenance event causing a MySQL version upgrade. This may also include OS updates. OS_UPDATE: maintenance event causing an OS update. ONLINE_UPDATE: maintenance event causing downtime-free OS security patches. HARDWARE: hardware maintenance event affecting the DB System's VMs and BMs.
- maintenance_
status str - The last status of the maintenance event.
- maintenance_
type str - How the maintenance event was triggered.
- mysql_
version_ strafter_ maintenance - The MySQL version after the maintenance.
- mysql_
version_ strbefore_ maintenance - The MySQL version prior to the maintenance.
- db
System StringId - The OCID of the DB System this maintenance event is associated with.
- id String
- The provider-assigned unique ID for this managed resource.
- maintenance
Events List<Property Map> - The list of maintenance_events.
- filters List<Property Map>
- maintenance
Action String - The nature of the maintenance event. * DATABASE: maintenance event causing a MySQL version upgrade. This may also include OS updates. OS_UPDATE: maintenance event causing an OS update. ONLINE_UPDATE: maintenance event causing downtime-free OS security patches. HARDWARE: hardware maintenance event affecting the DB System's VMs and BMs.
- maintenance
Status String - The last status of the maintenance event.
- maintenance
Type String - How the maintenance event was triggered.
- mysql
Version StringAfter Maintenance - The MySQL version after the maintenance.
- mysql
Version StringBefore Maintenance - The MySQL version prior to the maintenance.
Supporting Types
GetDbSystemMaintenanceEventsFilter
GetDbSystemMaintenanceEventsMaintenanceEvent
- Compartment
Id string - The OCID of the compartment the maintenance event belongs to.
- Db
System stringId - The DB System OCID.
- Maintenance
Action string - The nature of the maintenance event.
- Maintenance
Notes string - Maintenance
Scope string - The MySQL instances operated during a maintenance event.
- Maintenance
Status string - The last status of the maintenance event.
- Maintenance
Type string - How the maintenance event was triggered.
- Mysql
Version stringAfter Maintenance - The MySQL version after the maintenance event.
- Mysql
Version stringBefore Maintenance - The MySQL version before the maintenance event.
- Time
Created string - The date and time the record was created, as described by RFC 3339.
- Time
Ended string - The date and time the maintenance event ended, as described by RFC 3339.
- Time
Mysql stringSwitch Over Ended - The date and time the DB System came back online during the maintenance, as described by RFC 3339.
- Time
Mysql stringSwitch Over Started - The date and time the DB System was initially down during the maintenance, as described by RFC 3339.
- Time
Started string - The date and time the maintenance event started, as described by RFC 3339.
- Compartment
Id string - The OCID of the compartment the maintenance event belongs to.
- Db
System stringId - The DB System OCID.
- Maintenance
Action string - The nature of the maintenance event.
- Maintenance
Notes string - Maintenance
Scope string - The MySQL instances operated during a maintenance event.
- Maintenance
Status string - The last status of the maintenance event.
- Maintenance
Type string - How the maintenance event was triggered.
- Mysql
Version stringAfter Maintenance - The MySQL version after the maintenance event.
- Mysql
Version stringBefore Maintenance - The MySQL version before the maintenance event.
- Time
Created string - The date and time the record was created, as described by RFC 3339.
- Time
Ended string - The date and time the maintenance event ended, as described by RFC 3339.
- Time
Mysql stringSwitch Over Ended - The date and time the DB System came back online during the maintenance, as described by RFC 3339.
- Time
Mysql stringSwitch Over Started - The date and time the DB System was initially down during the maintenance, as described by RFC 3339.
- Time
Started string - The date and time the maintenance event started, as described by RFC 3339.
- compartment
Id String - The OCID of the compartment the maintenance event belongs to.
- db
System StringId - The DB System OCID.
- maintenance
Action String - The nature of the maintenance event.
- maintenance
Notes String - maintenance
Scope String - The MySQL instances operated during a maintenance event.
- maintenance
Status String - The last status of the maintenance event.
- maintenance
Type String - How the maintenance event was triggered.
- mysql
Version StringAfter Maintenance - The MySQL version after the maintenance event.
- mysql
Version StringBefore Maintenance - The MySQL version before the maintenance event.
- time
Created String - The date and time the record was created, as described by RFC 3339.
- time
Ended String - The date and time the maintenance event ended, as described by RFC 3339.
- time
Mysql StringSwitch Over Ended - The date and time the DB System came back online during the maintenance, as described by RFC 3339.
- time
Mysql StringSwitch Over Started - The date and time the DB System was initially down during the maintenance, as described by RFC 3339.
- time
Started String - The date and time the maintenance event started, as described by RFC 3339.
- compartment
Id string - The OCID of the compartment the maintenance event belongs to.
- db
System stringId - The DB System OCID.
- maintenance
Action string - The nature of the maintenance event.
- maintenance
Notes string - maintenance
Scope string - The MySQL instances operated during a maintenance event.
- maintenance
Status string - The last status of the maintenance event.
- maintenance
Type string - How the maintenance event was triggered.
- mysql
Version stringAfter Maintenance - The MySQL version after the maintenance event.
- mysql
Version stringBefore Maintenance - The MySQL version before the maintenance event.
- time
Created string - The date and time the record was created, as described by RFC 3339.
- time
Ended string - The date and time the maintenance event ended, as described by RFC 3339.
- time
Mysql stringSwitch Over Ended - The date and time the DB System came back online during the maintenance, as described by RFC 3339.
- time
Mysql stringSwitch Over Started - The date and time the DB System was initially down during the maintenance, as described by RFC 3339.
- time
Started string - The date and time the maintenance event started, as described by RFC 3339.
- compartment_
id str - The OCID of the compartment the maintenance event belongs to.
- db_
system_ strid - The DB System OCID.
- maintenance_
action str - The nature of the maintenance event.
- maintenance_
notes str - maintenance_
scope str - The MySQL instances operated during a maintenance event.
- maintenance_
status str - The last status of the maintenance event.
- maintenance_
type str - How the maintenance event was triggered.
- mysql_
version_ strafter_ maintenance - The MySQL version after the maintenance event.
- mysql_
version_ strbefore_ maintenance - The MySQL version before the maintenance event.
- time_
created str - The date and time the record was created, as described by RFC 3339.
- time_
ended str - The date and time the maintenance event ended, as described by RFC 3339.
- time_
mysql_ strswitch_ over_ ended - The date and time the DB System came back online during the maintenance, as described by RFC 3339.
- time_
mysql_ strswitch_ over_ started - The date and time the DB System was initially down during the maintenance, as described by RFC 3339.
- time_
started str - The date and time the maintenance event started, as described by RFC 3339.
- compartment
Id String - The OCID of the compartment the maintenance event belongs to.
- db
System StringId - The DB System OCID.
- maintenance
Action String - The nature of the maintenance event.
- maintenance
Notes String - maintenance
Scope String - The MySQL instances operated during a maintenance event.
- maintenance
Status String - The last status of the maintenance event.
- maintenance
Type String - How the maintenance event was triggered.
- mysql
Version StringAfter Maintenance - The MySQL version after the maintenance event.
- mysql
Version StringBefore Maintenance - The MySQL version before the maintenance event.
- time
Created String - The date and time the record was created, as described by RFC 3339.
- time
Ended String - The date and time the maintenance event ended, as described by RFC 3339.
- time
Mysql StringSwitch Over Ended - The date and time the DB System came back online during the maintenance, as described by RFC 3339.
- time
Mysql StringSwitch Over Started - The date and time the DB System was initially down during the maintenance, as described by RFC 3339.
- time
Started String - The date and time the maintenance event started, as described by RFC 3339.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
published on Friday, Mar 6, 2026 by Pulumi
