Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getDbSystemsUpgradeHistoryEntry
Explore with Pulumi AI
This data source provides details about a specific Db Systems Upgrade History Entry resource in Oracle Cloud Infrastructure Database service.
Gets the details of the specified operating system upgrade operation for the specified DB system.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbSystemsUpgradeHistoryEntry = oci.Database.getDbSystemsUpgradeHistoryEntry({
    dbSystemId: testDbSystem.id,
    upgradeHistoryEntryId: testUpgradeHistoryEntry.id,
});
import pulumi
import pulumi_oci as oci
test_db_systems_upgrade_history_entry = oci.Database.get_db_systems_upgrade_history_entry(db_system_id=test_db_system["id"],
    upgrade_history_entry_id=test_upgrade_history_entry["id"])
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.GetDbSystemsUpgradeHistoryEntry(ctx, &database.GetDbSystemsUpgradeHistoryEntryArgs{
			DbSystemId:            testDbSystem.Id,
			UpgradeHistoryEntryId: testUpgradeHistoryEntry.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 testDbSystemsUpgradeHistoryEntry = Oci.Database.GetDbSystemsUpgradeHistoryEntry.Invoke(new()
    {
        DbSystemId = testDbSystem.Id,
        UpgradeHistoryEntryId = testUpgradeHistoryEntry.Id,
    });
});
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.GetDbSystemsUpgradeHistoryEntryArgs;
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 testDbSystemsUpgradeHistoryEntry = DatabaseFunctions.getDbSystemsUpgradeHistoryEntry(GetDbSystemsUpgradeHistoryEntryArgs.builder()
            .dbSystemId(testDbSystem.id())
            .upgradeHistoryEntryId(testUpgradeHistoryEntry.id())
            .build());
    }
}
variables:
  testDbSystemsUpgradeHistoryEntry:
    fn::invoke:
      function: oci:Database:getDbSystemsUpgradeHistoryEntry
      arguments:
        dbSystemId: ${testDbSystem.id}
        upgradeHistoryEntryId: ${testUpgradeHistoryEntry.id}
Using getDbSystemsUpgradeHistoryEntry
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 getDbSystemsUpgradeHistoryEntry(args: GetDbSystemsUpgradeHistoryEntryArgs, opts?: InvokeOptions): Promise<GetDbSystemsUpgradeHistoryEntryResult>
function getDbSystemsUpgradeHistoryEntryOutput(args: GetDbSystemsUpgradeHistoryEntryOutputArgs, opts?: InvokeOptions): Output<GetDbSystemsUpgradeHistoryEntryResult>def get_db_systems_upgrade_history_entry(db_system_id: Optional[str] = None,
                                         upgrade_history_entry_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetDbSystemsUpgradeHistoryEntryResult
def get_db_systems_upgrade_history_entry_output(db_system_id: Optional[pulumi.Input[str]] = None,
                                         upgrade_history_entry_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetDbSystemsUpgradeHistoryEntryResult]func GetDbSystemsUpgradeHistoryEntry(ctx *Context, args *GetDbSystemsUpgradeHistoryEntryArgs, opts ...InvokeOption) (*GetDbSystemsUpgradeHistoryEntryResult, error)
func GetDbSystemsUpgradeHistoryEntryOutput(ctx *Context, args *GetDbSystemsUpgradeHistoryEntryOutputArgs, opts ...InvokeOption) GetDbSystemsUpgradeHistoryEntryResultOutput> Note: This function is named GetDbSystemsUpgradeHistoryEntry in the Go SDK.
public static class GetDbSystemsUpgradeHistoryEntry 
{
    public static Task<GetDbSystemsUpgradeHistoryEntryResult> InvokeAsync(GetDbSystemsUpgradeHistoryEntryArgs args, InvokeOptions? opts = null)
    public static Output<GetDbSystemsUpgradeHistoryEntryResult> Invoke(GetDbSystemsUpgradeHistoryEntryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbSystemsUpgradeHistoryEntryResult> getDbSystemsUpgradeHistoryEntry(GetDbSystemsUpgradeHistoryEntryArgs args, InvokeOptions options)
public static Output<GetDbSystemsUpgradeHistoryEntryResult> getDbSystemsUpgradeHistoryEntry(GetDbSystemsUpgradeHistoryEntryArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getDbSystemsUpgradeHistoryEntry:getDbSystemsUpgradeHistoryEntry
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DbSystem stringId 
- The DB system OCID.
- UpgradeHistory stringEntry Id 
- The database/db system upgrade History OCID.
- DbSystem stringId 
- The DB system OCID.
- UpgradeHistory stringEntry Id 
- The database/db system upgrade History OCID.
- dbSystem StringId 
- The DB system OCID.
- upgradeHistory StringEntry Id 
- The database/db system upgrade History OCID.
- dbSystem stringId 
- The DB system OCID.
- upgradeHistory stringEntry Id 
- The database/db system upgrade History OCID.
- db_system_ strid 
- The DB system OCID.
- upgrade_history_ strentry_ id 
- The database/db system upgrade History OCID.
- dbSystem StringId 
- The DB system OCID.
- upgradeHistory StringEntry Id 
- The database/db system upgrade History OCID.
getDbSystemsUpgradeHistoryEntry Result
The following output properties are available:
- Action string
- The operating system upgrade action.
- DbSystem stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
- The current state of the action.
- TimeEnded string
- The date and time when the upgrade action completed
- TimeStarted string
- The date and time when the upgrade action started.
- UpgradeHistory stringEntry Id 
- Action string
- The operating system upgrade action.
- DbSystem stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
- The current state of the action.
- TimeEnded string
- The date and time when the upgrade action completed
- TimeStarted string
- The date and time when the upgrade action started.
- UpgradeHistory stringEntry Id 
- action String
- The operating system upgrade action.
- dbSystem StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- 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
- The current state of the action.
- timeEnded String
- The date and time when the upgrade action completed
- timeStarted String
- The date and time when the upgrade action started.
- upgradeHistory StringEntry Id 
- action string
- The operating system upgrade action.
- dbSystem stringId 
- id string
- The provider-assigned unique ID for this managed resource.
- 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
- The current state of the action.
- timeEnded string
- The date and time when the upgrade action completed
- timeStarted string
- The date and time when the upgrade action started.
- upgradeHistory stringEntry Id 
- action str
- The operating system upgrade action.
- db_system_ strid 
- id str
- The provider-assigned unique ID for this managed resource.
- 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
- The current state of the action.
- time_ended str
- The date and time when the upgrade action completed
- time_started str
- The date and time when the upgrade action started.
- upgrade_history_ strentry_ id 
- action String
- The operating system upgrade action.
- dbSystem StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- 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
- The current state of the action.
- timeEnded String
- The date and time when the upgrade action completed
- timeStarted String
- The date and time when the upgrade action started.
- upgradeHistory StringEntry Id 
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.