1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDbSystemHistoryEntries
Oracle Cloud Infrastructure v2.2.0 published on Friday, Jul 12, 2024 by Pulumi

oci.Database.getDbSystemHistoryEntries

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.2.0 published on Friday, Jul 12, 2024 by Pulumi

    This data source provides the list of Db System Patch History Entries in Oracle Cloud Infrastructure Database service.

    Gets the history of the patch actions performed on the specified DB system.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDbSystemPatchHistoryEntries = oci.Database.getDbSystemHistoryEntries({
        dbSystemId: testDbSystem.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_db_system_patch_history_entries = oci.Database.get_db_system_history_entries(db_system_id=test_db_system["id"])
    
    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.GetDbSystemHistoryEntries(ctx, &database.GetDbSystemHistoryEntriesArgs{
    			DbSystemId: testDbSystem.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 testDbSystemPatchHistoryEntries = Oci.Database.GetDbSystemHistoryEntries.Invoke(new()
        {
            DbSystemId = testDbSystem.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.GetDbSystemHistoryEntriesArgs;
    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 testDbSystemPatchHistoryEntries = DatabaseFunctions.getDbSystemHistoryEntries(GetDbSystemHistoryEntriesArgs.builder()
                .dbSystemId(testDbSystem.id())
                .build());
    
        }
    }
    
    variables:
      testDbSystemPatchHistoryEntries:
        fn::invoke:
          Function: oci:Database:getDbSystemHistoryEntries
          Arguments:
            dbSystemId: ${testDbSystem.id}
    

    Using getDbSystemHistoryEntries

    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 getDbSystemHistoryEntries(args: GetDbSystemHistoryEntriesArgs, opts?: InvokeOptions): Promise<GetDbSystemHistoryEntriesResult>
    function getDbSystemHistoryEntriesOutput(args: GetDbSystemHistoryEntriesOutputArgs, opts?: InvokeOptions): Output<GetDbSystemHistoryEntriesResult>
    def get_db_system_history_entries(db_system_id: Optional[str] = None,
                                      filters: Optional[Sequence[_database.GetDbSystemHistoryEntriesFilter]] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetDbSystemHistoryEntriesResult
    def get_db_system_history_entries_output(db_system_id: Optional[pulumi.Input[str]] = None,
                                      filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetDbSystemHistoryEntriesFilterArgs]]]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetDbSystemHistoryEntriesResult]
    func GetDbSystemHistoryEntries(ctx *Context, args *GetDbSystemHistoryEntriesArgs, opts ...InvokeOption) (*GetDbSystemHistoryEntriesResult, error)
    func GetDbSystemHistoryEntriesOutput(ctx *Context, args *GetDbSystemHistoryEntriesOutputArgs, opts ...InvokeOption) GetDbSystemHistoryEntriesResultOutput

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

    public static class GetDbSystemHistoryEntries 
    {
        public static Task<GetDbSystemHistoryEntriesResult> InvokeAsync(GetDbSystemHistoryEntriesArgs args, InvokeOptions? opts = null)
        public static Output<GetDbSystemHistoryEntriesResult> Invoke(GetDbSystemHistoryEntriesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbSystemHistoryEntriesResult> getDbSystemHistoryEntries(GetDbSystemHistoryEntriesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getDbSystemHistoryEntries:getDbSystemHistoryEntries
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getDbSystemHistoryEntries Result

    The following output properties are available:

    DbSystemId string
    Id string
    The provider-assigned unique ID for this managed resource.
    PatchHistoryEntries List<GetDbSystemHistoryEntriesPatchHistoryEntry>
    The list of patch_history_entries.
    Filters List<GetDbSystemHistoryEntriesFilter>
    DbSystemId string
    Id string
    The provider-assigned unique ID for this managed resource.
    PatchHistoryEntries []GetDbSystemHistoryEntriesPatchHistoryEntry
    The list of patch_history_entries.
    Filters []GetDbSystemHistoryEntriesFilter
    dbSystemId String
    id String
    The provider-assigned unique ID for this managed resource.
    patchHistoryEntries List<GetDbSystemHistoryEntriesPatchHistoryEntry>
    The list of patch_history_entries.
    filters List<GetDbSystemHistoryEntriesFilter>
    dbSystemId string
    id string
    The provider-assigned unique ID for this managed resource.
    patchHistoryEntries GetDbSystemHistoryEntriesPatchHistoryEntry[]
    The list of patch_history_entries.
    filters GetDbSystemHistoryEntriesFilter[]
    db_system_id str
    id str
    The provider-assigned unique ID for this managed resource.
    patch_history_entries Sequence[database.GetDbSystemHistoryEntriesPatchHistoryEntry]
    The list of patch_history_entries.
    filters Sequence[database.GetDbSystemHistoryEntriesFilter]
    dbSystemId String
    id String
    The provider-assigned unique ID for this managed resource.
    patchHistoryEntries List<Property Map>
    The list of patch_history_entries.
    filters List<Property Map>

    Supporting Types

    GetDbSystemHistoryEntriesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetDbSystemHistoryEntriesPatchHistoryEntry

    Action string
    The action being performed or was completed.
    Id string
    The OCID of the patch history entry.
    LifecycleDetails string
    A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
    PatchId string
    The OCID of the patch.
    PatchType string
    The type of Patch operation.
    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.
    Id string
    The OCID of the patch history entry.
    LifecycleDetails string
    A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
    PatchId string
    The OCID of the patch.
    PatchType string
    The type of Patch operation.
    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.
    id String
    The OCID of the patch history entry.
    lifecycleDetails String
    A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
    patchId String
    The OCID of the patch.
    patchType String
    The type of Patch operation.
    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.
    id string
    The OCID of the patch history entry.
    lifecycleDetails string
    A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
    patchId string
    The OCID of the patch.
    patchType string
    The type of Patch operation.
    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.
    id str
    The OCID of the patch history entry.
    lifecycle_details str
    A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
    patch_id str
    The OCID of the patch.
    patch_type str
    The type of Patch operation.
    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.
    id String
    The OCID of the patch history entry.
    lifecycleDetails String
    A descriptive text associated with the lifecycleState. Typically contains additional displayable text.
    patchId String
    The OCID of the patch.
    patchType String
    The type of Patch operation.
    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.

    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 v2.2.0 published on Friday, Jul 12, 2024 by Pulumi