Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getDatabaseUpgradeHistoryEntry
Explore with Pulumi AI
This data source provides details about a specific Database Upgrade History Entry resource in Oracle Cloud Infrastructure Database service.
gets the upgrade history for a specified database.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDatabaseUpgradeHistoryEntry = oci.Database.getDatabaseUpgradeHistoryEntry({
    databaseId: testDatabase.id,
    upgradeHistoryEntryId: testUpgradeHistoryEntry.id,
});
import pulumi
import pulumi_oci as oci
test_database_upgrade_history_entry = oci.Database.get_database_upgrade_history_entry(database_id=test_database["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.GetDatabaseUpgradeHistoryEntry(ctx, &database.GetDatabaseUpgradeHistoryEntryArgs{
			DatabaseId:            testDatabase.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 testDatabaseUpgradeHistoryEntry = Oci.Database.GetDatabaseUpgradeHistoryEntry.Invoke(new()
    {
        DatabaseId = testDatabase.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.GetDatabaseUpgradeHistoryEntryArgs;
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 testDatabaseUpgradeHistoryEntry = DatabaseFunctions.getDatabaseUpgradeHistoryEntry(GetDatabaseUpgradeHistoryEntryArgs.builder()
            .databaseId(testDatabase.id())
            .upgradeHistoryEntryId(testUpgradeHistoryEntry.id())
            .build());
    }
}
variables:
  testDatabaseUpgradeHistoryEntry:
    fn::invoke:
      function: oci:Database:getDatabaseUpgradeHistoryEntry
      arguments:
        databaseId: ${testDatabase.id}
        upgradeHistoryEntryId: ${testUpgradeHistoryEntry.id}
Using getDatabaseUpgradeHistoryEntry
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 getDatabaseUpgradeHistoryEntry(args: GetDatabaseUpgradeHistoryEntryArgs, opts?: InvokeOptions): Promise<GetDatabaseUpgradeHistoryEntryResult>
function getDatabaseUpgradeHistoryEntryOutput(args: GetDatabaseUpgradeHistoryEntryOutputArgs, opts?: InvokeOptions): Output<GetDatabaseUpgradeHistoryEntryResult>def get_database_upgrade_history_entry(database_id: Optional[str] = None,
                                       upgrade_history_entry_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetDatabaseUpgradeHistoryEntryResult
def get_database_upgrade_history_entry_output(database_id: Optional[pulumi.Input[str]] = None,
                                       upgrade_history_entry_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseUpgradeHistoryEntryResult]func GetDatabaseUpgradeHistoryEntry(ctx *Context, args *GetDatabaseUpgradeHistoryEntryArgs, opts ...InvokeOption) (*GetDatabaseUpgradeHistoryEntryResult, error)
func GetDatabaseUpgradeHistoryEntryOutput(ctx *Context, args *GetDatabaseUpgradeHistoryEntryOutputArgs, opts ...InvokeOption) GetDatabaseUpgradeHistoryEntryResultOutput> Note: This function is named GetDatabaseUpgradeHistoryEntry in the Go SDK.
public static class GetDatabaseUpgradeHistoryEntry 
{
    public static Task<GetDatabaseUpgradeHistoryEntryResult> InvokeAsync(GetDatabaseUpgradeHistoryEntryArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseUpgradeHistoryEntryResult> Invoke(GetDatabaseUpgradeHistoryEntryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDatabaseUpgradeHistoryEntryResult> getDatabaseUpgradeHistoryEntry(GetDatabaseUpgradeHistoryEntryArgs args, InvokeOptions options)
public static Output<GetDatabaseUpgradeHistoryEntryResult> getDatabaseUpgradeHistoryEntry(GetDatabaseUpgradeHistoryEntryArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getDatabaseUpgradeHistoryEntry:getDatabaseUpgradeHistoryEntry
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DatabaseId string
- The database OCID.
- UpgradeHistory stringEntry Id 
- The database/db system upgrade History OCID.
- DatabaseId string
- The database OCID.
- UpgradeHistory stringEntry Id 
- The database/db system upgrade History OCID.
- databaseId String
- The database OCID.
- upgradeHistory StringEntry Id 
- The database/db system upgrade History OCID.
- databaseId string
- The database OCID.
- upgradeHistory stringEntry Id 
- The database/db system upgrade History OCID.
- database_id str
- The database OCID.
- upgrade_history_ strentry_ id 
- The database/db system upgrade History OCID.
- databaseId String
- The database OCID.
- upgradeHistory StringEntry Id 
- The database/db system upgrade History OCID.
getDatabaseUpgradeHistoryEntry Result
The following output properties are available:
- Action string
- The database upgrade action.
- DatabaseId string
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleDetails string
- Additional information about the current lifecycle state.
- Options string
- Additional upgrade options supported by DBUA(Database Upgrade Assistant). Example: "-upgradeTimezone false -keepEvents"
- Source string
- The source of the Oracle Database software to be used for the upgrade.- Use DB_VERSIONto specify a generally-available Oracle Database software version to upgrade the database.
- Use DB_SOFTWARE_IMAGEto specify a database software image to upgrade the database.
 
- Use 
- SourceDb stringHome Id 
- The OCID of the Database Home.
- State string
- Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- TargetDatabase stringSoftware Image Id 
- the database software image used for upgrading database.
- TargetDb stringHome Id 
- The OCID of the Database Home.
- TargetDb stringVersion 
- A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
- TimeEnded string
- The date and time when the database upgrade ended.
- TimeStarted string
- The date and time when the database upgrade started.
- UpgradeHistory stringEntry Id 
- Action string
- The database upgrade action.
- DatabaseId string
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleDetails string
- Additional information about the current lifecycle state.
- Options string
- Additional upgrade options supported by DBUA(Database Upgrade Assistant). Example: "-upgradeTimezone false -keepEvents"
- Source string
- The source of the Oracle Database software to be used for the upgrade.- Use DB_VERSIONto specify a generally-available Oracle Database software version to upgrade the database.
- Use DB_SOFTWARE_IMAGEto specify a database software image to upgrade the database.
 
- Use 
- SourceDb stringHome Id 
- The OCID of the Database Home.
- State string
- Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- TargetDatabase stringSoftware Image Id 
- the database software image used for upgrading database.
- TargetDb stringHome Id 
- The OCID of the Database Home.
- TargetDb stringVersion 
- A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
- TimeEnded string
- The date and time when the database upgrade ended.
- TimeStarted string
- The date and time when the database upgrade started.
- UpgradeHistory stringEntry Id 
- action String
- The database upgrade action.
- databaseId String
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleDetails String
- Additional information about the current lifecycle state.
- options String
- Additional upgrade options supported by DBUA(Database Upgrade Assistant). Example: "-upgradeTimezone false -keepEvents"
- source String
- The source of the Oracle Database software to be used for the upgrade.- Use DB_VERSIONto specify a generally-available Oracle Database software version to upgrade the database.
- Use DB_SOFTWARE_IMAGEto specify a database software image to upgrade the database.
 
- Use 
- sourceDb StringHome Id 
- The OCID of the Database Home.
- state String
- Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- targetDatabase StringSoftware Image Id 
- the database software image used for upgrading database.
- targetDb StringHome Id 
- The OCID of the Database Home.
- targetDb StringVersion 
- A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
- timeEnded String
- The date and time when the database upgrade ended.
- timeStarted String
- The date and time when the database upgrade started.
- upgradeHistory StringEntry Id 
- action string
- The database upgrade action.
- databaseId string
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycleDetails string
- Additional information about the current lifecycle state.
- options string
- Additional upgrade options supported by DBUA(Database Upgrade Assistant). Example: "-upgradeTimezone false -keepEvents"
- source string
- The source of the Oracle Database software to be used for the upgrade.- Use DB_VERSIONto specify a generally-available Oracle Database software version to upgrade the database.
- Use DB_SOFTWARE_IMAGEto specify a database software image to upgrade the database.
 
- Use 
- sourceDb stringHome Id 
- The OCID of the Database Home.
- state string
- Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- targetDatabase stringSoftware Image Id 
- the database software image used for upgrading database.
- targetDb stringHome Id 
- The OCID of the Database Home.
- targetDb stringVersion 
- A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
- timeEnded string
- The date and time when the database upgrade ended.
- timeStarted string
- The date and time when the database upgrade started.
- upgradeHistory stringEntry Id 
- action str
- The database upgrade action.
- database_id str
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_details str
- Additional information about the current lifecycle state.
- options str
- Additional upgrade options supported by DBUA(Database Upgrade Assistant). Example: "-upgradeTimezone false -keepEvents"
- source str
- The source of the Oracle Database software to be used for the upgrade.- Use DB_VERSIONto specify a generally-available Oracle Database software version to upgrade the database.
- Use DB_SOFTWARE_IMAGEto specify a database software image to upgrade the database.
 
- Use 
- source_db_ strhome_ id 
- The OCID of the Database Home.
- state str
- Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- target_database_ strsoftware_ image_ id 
- the database software image used for upgrading database.
- target_db_ strhome_ id 
- The OCID of the Database Home.
- target_db_ strversion 
- A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
- time_ended str
- The date and time when the database upgrade ended.
- time_started str
- The date and time when the database upgrade started.
- upgrade_history_ strentry_ id 
- action String
- The database upgrade action.
- databaseId String
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleDetails String
- Additional information about the current lifecycle state.
- options String
- Additional upgrade options supported by DBUA(Database Upgrade Assistant). Example: "-upgradeTimezone false -keepEvents"
- source String
- The source of the Oracle Database software to be used for the upgrade.- Use DB_VERSIONto specify a generally-available Oracle Database software version to upgrade the database.
- Use DB_SOFTWARE_IMAGEto specify a database software image to upgrade the database.
 
- Use 
- sourceDb StringHome Id 
- The OCID of the Database Home.
- state String
- Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- targetDatabase StringSoftware Image Id 
- the database software image used for upgrading database.
- targetDb StringHome Id 
- The OCID of the Database Home.
- targetDb StringVersion 
- A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
- timeEnded String
- The date and time when the database upgrade ended.
- timeStarted String
- The date and time when the database upgrade 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.