1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDbSystemOsPatchHistoryEntry
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.2.0
published on Friday, Mar 6, 2026 by Pulumi

    This data source provides details about a specific Db System Os Patch History Entry resource in Oracle Cloud Infrastructure Database service.

    Gets the details of the specified OS patch action for the specified DB system.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDbSystemOsPatchHistoryEntry = oci.Database.getDbSystemOsPatchHistoryEntry({
        dbSystemId: testDbSystem.id,
        osPatchHistoryEntryId: testOsPatchHistoryEntry.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_db_system_os_patch_history_entry = oci.Database.get_db_system_os_patch_history_entry(db_system_id=test_db_system["id"],
        os_patch_history_entry_id=test_os_patch_history_entry["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := database.GetDbSystemOsPatchHistoryEntry(ctx, &database.GetDbSystemOsPatchHistoryEntryArgs{
    			DbSystemId:            testDbSystem.Id,
    			OsPatchHistoryEntryId: testOsPatchHistoryEntry.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 testDbSystemOsPatchHistoryEntry = Oci.Database.GetDbSystemOsPatchHistoryEntry.Invoke(new()
        {
            DbSystemId = testDbSystem.Id,
            OsPatchHistoryEntryId = testOsPatchHistoryEntry.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.GetDbSystemOsPatchHistoryEntryArgs;
    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 testDbSystemOsPatchHistoryEntry = DatabaseFunctions.getDbSystemOsPatchHistoryEntry(GetDbSystemOsPatchHistoryEntryArgs.builder()
                .dbSystemId(testDbSystem.id())
                .osPatchHistoryEntryId(testOsPatchHistoryEntry.id())
                .build());
    
        }
    }
    
    variables:
      testDbSystemOsPatchHistoryEntry:
        fn::invoke:
          function: oci:Database:getDbSystemOsPatchHistoryEntry
          arguments:
            dbSystemId: ${testDbSystem.id}
            osPatchHistoryEntryId: ${testOsPatchHistoryEntry.id}
    

    Using getDbSystemOsPatchHistoryEntry

    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 getDbSystemOsPatchHistoryEntry(args: GetDbSystemOsPatchHistoryEntryArgs, opts?: InvokeOptions): Promise<GetDbSystemOsPatchHistoryEntryResult>
    function getDbSystemOsPatchHistoryEntryOutput(args: GetDbSystemOsPatchHistoryEntryOutputArgs, opts?: InvokeOptions): Output<GetDbSystemOsPatchHistoryEntryResult>
    def get_db_system_os_patch_history_entry(db_system_id: Optional[str] = None,
                                             os_patch_history_entry_id: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetDbSystemOsPatchHistoryEntryResult
    def get_db_system_os_patch_history_entry_output(db_system_id: Optional[pulumi.Input[str]] = None,
                                             os_patch_history_entry_id: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetDbSystemOsPatchHistoryEntryResult]
    func GetDbSystemOsPatchHistoryEntry(ctx *Context, args *GetDbSystemOsPatchHistoryEntryArgs, opts ...InvokeOption) (*GetDbSystemOsPatchHistoryEntryResult, error)
    func GetDbSystemOsPatchHistoryEntryOutput(ctx *Context, args *GetDbSystemOsPatchHistoryEntryOutputArgs, opts ...InvokeOption) GetDbSystemOsPatchHistoryEntryResultOutput

    > Note: This function is named GetDbSystemOsPatchHistoryEntry in the Go SDK.

    public static class GetDbSystemOsPatchHistoryEntry 
    {
        public static Task<GetDbSystemOsPatchHistoryEntryResult> InvokeAsync(GetDbSystemOsPatchHistoryEntryArgs args, InvokeOptions? opts = null)
        public static Output<GetDbSystemOsPatchHistoryEntryResult> Invoke(GetDbSystemOsPatchHistoryEntryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbSystemOsPatchHistoryEntryResult> getDbSystemOsPatchHistoryEntry(GetDbSystemOsPatchHistoryEntryArgs args, InvokeOptions options)
    public static Output<GetDbSystemOsPatchHistoryEntryResult> getDbSystemOsPatchHistoryEntry(GetDbSystemOsPatchHistoryEntryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Database/getDbSystemOsPatchHistoryEntry:getDbSystemOsPatchHistoryEntry
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DbSystemId string
    The DB system OCID.
    OsPatchHistoryEntryId string
    The OCID of the patch history entry.
    DbSystemId string
    The DB system OCID.
    OsPatchHistoryEntryId string
    The OCID of the patch history entry.
    dbSystemId String
    The DB system OCID.
    osPatchHistoryEntryId String
    The OCID of the patch history entry.
    dbSystemId string
    The DB system OCID.
    osPatchHistoryEntryId string
    The OCID of the patch history entry.
    db_system_id str
    The DB system OCID.
    os_patch_history_entry_id str
    The OCID of the patch history entry.
    dbSystemId String
    The DB system OCID.
    osPatchHistoryEntryId String
    The OCID of the patch history entry.

    getDbSystemOsPatchHistoryEntry Result

    The following output properties are available:

    Action string
    The action being performed or was completed.
    DbSystemId string
    The OCID of the DB system.
    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.
    OsPatchDetails List<GetDbSystemOsPatchHistoryEntryOsPatchDetail>
    Results of OS patch details for a DB System.
    OsPatchHistoryEntryId string
    State string
    The current state of the action.
    TimeEnded string
    The date and time when the patch action completed
    TimeStarted string
    The date and time when the patch action started.
    Action string
    The action being performed or was completed.
    DbSystemId string
    The OCID of the DB system.
    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.
    OsPatchDetails []GetDbSystemOsPatchHistoryEntryOsPatchDetail
    Results of OS patch details for a DB System.
    OsPatchHistoryEntryId string
    State string
    The current state of the action.
    TimeEnded string
    The date and time when the patch action completed
    TimeStarted string
    The date and time when the patch action started.
    action String
    The action being performed or was completed.
    dbSystemId String
    The OCID of the DB system.
    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.
    osPatchDetails List<GetDbSystemOsPatchHistoryEntryOsPatchDetail>
    Results of OS patch details for a DB System.
    osPatchHistoryEntryId String
    state String
    The current state of the action.
    timeEnded String
    The date and time when the patch action completed
    timeStarted String
    The date and time when the patch action started.
    action string
    The action being performed or was completed.
    dbSystemId string
    The OCID of the DB system.
    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.
    osPatchDetails GetDbSystemOsPatchHistoryEntryOsPatchDetail[]
    Results of OS patch details for a DB System.
    osPatchHistoryEntryId string
    state string
    The current state of the action.
    timeEnded string
    The date and time when the patch action completed
    timeStarted string
    The date and time when the patch action started.
    action str
    The action being performed or was completed.
    db_system_id str
    The OCID of the DB system.
    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.
    os_patch_details Sequence[GetDbSystemOsPatchHistoryEntryOsPatchDetail]
    Results of OS patch details for a DB System.
    os_patch_history_entry_id str
    state str
    The current state of the action.
    time_ended str
    The date and time when the patch action completed
    time_started str
    The date and time when the patch action started.
    action String
    The action being performed or was completed.
    dbSystemId String
    The OCID of the DB system.
    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.
    osPatchDetails List<Property Map>
    Results of OS patch details for a DB System.
    osPatchHistoryEntryId String
    state String
    The current state of the action.
    timeEnded String
    The date and time when the patch action completed
    timeStarted String
    The date and time when the patch action started.

    Supporting Types

    GetDbSystemOsPatchHistoryEntryOsPatchDetail

    Items List<GetDbSystemOsPatchHistoryEntryOsPatchDetailItem>
    Array of OS patch details for a DB System.
    Items []GetDbSystemOsPatchHistoryEntryOsPatchDetailItem
    Array of OS patch details for a DB System.
    items List<GetDbSystemOsPatchHistoryEntryOsPatchDetailItem>
    Array of OS patch details for a DB System.
    items GetDbSystemOsPatchHistoryEntryOsPatchDetailItem[]
    Array of OS patch details for a DB System.
    items Sequence[GetDbSystemOsPatchHistoryEntryOsPatchDetailItem]
    Array of OS patch details for a DB System.
    items List<Property Map>
    Array of OS patch details for a DB System.

    GetDbSystemOsPatchHistoryEntryOsPatchDetailItem

    DbNodeId string
    The OCID of the DB node targeted for this patch action.
    IsRebootRequired bool
    Indicates whether a reboot is required after applying the patch.
    Rpms List<string>
    List of OS package identifiers (e.g., RPM strings).
    DbNodeId string
    The OCID of the DB node targeted for this patch action.
    IsRebootRequired bool
    Indicates whether a reboot is required after applying the patch.
    Rpms []string
    List of OS package identifiers (e.g., RPM strings).
    dbNodeId String
    The OCID of the DB node targeted for this patch action.
    isRebootRequired Boolean
    Indicates whether a reboot is required after applying the patch.
    rpms List<String>
    List of OS package identifiers (e.g., RPM strings).
    dbNodeId string
    The OCID of the DB node targeted for this patch action.
    isRebootRequired boolean
    Indicates whether a reboot is required after applying the patch.
    rpms string[]
    List of OS package identifiers (e.g., RPM strings).
    db_node_id str
    The OCID of the DB node targeted for this patch action.
    is_reboot_required bool
    Indicates whether a reboot is required after applying the patch.
    rpms Sequence[str]
    List of OS package identifiers (e.g., RPM strings).
    dbNodeId String
    The OCID of the DB node targeted for this patch action.
    isRebootRequired Boolean
    Indicates whether a reboot is required after applying the patch.
    rpms List<String>
    List of OS package identifiers (e.g., RPM strings).

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.2.0
    published on Friday, Mar 6, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.