Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getDbSystemsUpgradeHistoryEntries
Explore with Pulumi AI
This data source provides the list of Db Systems Upgrade History Entries in Oracle Cloud Infrastructure Database service.
Gets the history of the upgrade actions performed on the specified DB system.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbSystemsUpgradeHistoryEntries = oci.Database.getDbSystemsUpgradeHistoryEntries({
    dbSystemId: testDbSystem.id,
    state: dbSystemsUpgradeHistoryEntryState,
    upgradeAction: dbSystemsUpgradeHistoryEntryUpgradeAction,
});
import pulumi
import pulumi_oci as oci
test_db_systems_upgrade_history_entries = oci.Database.get_db_systems_upgrade_history_entries(db_system_id=test_db_system["id"],
    state=db_systems_upgrade_history_entry_state,
    upgrade_action=db_systems_upgrade_history_entry_upgrade_action)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.GetDbSystemsUpgradeHistoryEntries(ctx, &database.GetDbSystemsUpgradeHistoryEntriesArgs{
			DbSystemId:    testDbSystem.Id,
			State:         pulumi.StringRef(dbSystemsUpgradeHistoryEntryState),
			UpgradeAction: pulumi.StringRef(dbSystemsUpgradeHistoryEntryUpgradeAction),
		}, 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 testDbSystemsUpgradeHistoryEntries = Oci.Database.GetDbSystemsUpgradeHistoryEntries.Invoke(new()
    {
        DbSystemId = testDbSystem.Id,
        State = dbSystemsUpgradeHistoryEntryState,
        UpgradeAction = dbSystemsUpgradeHistoryEntryUpgradeAction,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetDbSystemsUpgradeHistoryEntriesArgs;
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 testDbSystemsUpgradeHistoryEntries = DatabaseFunctions.getDbSystemsUpgradeHistoryEntries(GetDbSystemsUpgradeHistoryEntriesArgs.builder()
            .dbSystemId(testDbSystem.id())
            .state(dbSystemsUpgradeHistoryEntryState)
            .upgradeAction(dbSystemsUpgradeHistoryEntryUpgradeAction)
            .build());
    }
}
variables:
  testDbSystemsUpgradeHistoryEntries:
    fn::invoke:
      function: oci:Database:getDbSystemsUpgradeHistoryEntries
      arguments:
        dbSystemId: ${testDbSystem.id}
        state: ${dbSystemsUpgradeHistoryEntryState}
        upgradeAction: ${dbSystemsUpgradeHistoryEntryUpgradeAction}
Using getDbSystemsUpgradeHistoryEntries
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 getDbSystemsUpgradeHistoryEntries(args: GetDbSystemsUpgradeHistoryEntriesArgs, opts?: InvokeOptions): Promise<GetDbSystemsUpgradeHistoryEntriesResult>
function getDbSystemsUpgradeHistoryEntriesOutput(args: GetDbSystemsUpgradeHistoryEntriesOutputArgs, opts?: InvokeOptions): Output<GetDbSystemsUpgradeHistoryEntriesResult>def get_db_systems_upgrade_history_entries(db_system_id: Optional[str] = None,
                                           filters: Optional[Sequence[GetDbSystemsUpgradeHistoryEntriesFilter]] = None,
                                           state: Optional[str] = None,
                                           upgrade_action: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetDbSystemsUpgradeHistoryEntriesResult
def get_db_systems_upgrade_history_entries_output(db_system_id: Optional[pulumi.Input[str]] = None,
                                           filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDbSystemsUpgradeHistoryEntriesFilterArgs]]]] = None,
                                           state: Optional[pulumi.Input[str]] = None,
                                           upgrade_action: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetDbSystemsUpgradeHistoryEntriesResult]func GetDbSystemsUpgradeHistoryEntries(ctx *Context, args *GetDbSystemsUpgradeHistoryEntriesArgs, opts ...InvokeOption) (*GetDbSystemsUpgradeHistoryEntriesResult, error)
