Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.Database.getDbSystemsUpgradeHistoryEntry
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Db Systems Upgrade History Entry resource in Oracle Cloud Infrastructure Database service.
Gets the details of the specified operating system upgrade operation for the specified DB system.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbSystemsUpgradeHistoryEntry = oci.Database.getDbSystemsUpgradeHistoryEntry({
dbSystemId: testDbSystem.id,
upgradeHistoryEntryId: testUpgradeHistoryEntry.id,
});
import pulumi
import pulumi_oci as oci
test_db_systems_upgrade_history_entry = oci.Database.get_db_systems_upgrade_history_entry(db_system_id=test_db_system["id"],
upgrade_history_entry_id=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.GetDbSystemsUpgradeHistoryEntry(ctx, &database.GetDbSystemsUpgradeHistoryEntryArgs{
DbSystemId: testDbSystem.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 testDbSystemsUpgradeHistoryEntry = Oci.Database.GetDbSystemsUpgradeHistoryEntry.Invoke(new()
{
DbSystemId = testDbSystem.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.GetDbSystemsUpgradeHistoryEntryArgs;
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 testDbSystemsUpgradeHistoryEntry = DatabaseFunctions.getDbSystemsUpgradeHistoryEntry(GetDbSystemsUpgradeHistoryEntryArgs.builder()
.dbSystemId(testDbSystem.id())
.upgradeHistoryEntryId(testUpgradeHistoryEntry.id())
.build());
}
}
variables:
testDbSystemsUpgradeHistoryEntry:
fn::invoke:
Function: oci:Database:getDbSystemsUpgradeHistoryEntry
Arguments:
dbSystemId: ${testDbSystem.id}
upgradeHistoryEntryId: ${testUpgradeHistoryEntry.id}
Using getDbSystemsUpgradeHistoryEntry
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 getDbSystemsUpgradeHistoryEntry(args: GetDbSystemsUpgradeHistoryEntryArgs, opts?: InvokeOptions): Promise<GetDbSystemsUpgradeHistoryEntryResult>
function getDbSystemsUpgradeHistoryEntryOutput(args: GetDbSystemsUpgradeHistoryEntryOutputArgs, opts?: InvokeOptions): Output<GetDbSystemsUpgradeHistoryEntryResult>
def get_db_systems_upgrade_history_entry(db_system_id: Optional[str] = None,
upgrade_history_entry_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbSystemsUpgradeHistoryEntryResult
def get_db_systems_upgrade_history_entry_output(db_system_id: Optional[pulumi.Input[str]] = None,
upgrade_history_entry_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbSystemsUpgradeHistoryEntryResult]
func GetDbSystemsUpgradeHistoryEntry(ctx *Context, args *GetDbSystemsUpgradeHistoryEntryArgs, opts ...InvokeOption) (*GetDbSystemsUpgradeHistoryEntryResult, error)
func GetDbSystemsUpgradeHistoryEntryOutput(ctx *Context, args *GetDbSystemsUpgradeHistoryEntryOutputArgs, opts ...InvokeOption) GetDbSystemsUpgradeHistoryEntryResultOutput
> Note: This function is named GetDbSystemsUpgradeHistoryEntry
in the Go SDK.
public static class GetDbSystemsUpgradeHistoryEntry
{
public static Task<GetDbSystemsUpgradeHistoryEntryResult> InvokeAsync(GetDbSystemsUpgradeHistoryEntryArgs args, InvokeOptions? opts = null)
public static Output<GetDbSystemsUpgradeHistoryEntryResult> Invoke(GetDbSystemsUpgradeHistoryEntryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbSystemsUpgradeHistoryEntryResult> getDbSystemsUpgradeHistoryEntry(GetDbSystemsUpgradeHistoryEntryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getDbSystemsUpgradeHistoryEntry:getDbSystemsUpgradeHistoryEntry
arguments:
# arguments dictionary
The following arguments are supported:
- Db
System stringId - The DB system OCID.
- Upgrade
History stringEntry Id - The database/db system upgrade History OCID.
- Db
System stringId - The DB system OCID.
- Upgrade
History stringEntry Id - The database/db system upgrade History OCID.
- db
System StringId - The DB system OCID.
- upgrade
History StringEntry Id - The database/db system upgrade History OCID.
- db
System stringId - The DB system OCID.
- upgrade
History stringEntry Id - The database/db system upgrade History OCID.
- db_
system_ strid - The DB system OCID.
- upgrade_
history_ strentry_ id - The database/db system upgrade History OCID.
- db
System StringId - The DB system OCID.
- upgrade
History StringEntry Id - The database/db system upgrade History OCID.
getDbSystemsUpgradeHistoryEntry Result
The following output properties are available:
- Action string
- The operating system upgrade action.
- Db
System stringId - Id string
- The provider-assigned unique ID for this managed resource.
- 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
- The current state of the action.
- Time
Ended string - The date and time when the upgrade action completed
- Time
Started string - The date and time when the upgrade action started.
- Upgrade
History stringEntry Id
- Action string
- The operating system upgrade action.
- Db
System stringId - Id string
- The provider-assigned unique ID for this managed resource.
- 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
- The current state of the action.
- Time
Ended string - The date and time when the upgrade action completed
- Time
Started string - The date and time when the upgrade action started.
- Upgrade
History stringEntry Id
- action String
- The operating system upgrade action.
- db
System StringId - id String
- The provider-assigned unique ID for this managed resource.
- 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
- The current state of the action.
- time
Ended String - The date and time when the upgrade action completed
- time
Started String - The date and time when the upgrade action started.
- upgrade
History StringEntry Id
- action string
- The operating system upgrade action.
- db
System stringId - id string
- The provider-assigned unique ID for this managed resource.
- 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
- The current state of the action.
- time
Ended string - The date and time when the upgrade action completed
- time
Started string - The date and time when the upgrade action started.
- upgrade
History stringEntry Id
- action str
- The operating system upgrade action.
- db_
system_ strid - id str
- The provider-assigned unique ID for this managed resource.
- 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
- The current state of the action.
- time_
ended str - The date and time when the upgrade action completed
- time_
started str - The date and time when the upgrade action started.
- upgrade_
history_ strentry_ id
- action String
- The operating system upgrade action.
- db
System StringId - id String
- The provider-assigned unique ID for this managed resource.
- 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
- The current state of the action.
- time
Ended String - The date and time when the upgrade action completed
- time
Started String - The date and time when the upgrade action 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi