1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDbSystemsUpgradeHistoryEntry
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Database.getDbSystemsUpgradeHistoryEntry

Explore with Pulumi AI

oci logo
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:

    DbSystemId string
    The DB system OCID.
    UpgradeHistoryEntryId string
    The database/db system upgrade History OCID.
    DbSystemId string
    The DB system OCID.
    UpgradeHistoryEntryId string
    The database/db system upgrade History OCID.
    dbSystemId String
    The DB system OCID.
    upgradeHistoryEntryId String
    The database/db system upgrade History OCID.
    dbSystemId string
    The DB system OCID.
    upgradeHistoryEntryId string
    The database/db system upgrade History OCID.
    db_system_id str
    The DB system OCID.
    upgrade_history_entry_id str
    The database/db system upgrade History OCID.
    dbSystemId String
    The DB system OCID.
    upgradeHistoryEntryId String
    The database/db system upgrade History OCID.

    getDbSystemsUpgradeHistoryEntry Result

    The following output properties are available:

    Action string
    The operating system upgrade action.
    DbSystemId string
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
    NewGiVersion string
    A valid Oracle Grid Infrastructure (GI) software version.
    NewOsVersion string
    A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
    OldGiVersion string
    A valid Oracle Grid Infrastructure (GI) software version.
    OldOsVersion string
    A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
    SnapshotRetentionPeriodInDays int
    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.
    TimeEnded string
    The date and time when the upgrade action completed
    TimeStarted string
    The date and time when the upgrade action started.
    UpgradeHistoryEntryId string
    Action string
    The operating system upgrade action.
    DbSystemId string
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
    NewGiVersion string
    A valid Oracle Grid Infrastructure (GI) software version.
    NewOsVersion string
    A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
    OldGiVersion string
    A valid Oracle Grid Infrastructure (GI) software version.
    OldOsVersion string
    A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
    SnapshotRetentionPeriodInDays int
    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.
    TimeEnded string
    The date and time when the upgrade action completed
    TimeStarted string
    The date and time when the upgrade action started.
    UpgradeHistoryEntryId string
    action String
    The operating system upgrade action.
    dbSystemId String
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
    newGiVersion String
    A valid Oracle Grid Infrastructure (GI) software version.
    newOsVersion String
    A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
    oldGiVersion String
    A valid Oracle Grid Infrastructure (GI) software version.
    oldOsVersion String
    A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
    snapshotRetentionPeriodInDays Integer
    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.
    timeEnded String
    The date and time when the upgrade action completed
    timeStarted String
    The date and time when the upgrade action started.
    upgradeHistoryEntryId String
    action string
    The operating system upgrade action.
    dbSystemId string
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
    newGiVersion string
    A valid Oracle Grid Infrastructure (GI) software version.
    newOsVersion string
    A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
    oldGiVersion string
    A valid Oracle Grid Infrastructure (GI) software version.
    oldOsVersion string
    A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
    snapshotRetentionPeriodInDays number
    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.
    timeEnded string
    The date and time when the upgrade action completed
    timeStarted string
    The date and time when the upgrade action started.
    upgradeHistoryEntryId string
    action str
    The operating system upgrade action.
    db_system_id str
    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_version str
    A valid Oracle Grid Infrastructure (GI) software version.
    new_os_version str
    A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
    old_gi_version str
    A valid Oracle Grid Infrastructure (GI) software version.
    old_os_version str
    A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
    snapshot_retention_period_in_days int
    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_entry_id str
    action String
    The operating system upgrade action.
    dbSystemId String
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
    newGiVersion String
    A valid Oracle Grid Infrastructure (GI) software version.
    newOsVersion String
    A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
    oldGiVersion String
    A valid Oracle Grid Infrastructure (GI) software version.
    oldOsVersion String
    A valid Oracle Software (OS) version eg. Oracle Linux Server release 8
    snapshotRetentionPeriodInDays Number
    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.
    timeEnded String
    The date and time when the upgrade action completed
    timeStarted String
    The date and time when the upgrade action 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.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi