Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Database.getDbSystemsUpgradeHistoryEntries
Explore with Pulumi AI
This data source provides the list of Db Systems Upgrade History Entries in Oracle Cloud Infrastructure Database service.
Gets the history of the upgrade actions performed on the specified DB system.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbSystemsUpgradeHistoryEntries = oci.Database.getDbSystemsUpgradeHistoryEntries({
dbSystemId: testDbSystem.id,
state: dbSystemsUpgradeHistoryEntryState,
upgradeAction: dbSystemsUpgradeHistoryEntryUpgradeAction,
});
import pulumi
import pulumi_oci as oci
test_db_systems_upgrade_history_entries = oci.Database.get_db_systems_upgrade_history_entries(db_system_id=test_db_system["id"],
state=db_systems_upgrade_history_entry_state,
upgrade_action=db_systems_upgrade_history_entry_upgrade_action)
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.GetDbSystemsUpgradeHistoryEntries(ctx, &database.GetDbSystemsUpgradeHistoryEntriesArgs{
DbSystemId: testDbSystem.Id,
State: pulumi.StringRef(dbSystemsUpgradeHistoryEntryState),
UpgradeAction: pulumi.StringRef(dbSystemsUpgradeHistoryEntryUpgradeAction),
}, 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 testDbSystemsUpgradeHistoryEntries = Oci.Database.GetDbSystemsUpgradeHistoryEntries.Invoke(new()
{
DbSystemId = testDbSystem.Id,
State = dbSystemsUpgradeHistoryEntryState,
UpgradeAction = dbSystemsUpgradeHistoryEntryUpgradeAction,
});
});
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.GetDbSystemsUpgradeHistoryEntriesArgs;
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 testDbSystemsUpgradeHistoryEntries = DatabaseFunctions.getDbSystemsUpgradeHistoryEntries(GetDbSystemsUpgradeHistoryEntriesArgs.builder()
.dbSystemId(testDbSystem.id())
.state(dbSystemsUpgradeHistoryEntryState)
.upgradeAction(dbSystemsUpgradeHistoryEntryUpgradeAction)
.build());
}
}
variables:
testDbSystemsUpgradeHistoryEntries:
fn::invoke:
Function: oci:Database:getDbSystemsUpgradeHistoryEntries
Arguments:
dbSystemId: ${testDbSystem.id}
state: ${dbSystemsUpgradeHistoryEntryState}
upgradeAction: ${dbSystemsUpgradeHistoryEntryUpgradeAction}
Using getDbSystemsUpgradeHistoryEntries
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 getDbSystemsUpgradeHistoryEntries(args: GetDbSystemsUpgradeHistoryEntriesArgs, opts?: InvokeOptions): Promise<GetDbSystemsUpgradeHistoryEntriesResult>
function getDbSystemsUpgradeHistoryEntriesOutput(args: GetDbSystemsUpgradeHistoryEntriesOutputArgs, opts?: InvokeOptions): Output<GetDbSystemsUpgradeHistoryEntriesResult>
def get_db_systems_upgrade_history_entries(db_system_id: Optional[str] = None,
filters: Optional[Sequence[_database.GetDbSystemsUpgradeHistoryEntriesFilter]] = None,
state: Optional[str] = None,
upgrade_action: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbSystemsUpgradeHistoryEntriesResult
def get_db_systems_upgrade_history_entries_output(db_system_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetDbSystemsUpgradeHistoryEntriesFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
upgrade_action: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbSystemsUpgradeHistoryEntriesResult]
func GetDbSystemsUpgradeHistoryEntries(ctx *Context, args *GetDbSystemsUpgradeHistoryEntriesArgs, opts ...InvokeOption) (*GetDbSystemsUpgradeHistoryEntriesResult, error)
func GetDbSystemsUpgradeHistoryEntriesOutput(ctx *Context, args *GetDbSystemsUpgradeHistoryEntriesOutputArgs, opts ...InvokeOption) GetDbSystemsUpgradeHistoryEntriesResultOutput
> Note: This function is named GetDbSystemsUpgradeHistoryEntries
in the Go SDK.
public static class GetDbSystemsUpgradeHistoryEntries
{
public static Task<GetDbSystemsUpgradeHistoryEntriesResult> InvokeAsync(GetDbSystemsUpgradeHistoryEntriesArgs args, InvokeOptions? opts = null)
public static Output<GetDbSystemsUpgradeHistoryEntriesResult> Invoke(GetDbSystemsUpgradeHistoryEntriesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbSystemsUpgradeHistoryEntriesResult> getDbSystemsUpgradeHistoryEntries(GetDbSystemsUpgradeHistoryEntriesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getDbSystemsUpgradeHistoryEntries:getDbSystemsUpgradeHistoryEntries
arguments:
# arguments dictionary
The following arguments are supported:
- Db
System stringId - The DB system OCID.
- Filters
List<Get
Db Systems Upgrade History Entries Filter> - State string
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- Upgrade
Action string - A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- Db
System stringId - The DB system OCID.
- Filters
[]Get
Db Systems Upgrade History Entries Filter - State string
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- Upgrade
Action string - A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- db
System StringId - The DB system OCID.
- filters
List<Get
Db Systems Upgrade History Entries Filter> - state String
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- upgrade
Action String - A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- db
System stringId - The DB system OCID.
- filters
Get
Db Systems Upgrade History Entries Filter[] - state string
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- upgrade
Action string - A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- db_
system_ strid - The DB system OCID.
- filters
Sequence[database.
Get Db Systems Upgrade History Entries Filter] - state str
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- upgrade_
action str - A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
- db
System StringId - The DB system OCID.
- filters List<Property Map>
- state String
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- upgrade
Action String - A filter to return only upgradeHistoryEntries that match the specified Upgrade Action.
getDbSystemsUpgradeHistoryEntries Result
The following output properties are available:
- Db
System stringId - Db
System List<GetUpgrade History Entries Db Systems Upgrade History Entries Db System Upgrade History Entry> - The list of db_system_upgrade_history_entries.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Db Systems Upgrade History Entries Filter> - State string
- The current state of the action.
- Upgrade
Action string
- Db
System stringId - Db
System []GetUpgrade History Entries Db Systems Upgrade History Entries Db System Upgrade History Entry - The list of db_system_upgrade_history_entries.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Db Systems Upgrade History Entries Filter - State string
- The current state of the action.
- Upgrade
Action string
- db
System StringId - db
System List<GetUpgrade History Entries Db Systems Upgrade History Entries Db System Upgrade History Entry> - The list of db_system_upgrade_history_entries.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Db Systems Upgrade History Entries Filter> - state String
- The current state of the action.
- upgrade
Action String
- db
System stringId - db
System GetUpgrade History Entries Db Systems Upgrade History Entries Db System Upgrade History Entry[] - The list of db_system_upgrade_history_entries.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Db Systems Upgrade History Entries Filter[] - state string
- The current state of the action.
- upgrade
Action string
- db_
system_ strid - db_
system_ Sequence[database.upgrade_ history_ entries Get Db Systems Upgrade History Entries Db System Upgrade History Entry] - The list of db_system_upgrade_history_entries.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[database.
Get Db Systems Upgrade History Entries Filter] - state str
- The current state of the action.
- upgrade_
action str
- db
System StringId - db
System List<Property Map>Upgrade History Entries - The list of db_system_upgrade_history_entries.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- state String
- The current state of the action.
- upgrade
Action String
Supporting Types
GetDbSystemsUpgradeHistoryEntriesDbSystemUpgradeHistoryEntry
- Action string
- The operating system upgrade action.
- Id string
- The OCID of the upgrade history entry.
- Lifecycle
Details string - A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
- New
Gi stringVersion - A valid Oracle Grid Infrastructure (GI) software version.
- New
Os stringVersion - A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- Old
Gi stringVersion - A valid Oracle Grid Infrastructure (GI) software version.
- Old
Os stringVersion - 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 string
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- Time
Ended string - The date and time when the upgrade action completed
- Time
Started string - The date and time when the upgrade action started.
- Action string
- The operating system upgrade action.
- Id string
- The OCID of the upgrade history entry.
- Lifecycle
Details string - A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
- New
Gi stringVersion - A valid Oracle Grid Infrastructure (GI) software version.
- New
Os stringVersion - A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- Old
Gi stringVersion - A valid Oracle Grid Infrastructure (GI) software version.
- Old
Os stringVersion - 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 string
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- Time
Ended string - The date and time when the upgrade action completed
- Time
Started string - The date and time when the upgrade action started.
- action String
- The operating system upgrade action.
- id String
- The OCID of the upgrade history entry.
- lifecycle
Details String - A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
- new
Gi StringVersion - A valid Oracle Grid Infrastructure (GI) software version.
- new
Os StringVersion - A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- old
Gi StringVersion - A valid Oracle Grid Infrastructure (GI) software version.
- old
Os StringVersion - A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- snapshot
Retention 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
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- time
Ended String - The date and time when the upgrade action completed
- time
Started String - The date and time when the upgrade action started.
- action string
- The operating system upgrade action.
- id string
- The OCID of the upgrade history entry.
- lifecycle
Details string - A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
- new
Gi stringVersion - A valid Oracle Grid Infrastructure (GI) software version.
- new
Os stringVersion - A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- old
Gi stringVersion - A valid Oracle Grid Infrastructure (GI) software version.
- old
Os stringVersion - A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- snapshot
Retention 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
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- time
Ended string - The date and time when the upgrade action completed
- time
Started string - The date and time when the upgrade action started.
- action str
- The operating system upgrade action.
- id str
- The OCID of the upgrade history entry.
- 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
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- time_
ended str - The date and time when the upgrade action completed
- time_
started str - The date and time when the upgrade action started.
- action String
- The operating system upgrade action.
- id String
- The OCID of the upgrade history entry.
- lifecycle
Details String - A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
- new
Gi StringVersion - A valid Oracle Grid Infrastructure (GI) software version.
- new
Os StringVersion - A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- old
Gi StringVersion - A valid Oracle Grid Infrastructure (GI) software version.
- old
Os StringVersion - A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
- snapshot
Retention 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
- A filter to return only upgrade history entries that match the given lifecycle state exactly.
- time
Ended String - The date and time when the upgrade action completed
- time
Started String - The date and time when the upgrade action started.
GetDbSystemsUpgradeHistoryEntriesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.