Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getDatabaseUpgradeHistoryEntry:getDatabaseUpgradeHistoryEntry
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Id string - The database OCID.
- Upgrade
History stringEntry Id - The database/db system upgrade History OCID.
- Database
Id string - The database OCID.
- Upgrade
History stringEntry Id - The database/db system upgrade History OCID.
- database
Id String - The database OCID.
- upgrade
History StringEntry Id - The database/db system upgrade History OCID.
- database
Id string - The database OCID.
- upgrade
History 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.
- database
Id String - The database OCID.
- upgrade
History StringEntry Id - The database/db system upgrade History OCID.
getDatabaseUpgradeHistoryEntry Result
The following output properties are available:
- Action string
- The database upgrade action.
- Database
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details 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.
- Use
- Source
Db stringHome Id - The OCID of the Database Home.
- State string
- Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- Target
Database stringSoftware Image Id - the database software image used for upgrading database.
- Target
Db stringHome Id - The OCID of the Database Home.
- Target
Db stringVersion - A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
- Time
Ended string - The date and time when the database upgrade ended.
- Time
Started string - The date and time when the database upgrade started.
- Upgrade
History stringEntry Id
- Action string
- The database upgrade action.
- Database
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details 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.
- Use
- Source
Db stringHome Id - The OCID of the Database Home.
- State string
- Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- Target
Database stringSoftware Image Id - the database software image used for upgrading database.
- Target
Db stringHome Id - The OCID of the Database Home.
- Target
Db stringVersion - A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
- Time
Ended string - The date and time when the database upgrade ended.
- Time
Started string - The date and time when the database upgrade started.
- Upgrade
History stringEntry Id
- action String
- The database upgrade action.
- database
Id String - id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details 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.
- Use
- source
Db StringHome Id - The OCID of the Database Home.
- state String
- Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- target
Database StringSoftware Image Id - the database software image used for upgrading database.
- target
Db StringHome Id - The OCID of the Database Home.
- target
Db StringVersion - A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
- time
Ended String - The date and time when the database upgrade ended.
- time
Started String - The date and time when the database upgrade started.
- upgrade
History StringEntry Id
- action string
- The database upgrade action.
- database
Id string - id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details 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.
- Use
- source
Db stringHome Id - The OCID of the Database Home.
- state string
- Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- target
Database stringSoftware Image Id - the database software image used for upgrading database.
- target
Db stringHome Id - The OCID of the Database Home.
- target
Db stringVersion - A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
- time
Ended string - The date and time when the database upgrade ended.
- time
Started string - The date and time when the database upgrade started.
- upgrade
History 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_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.
- 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.
- database
Id String - id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details 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.
- Use
- source
Db StringHome Id - The OCID of the Database Home.
- state String
- Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- target
Database StringSoftware Image Id - the database software image used for upgrading database.
- target
Db StringHome Id - The OCID of the Database Home.
- target
Db StringVersion - A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.
- time
Ended String - The date and time when the database upgrade ended.
- time
Started String - The date and time when the database upgrade started.
- upgrade
History StringEntry Id
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.