func GetDbSystemsUpgradeHistoryEntriesOutput(ctx *Context, args *GetDbSystemsUpgradeHistoryEntriesOutputArgs, opts ...InvokeOption) GetDbSystemsUpgradeHistoryEntriesResultOutput> Note: This function is named GetDbSystemsUpgradeHistoryEntries in the Go SDK.
public static class GetDbSystemsUpgradeHistoryEntries 
{
    public static Task<GetDbSystemsUpgradeHistoryEntriesResult> InvokeAsync(GetDbSystemsUpgradeHistoryEntriesArgs args, InvokeOptions? opts = null)
    public static Output<GetDbSystemsUpgradeHistoryEntriesResult> Invoke(GetDbSystemsUpgradeHistoryEntriesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbSystemsUpgradeHistoryEntriesResult> getDbSystemsUpgradeHistoryEntries(GetDbSystemsUpgradeHistoryEntriesArgs args, InvokeOptions options)
public static Output<GetDbSystemsUpgradeHistoryEntriesResult> getDbSystemsUpgradeHistoryEntries(GetDbSystemsUpgradeHistoryEntriesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getDbSystemsUpgradeHistoryEntries:getDbSystemsUpgradeHistoryEntries
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DbSystem stringId 
- The DB system OCID.
- Filters
List<GetDb Systems Upgrade History Entries Filter> 
- State string
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- UpgradeAction string
- A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- DbSystem stringId 
- The DB system OCID.
- Filters
[]GetDb Systems Upgrade History Entries Filter 
- State string
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- UpgradeAction string
- A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- dbSystem StringId 
- The DB system OCID.
- filters
List<GetDb Systems Upgrade History Entries Filter> 
- state String
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- upgradeAction String
- A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- dbSystem stringId 
- The DB system OCID.
- filters
GetDb Systems Upgrade History Entries Filter[] 
- state string
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- upgradeAction string
- A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- db_system_ strid 
- The DB system OCID.
- filters
Sequence[GetDb Systems Upgrade History Entries Filter] 
- state str
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- upgrade_action str
- A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- dbSystem StringId 
- The DB system OCID.
- filters List<Property Map>
- state String
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- upgradeAction String
- A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
getDbSystemsUpgradeHistoryEntries Result
The following output properties are available:
- DbSystem stringId 
- DbSystem List<GetUpgrade History Entries Db Systems Upgrade History Entries Db System Upgrade History Entry> 
- The list of db_system_upgrade_history_entries.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<GetDb Systems Upgrade History Entries Filter> 
- State string
- The current state of the action.
- UpgradeAction string
- DbSystem stringId 
- DbSystem []GetUpgrade History Entries Db Systems Upgrade History Entries Db System Upgrade History Entry 
- The list of db_system_upgrade_history_entries.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]GetDb Systems Upgrade History Entries Filter 
- State string
- The current state of the action.
- UpgradeAction string
- dbSystem StringId 
- dbSystem List<GetUpgrade History Entries Db Systems Upgrade History Entries Db System Upgrade History Entry> 
- The list of db_system_upgrade_history_entries.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<GetDb Systems Upgrade History Entries Filter> 
- state String
- The current state of the action.
- upgradeAction String
- dbSystem stringId 
- dbSystem GetUpgrade History Entries Db Systems Upgrade History Entries Db System Upgrade History Entry[] 
- The list of db_system_upgrade_history_entries.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
GetDb Systems Upgrade History Entries Filter[] 
- state string
- The current state of the action.
- upgradeAction string
- db_system_ strid 
- db_system_ Sequence[Getupgrade_ history_ entries Db Systems Upgrade History Entries Db System Upgrade History Entry] 
- The list of db_system_upgrade_history_entries.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[GetDb Systems Upgrade History Entries Filter] 
- state str
- The current state of the action.
- upgrade_action str
- dbSystem StringId 
- dbSystem List<Property Map>Upgrade History Entries 
- The list of db_system_upgrade_history_entries.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- state String
- The current state of the action.
- upgradeAction String
Supporting Types
GetDbSystemsUpgradeHistoryEntriesDbSystemUpgradeHistoryEntry          
- Action string
- The operating system upgrade action.
- Id string
- The OCID of the upgrade history entry.
- LifecycleDetails string
- A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
- NewGi stringVersion 
- A valid Oracle Grid Infrastructure (GI) software version.
- NewOs stringVersion 
- A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- OldGi stringVersion 
- A valid Oracle Grid Infrastructure (GI) software version.
- OldOs stringVersion 
- A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- SnapshotRetention intPeriod In Days 
- The retention period, in days, for the snapshot that allows you to perform a rollback of the upgrade operation. After this number of days passes, you cannot roll back the upgrade.
- State string
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- TimeEnded string
- The date and time when the upgrade action completed
- TimeStarted string
- The date and time when the upgrade action started.
- Action string
- The operating system upgrade action.
- Id string
- The OCID of the upgrade history entry.
- LifecycleDetails string
- A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
- NewGi stringVersion 
- A valid Oracle Grid Infrastructure (GI) software version.
- NewOs stringVersion 
- A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- OldGi stringVersion 
- A valid Oracle Grid Infrastructure (GI) software version.
- OldOs stringVersion 
- A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- SnapshotRetention intPeriod In Days 
- The retention period, in days, for the snapshot that allows you to perform a rollback of the upgrade operation. After this number of days passes, you cannot roll back the upgrade.
- State string
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- TimeEnded string
- The date and time when the upgrade action completed
- TimeStarted string
- The date and time when the upgrade action started.
- action String
- The operating system upgrade action.
- id String
- The OCID of the upgrade history entry.
- lifecycleDetails String
- A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
- newGi StringVersion 
- A valid Oracle Grid Infrastructure (GI) software version.
- newOs StringVersion 
- A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- oldGi StringVersion 
- A valid Oracle Grid Infrastructure (GI) software version.
- oldOs StringVersion 
- A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- snapshotRetention IntegerPeriod In Days 
- The retention period, in days, for the snapshot that allows you to perform a rollback of the upgrade operation. After this number of days passes, you cannot roll back the upgrade.
- state String
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- timeEnded String
- The date and time when the upgrade action completed
- timeStarted String
- The date and time when the upgrade action started.
- action string
- The operating system upgrade action.
- id string
- The OCID of the upgrade history entry.
- lifecycleDetails string
- A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
- newGi stringVersion 
- A valid Oracle Grid Infrastructure (GI) software version.
- newOs stringVersion 
- A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- oldGi stringVersion 
- A valid Oracle Grid Infrastructure (GI) software version.
- oldOs stringVersion 
- A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- snapshotRetention numberPeriod In Days 
- The retention period, in days, for the snapshot that allows you to perform a rollback of the upgrade operation. After this number of days passes, you cannot roll back the upgrade.
- state string
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- timeEnded string
- The date and time when the upgrade action completed
- timeStarted string
- The date and time when the upgrade action started.
- action str
- The operating system upgrade action.
- id str
- The OCID of the upgrade history entry.
- lifecycle_details str
- A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
- new_gi_ strversion 
- A valid Oracle Grid Infrastructure (GI) software version.
- new_os_ strversion 
- A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- old_gi_ strversion 
- A valid Oracle Grid Infrastructure (GI) software version.
- old_os_ strversion 
- A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- snapshot_retention_ intperiod_ in_ days 
- The retention period, in days, for the snapshot that allows you to perform a rollback of the upgrade operation. After this number of days passes, you cannot roll back the upgrade.
- state str
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- time_ended str
- The date and time when the upgrade action completed
- time_started str
- The date and time when the upgrade action started.
- action String
- The operating system upgrade action.
- id String
- The OCID of the upgrade history entry.
- lifecycleDetails String
- A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
- newGi StringVersion 
- A valid Oracle Grid Infrastructure (GI) software version.
- newOs StringVersion 
- A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- oldGi StringVersion 
- A valid Oracle Grid Infrastructure (GI) software version.
- oldOs StringVersion 
- A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- snapshotRetention NumberPeriod In Days 
- The retention period, in days, for the snapshot that allows you to perform a rollback of the upgrade operation. After this number of days passes, you cannot roll back the upgrade.
- state String
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- timeEnded String
- The date and time when the upgrade action completed
- timeStarted String
- The date and time when the upgrade action started.
GetDbSystemsUpgradeHistoryEntriesFilter      
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.