oci.Database.getDatabaseUpgradeHistoryEntries
This data source provides the list of Database Upgrade History Entries in Oracle Cloud Infrastructure Database service.
Gets the upgrade history for a specified database in a bare metal or virtual machine DB system.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDatabaseUpgradeHistoryEntries = Oci.Database.GetDatabaseUpgradeHistoryEntries.Invoke(new()
{
DatabaseId = oci_database_database.Test_database.Id,
State = @var.Database_upgrade_history_entry_state,
UpgradeAction = @var.Database_upgrade_history_entry_upgrade_action,
});
});
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.GetDatabaseUpgradeHistoryEntries(ctx, &database.GetDatabaseUpgradeHistoryEntriesArgs{
DatabaseId: oci_database_database.Test_database.Id,
State: pulumi.StringRef(_var.Database_upgrade_history_entry_state),
UpgradeAction: pulumi.StringRef(_var.Database_upgrade_history_entry_upgrade_action),
}, 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.GetDatabaseUpgradeHistoryEntriesArgs;
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 testDatabaseUpgradeHistoryEntries = DatabaseFunctions.getDatabaseUpgradeHistoryEntries(GetDatabaseUpgradeHistoryEntriesArgs.builder()
.databaseId(oci_database_database.test_database().id())
.state(var_.database_upgrade_history_entry_state())
.upgradeAction(var_.database_upgrade_history_entry_upgrade_action())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_database_upgrade_history_entries = oci.Database.get_database_upgrade_history_entries(database_id=oci_database_database["test_database"]["id"],
state=var["database_upgrade_history_entry_state"],
upgrade_action=var["database_upgrade_history_entry_upgrade_action"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDatabaseUpgradeHistoryEntries = oci.Database.getDatabaseUpgradeHistoryEntries({
databaseId: oci_database_database.test_database.id,
state: _var.database_upgrade_history_entry_state,
upgradeAction: _var.database_upgrade_history_entry_upgrade_action,
});
variables:
testDatabaseUpgradeHistoryEntries:
fn::invoke:
Function: oci:Database:getDatabaseUpgradeHistoryEntries
Arguments:
databaseId: ${oci_database_database.test_database.id}
state: ${var.database_upgrade_history_entry_state}
upgradeAction: ${var.database_upgrade_history_entry_upgrade_action}
Using getDatabaseUpgradeHistoryEntries
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 getDatabaseUpgradeHistoryEntries(args: GetDatabaseUpgradeHistoryEntriesArgs, opts?: InvokeOptions): Promise<GetDatabaseUpgradeHistoryEntriesResult>
function getDatabaseUpgradeHistoryEntriesOutput(args: GetDatabaseUpgradeHistoryEntriesOutputArgs, opts?: InvokeOptions): Output<GetDatabaseUpgradeHistoryEntriesResult>
def get_database_upgrade_history_entries(database_id: Optional[str] = None,
filters: Optional[Sequence[_database.GetDatabaseUpgradeHistoryEntriesFilter]] = None,
state: Optional[str] = None,
upgrade_action: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDatabaseUpgradeHistoryEntriesResult
def get_database_upgrade_history_entries_output(database_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetDatabaseUpgradeHistoryEntriesFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
upgrade_action: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseUpgradeHistoryEntriesResult]
func GetDatabaseUpgradeHistoryEntries(ctx *Context, args *GetDatabaseUpgradeHistoryEntriesArgs, opts ...InvokeOption) (*GetDatabaseUpgradeHistoryEntriesResult, error)
func GetDatabaseUpgradeHistoryEntriesOutput(ctx *Context, args *GetDatabaseUpgradeHistoryEntriesOutputArgs, opts ...InvokeOption) GetDatabaseUpgradeHistoryEntriesResultOutput
> Note: This function is named GetDatabaseUpgradeHistoryEntries
in the Go SDK.
public static class GetDatabaseUpgradeHistoryEntries
{
public static Task<GetDatabaseUpgradeHistoryEntriesResult> InvokeAsync(GetDatabaseUpgradeHistoryEntriesArgs args, InvokeOptions? opts = null)
public static Output<GetDatabaseUpgradeHistoryEntriesResult> Invoke(GetDatabaseUpgradeHistoryEntriesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatabaseUpgradeHistoryEntriesResult> getDatabaseUpgradeHistoryEntries(GetDatabaseUpgradeHistoryEntriesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getDatabaseUpgradeHistoryEntries:getDatabaseUpgradeHistoryEntries
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Id string The database OCID.
- Filters
List<Get
Database Upgrade History Entries Filter> - State string
A filter to return only upgradeHistoryEntries that match the given lifecycle state exactly.
- Upgrade
Action string A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- Database
Id string The database OCID.
- Filters
[]Get
Database Upgrade History Entries Filter - State string
A filter to return only upgradeHistoryEntries that match the given lifecycle state exactly.
- Upgrade
Action string A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- database
Id String The database OCID.
- filters
List<Get
Upgrade History Entries Filter> - state String
A filter to return only upgradeHistoryEntries that match the given lifecycle state exactly.
- upgrade
Action String A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- database
Id string The database OCID.
- filters
Get
Database Upgrade History Entries Filter[] - state string
A filter to return only upgradeHistoryEntries that match the given lifecycle state exactly.
- upgrade
Action string A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- database_
id str The database OCID.
- filters
Get
Database Upgrade History Entries Filter] - state str
A filter to return only upgradeHistoryEntries that match the given lifecycle state exactly.
- upgrade_
action str A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- database
Id String The database OCID.
- filters List<Property Map>
- state String
A filter to return only upgradeHistoryEntries that match the given lifecycle state exactly.
- upgrade
Action String A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
getDatabaseUpgradeHistoryEntries Result
The following output properties are available:
- Database
Id string - Database
Upgrade List<GetHistory Entries Database Upgrade History Entries Database Upgrade History Entry> The list of database_upgrade_history_entries.
- Id string
The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Database Upgrade History Entries Filter> - State string
Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- Upgrade
Action string
- Database
Id string - Database
Upgrade []GetHistory Entries Database Upgrade History Entries Database Upgrade History Entry The list of database_upgrade_history_entries.
- Id string
The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Database Upgrade History Entries Filter - State string
Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- Upgrade
Action string
- database
Id String - database
Upgrade List<GetHistory Entries Upgrade History Entries Upgrade History Entry> The list of database_upgrade_history_entries.
- id String
The provider-assigned unique ID for this managed resource.
- filters
List<Get
Upgrade History Entries Filter> - state String
Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- upgrade
Action String
- database
Id string - database
Upgrade GetHistory Entries Database Upgrade History Entries Database Upgrade History Entry[] The list of database_upgrade_history_entries.
- id string
The provider-assigned unique ID for this managed resource.
- filters
Get
Database Upgrade History Entries Filter[] - state string
Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- upgrade
Action string
- database_
id str - database_
upgrade_ Gethistory_ entries Database Upgrade History Entries Database Upgrade History Entry] The list of database_upgrade_history_entries.
- id str
The provider-assigned unique ID for this managed resource.
- filters
Get
Database Upgrade History Entries Filter] - state str
Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- upgrade_
action str
- database
Id String - database
Upgrade List<Property Map>History Entries The list of database_upgrade_history_entries.
- id String
The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- state String
Status of database upgrade history SUCCEEDED|IN_PROGRESS|FAILED.
- upgrade
Action String
Supporting Types
GetDatabaseUpgradeHistoryEntriesDatabaseUpgradeHistoryEntry
- Action string
The database upgrade action.
- Id string
The OCID of the database upgrade history.
- 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
A filter to return only upgradeHistoryEntries that match the given lifecycle state exactly.
- 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. To get 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.
- Action string
The database upgrade action.
- Id string
The OCID of the database upgrade history.
- 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
A filter to return only upgradeHistoryEntries that match the given lifecycle state exactly.
- 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. To get 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.
- action String
The database upgrade action.
- id String
The OCID of the database upgrade history.
- 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
A filter to return only upgradeHistoryEntries that match the given lifecycle state exactly.
- 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. To get 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.
- action string
The database upgrade action.
- id string
The OCID of the database upgrade history.
- 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
A filter to return only upgradeHistoryEntries that match the given lifecycle state exactly.
- 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. To get 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.
- action str
The database upgrade action.
- id str
The OCID of the database upgrade history.
- 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
A filter to return only upgradeHistoryEntries that match the given lifecycle state exactly.
- 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. To get 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.
- action String
The database upgrade action.
- id String
The OCID of the database upgrade history.
- 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
A filter to return only upgradeHistoryEntries that match the given lifecycle state exactly.
- 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. To get 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.
GetDatabaseUpgradeHistoryEntriesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.