1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getDbHomePatches
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.Database.getDbHomePatches

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

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

Lists patches applicable to the requested Database Home.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDbHomePatches = oci.Database.getDbHomePatches({
    dbHomeId: testDbHome.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_db_home_patches = oci.Database.get_db_home_patches(db_home_id=test_db_home["id"])
Copy
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.GetDbHomePatches(ctx, &database.GetDbHomePatchesArgs{
			DbHomeId: testDbHome.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testDbHomePatches = Oci.Database.GetDbHomePatches.Invoke(new()
    {
        DbHomeId = testDbHome.Id,
    });

});
Copy
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.GetDbHomePatchesArgs;
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 testDbHomePatches = DatabaseFunctions.getDbHomePatches(GetDbHomePatchesArgs.builder()
            .dbHomeId(testDbHome.id())
            .build());

    }
}
Copy
variables:
  testDbHomePatches:
    fn::invoke:
      function: oci:Database:getDbHomePatches
      arguments:
        dbHomeId: ${testDbHome.id}
Copy

Using getDbHomePatches

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 getDbHomePatches(args: GetDbHomePatchesArgs, opts?: InvokeOptions): Promise<GetDbHomePatchesResult>
function getDbHomePatchesOutput(args: GetDbHomePatchesOutputArgs, opts?: InvokeOptions): Output<GetDbHomePatchesResult>
Copy
def get_db_home_patches(db_home_id: Optional[str] = None,
                        filters: Optional[Sequence[_database.GetDbHomePatchesFilter]] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDbHomePatchesResult
def get_db_home_patches_output(db_home_id: Optional[pulumi.Input[str]] = None,
                        filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetDbHomePatchesFilterArgs]]]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDbHomePatchesResult]
Copy
func GetDbHomePatches(ctx *Context, args *GetDbHomePatchesArgs, opts ...InvokeOption) (*GetDbHomePatchesResult, error)
func GetDbHomePatchesOutput(ctx *Context, args *GetDbHomePatchesOutputArgs, opts ...InvokeOption) GetDbHomePatchesResultOutput
Copy

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

public static class GetDbHomePatches 
{
    public static Task<GetDbHomePatchesResult> InvokeAsync(GetDbHomePatchesArgs args, InvokeOptions? opts = null)
    public static Output<GetDbHomePatchesResult> Invoke(GetDbHomePatchesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDbHomePatchesResult> getDbHomePatches(GetDbHomePatchesArgs args, InvokeOptions options)
public static Output<GetDbHomePatchesResult> getDbHomePatches(GetDbHomePatchesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Database/getDbHomePatches:getDbHomePatches
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DbHomeId This property is required. string
The Database Home OCID.
Filters Changes to this property will trigger replacement. List<GetDbHomePatchesFilter>
DbHomeId This property is required. string
The Database Home OCID.
Filters Changes to this property will trigger replacement. []GetDbHomePatchesFilter
dbHomeId This property is required. String
The Database Home OCID.
filters Changes to this property will trigger replacement. List<GetDbHomePatchesFilter>
dbHomeId This property is required. string
The Database Home OCID.
filters Changes to this property will trigger replacement. GetDbHomePatchesFilter[]
db_home_id This property is required. str
The Database Home OCID.
filters Changes to this property will trigger replacement. Sequence[database.GetDbHomePatchesFilter]
dbHomeId This property is required. String
The Database Home OCID.
filters Changes to this property will trigger replacement. List<Property Map>

getDbHomePatches Result

The following output properties are available:

DbHomeId string
Id string
The provider-assigned unique ID for this managed resource.
Patches List<GetDbHomePatchesPatch>
The list of patches.
Filters List<GetDbHomePatchesFilter>
DbHomeId string
Id string
The provider-assigned unique ID for this managed resource.
Patches []GetDbHomePatchesPatch
The list of patches.
Filters []GetDbHomePatchesFilter
dbHomeId String
id String
The provider-assigned unique ID for this managed resource.
patches List<GetDbHomePatchesPatch>
The list of patches.
filters List<GetDbHomePatchesFilter>
dbHomeId string
id string
The provider-assigned unique ID for this managed resource.
patches GetDbHomePatchesPatch[]
The list of patches.
filters GetDbHomePatchesFilter[]
db_home_id str
id str
The provider-assigned unique ID for this managed resource.
patches Sequence[database.GetDbHomePatchesPatch]
The list of patches.
filters Sequence[database.GetDbHomePatchesFilter]
dbHomeId String
id String
The provider-assigned unique ID for this managed resource.
patches List<Property Map>
The list of patches.
filters List<Property Map>

Supporting Types

GetDbHomePatchesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetDbHomePatchesPatch

AvailableActions This property is required. List<string>
Actions that can possibly be performed using this patch.
Description This property is required. string
The text describing this patch package.
Id This property is required. string
The OCID of the patch.
LastAction This property is required. string
Action that is currently being performed or was completed last.
LifecycleDetails This property is required. string
A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
State This property is required. string
The current state of the patch as a result of lastAction.
TimeReleased This property is required. string
The date and time that the patch was released.
Version This property is required. string
The version of this patch package.
AvailableActions This property is required. []string
Actions that can possibly be performed using this patch.
Description This property is required. string
The text describing this patch package.
Id This property is required. string
The OCID of the patch.
LastAction This property is required. string
Action that is currently being performed or was completed last.
LifecycleDetails This property is required. string
A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
State This property is required. string
The current state of the patch as a result of lastAction.
TimeReleased This property is required. string
The date and time that the patch was released.
Version This property is required. string
The version of this patch package.
availableActions This property is required. List<String>
Actions that can possibly be performed using this patch.
description This property is required. String
The text describing this patch package.
id This property is required. String
The OCID of the patch.
lastAction This property is required. String
Action that is currently being performed or was completed last.
lifecycleDetails This property is required. String
A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
state This property is required. String
The current state of the patch as a result of lastAction.
timeReleased This property is required. String
The date and time that the patch was released.
version This property is required. String
The version of this patch package.
availableActions This property is required. string[]
Actions that can possibly be performed using this patch.
description This property is required. string
The text describing this patch package.
id This property is required. string
The OCID of the patch.
lastAction This property is required. string
Action that is currently being performed or was completed last.
lifecycleDetails This property is required. string
A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
state This property is required. string
The current state of the patch as a result of lastAction.
timeReleased This property is required. string
The date and time that the patch was released.
version This property is required. string
The version of this patch package.
available_actions This property is required. Sequence[str]
Actions that can possibly be performed using this patch.
description This property is required. str
The text describing this patch package.
id This property is required. str
The OCID of the patch.
last_action This property is required. str
Action that is currently being performed or was completed last.
lifecycle_details This property is required. str
A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
state This property is required. str
The current state of the patch as a result of lastAction.
time_released This property is required. str
The date and time that the patch was released.
version This property is required. str
The version of this patch package.
availableActions This property is required. List<String>
Actions that can possibly be performed using this patch.
description This property is required. String
The text describing this patch package.
id This property is required. String
The OCID of the patch.
lastAction This property is required. String
Action that is currently being performed or was completed last.
lifecycleDetails This property is required. String
A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
state This property is required. String
The current state of the patch as a result of lastAction.
timeReleased This property is required. String
The date and time that the patch was released.
version This property is required. String
The version of this patch package.

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 v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi