Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getDbHomePatchHistoryEntries

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

Lists the history of patch operations on the specified Database Home.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDbHomePatchHistoryEntries = Oci.Database.GetDbHomePatchHistoryEntries.Invoke(new()
    {
        DbHomeId = oci_database_db_home.Test_db_home.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.GetDbHomePatchHistoryEntries(ctx, &database.GetDbHomePatchHistoryEntriesArgs{
			DbHomeId: oci_database_db_home.Test_db_home.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.GetDbHomePatchHistoryEntriesArgs;
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 testDbHomePatchHistoryEntries = DatabaseFunctions.getDbHomePatchHistoryEntries(GetDbHomePatchHistoryEntriesArgs.builder()
            .dbHomeId(oci_database_db_home.test_db_home().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_db_home_patch_history_entries = oci.Database.get_db_home_patch_history_entries(db_home_id=oci_database_db_home["test_db_home"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDbHomePatchHistoryEntries = oci.Database.getDbHomePatchHistoryEntries({
    dbHomeId: oci_database_db_home.test_db_home.id,
});
variables:
  testDbHomePatchHistoryEntries:
    Fn::Invoke:
      Function: oci:Database:getDbHomePatchHistoryEntries
      Arguments:
        dbHomeId: ${oci_database_db_home.test_db_home.id}

Using getDbHomePatchHistoryEntries

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 getDbHomePatchHistoryEntries(args: GetDbHomePatchHistoryEntriesArgs, opts?: InvokeOptions): Promise<GetDbHomePatchHistoryEntriesResult>
function getDbHomePatchHistoryEntriesOutput(args: GetDbHomePatchHistoryEntriesOutputArgs, opts?: InvokeOptions): Output<GetDbHomePatchHistoryEntriesResult>
def get_db_home_patch_history_entries(db_home_id: Optional[str] = None,
                                      filters: Optional[Sequence[_database.GetDbHomePatchHistoryEntriesFilter]] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetDbHomePatchHistoryEntriesResult
def get_db_home_patch_history_entries_output(db_home_id: Optional[pulumi.Input[str]] = None,
                                      filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetDbHomePatchHistoryEntriesFilterArgs]]]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetDbHomePatchHistoryEntriesResult]
func GetDbHomePatchHistoryEntries(ctx *Context, args *GetDbHomePatchHistoryEntriesArgs, opts ...InvokeOption) (*GetDbHomePatchHistoryEntriesResult, error)
func GetDbHomePatchHistoryEntriesOutput(ctx *Context, args *GetDbHomePatchHistoryEntriesOutputArgs, opts ...InvokeOption) GetDbHomePatchHistoryEntriesResultOutput

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

public static class GetDbHomePatchHistoryEntries 
{
    public static Task<GetDbHomePatchHistoryEntriesResult> InvokeAsync(GetDbHomePatchHistoryEntriesArgs args, InvokeOptions? opts = null)
    public static Output<GetDbHomePatchHistoryEntriesResult> Invoke(GetDbHomePatchHistoryEntriesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbHomePatchHistoryEntriesResult> getDbHomePatchHistoryEntries(GetDbHomePatchHistoryEntriesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Database/getDbHomePatchHistoryEntries:getDbHomePatchHistoryEntries
  Arguments:
    # Arguments dictionary

The following arguments are supported:

dbHomeId String

The Database Home OCID.

filters List<Property Map>

getDbHomePatchHistoryEntries Result

The following output properties are available:

DbHomeId string
Id string

The provider-assigned unique ID for this managed resource.

PatchHistoryEntries List<GetDbHomePatchHistoryEntriesPatchHistoryEntry>

The list of patch_history_entries.

Filters List<GetDbHomePatchHistoryEntriesFilter>
DbHomeId string
Id string

The provider-assigned unique ID for this managed resource.

PatchHistoryEntries []GetDbHomePatchHistoryEntriesPatchHistoryEntry

The list of patch_history_entries.

Filters []GetDbHomePatchHistoryEntriesFilter
dbHomeId String
id String

The provider-assigned unique ID for this managed resource.

patchHistoryEntries List<GetDbHomePatchHistoryEntriesPatchHistoryEntry>

The list of patch_history_entries.

filters List<GetDbHomePatchHistoryEntriesFilter>
dbHomeId string
id string

The provider-assigned unique ID for this managed resource.

patchHistoryEntries GetDbHomePatchHistoryEntriesPatchHistoryEntry[]

The list of patch_history_entries.

filters GetDbHomePatchHistoryEntriesFilter[]
db_home_id str
id str

The provider-assigned unique ID for this managed resource.

patch_history_entries GetDbHomePatchHistoryEntriesPatchHistoryEntry]

The list of patch_history_entries.

filters GetDbHomePatchHistoryEntriesFilter]
dbHomeId 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

GetDbHomePatchHistoryEntriesFilter

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

GetDbHomePatchHistoryEntriesPatchHistoryEntry

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.

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.

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.

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.

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.

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.

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.