oci logo
Oracle Cloud Infrastructure v0.20.0, May 31 23

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

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 = oci_database_database.Test_database.Id,
        UpgradeHistoryEntryId = oci_database_upgrade_history_entry.Test_upgrade_history_entry.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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:            oci_database_database.Test_database.Id,
			UpgradeHistoryEntryId: oci_database_upgrade_history_entry.Test_upgrade_history_entry.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(oci_database_database.test_database().id())
            .upgradeHistoryEntryId(oci_database_upgrade_history_entry.test_upgrade_history_entry().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_database_upgrade_history_entry = oci.Database.get_database_upgrade_history_entry(database_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
    upgrade_history_entry_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDatabaseUpgradeHistoryEntry = oci.Database.getDatabaseUpgradeHistoryEntry({
    databaseId: oci_database_database.test_database.id,
    upgradeHistoryEntryId: oci_database_upgrade_history_entry.test_upgrade_history_entry.id,
});
variables:
  testDatabaseUpgradeHistoryEntry:
    fn::invoke:
      Function: oci:Database:getDatabaseUpgradeHistoryEntry
      Arguments:
        databaseId: ${oci_database_database.test_database.id}
        upgradeHistoryEntryId: ${oci_database_upgrade_history_entry.test_upgrade_history_entry.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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Database/getDatabaseUpgradeHistoryEntry:getDatabaseUpgradeHistoryEntry
  arguments:
    # arguments dictionary

The following arguments are supported:

DatabaseId string

The database OCID.

UpgradeHistoryEntryId string

The database/db system upgrade History OCID.

DatabaseId string

The database OCID.

UpgradeHistoryEntryId string

The database/db system upgrade History OCID.

databaseId String

The database OCID.

upgradeHistoryEntryId String

The database/db system upgrade History OCID.

databaseId string

The database OCID.

upgradeHistoryEntryId string

The database/db system upgrade History OCID.

database_id str

The database OCID.

upgrade_history_entry_id str

The database/db system upgrade History OCID.

databaseId String

The database OCID.

upgradeHistoryEntryId String

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_VERSION to specify a generally-available Oracle Database software version to upgrade the database.
  • Use DB_SOFTWARE_IMAGE to specify a database software image to upgrade the database.
SourceDbHomeId string

The OCID of the Database Home.

State string

Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.

TargetDatabaseSoftwareImageId string

the database software image used for upgrading database.

TargetDbHomeId string

The OCID of the Database Home.

TargetDbVersion string

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.

UpgradeHistoryEntryId string
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_VERSION to specify a generally-available Oracle Database software version to upgrade the database.
  • Use DB_SOFTWARE_IMAGE to specify a database software image to upgrade the database.
SourceDbHomeId string

The OCID of the Database Home.

State string

Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.

TargetDatabaseSoftwareImageId string

the database software image used for upgrading database.

TargetDbHomeId string

The OCID of the Database Home.

TargetDbVersion string

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.

UpgradeHistoryEntryId string
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_VERSION to specify a generally-available Oracle Database software version to upgrade the database.
  • Use DB_SOFTWARE_IMAGE to specify a database software image to upgrade the database.
sourceDbHomeId String

The OCID of the Database Home.

state String

Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.

targetDatabaseSoftwareImageId String

the database software image used for upgrading database.

targetDbHomeId String

The OCID of the Database Home.

targetDbVersion String

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.

upgradeHistoryEntryId String
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_VERSION to specify a generally-available Oracle Database software version to upgrade the database.
  • Use DB_SOFTWARE_IMAGE to specify a database software image to upgrade the database.
sourceDbHomeId string

The OCID of the Database Home.

state string

Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.

targetDatabaseSoftwareImageId string

the database software image used for upgrading database.

targetDbHomeId string

The OCID of the Database Home.

targetDbVersion string

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.

upgradeHistoryEntryId string
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_VERSION to specify a generally-available Oracle Database software version to upgrade the database.
  • Use DB_SOFTWARE_IMAGE to specify a database software image to upgrade the database.
source_db_home_id str

The OCID of the Database Home.

state str

Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.

target_database_software_image_id str

the database software image used for upgrading database.

target_db_home_id str

The OCID of the Database Home.

target_db_version str

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_entry_id str
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_VERSION to specify a generally-available Oracle Database software version to upgrade the database.
  • Use DB_SOFTWARE_IMAGE to specify a database software image to upgrade the database.
sourceDbHomeId String

The OCID of the Database Home.

state String

Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.

targetDatabaseSoftwareImageId String

the database software image used for upgrading database.

targetDbHomeId String

The OCID of the Database Home.

targetDbVersion String

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.

upgradeHistoryEntryId String

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.