Oracle Cloud Infrastructure v0.20.0, May 31 23
Oracle Cloud Infrastructure v0.20.0, May 31 23
oci.Database.getDbHomePatches
Explore with Pulumi AI
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
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 = 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.GetDbHomePatches(ctx, &database.GetDbHomePatchesArgs{
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.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(oci_database_db_home.test_db_home().id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_db_home_patches = oci.Database.get_db_home_patches(db_home_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDbHomePatches = oci.Database.getDbHomePatches({
dbHomeId: oci_database_db_home.test_db_home.id,
});
variables:
testDbHomePatches:
fn::invoke:
Function: oci:Database:getDbHomePatches
Arguments:
dbHomeId: ${oci_database_db_home.test_db_home.id}
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>
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]
func GetDbHomePatches(ctx *Context, args *GetDbHomePatchesArgs, opts ...InvokeOption) (*GetDbHomePatchesResult, error)
func GetDbHomePatchesOutput(ctx *Context, args *GetDbHomePatchesOutputArgs, opts ...InvokeOption) GetDbHomePatchesResultOutput
> 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)
}
public static CompletableFuture<GetDbHomePatchesResult> getDbHomePatches(GetDbHomePatchesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getDbHomePatches:getDbHomePatches
arguments:
# arguments dictionary
The following arguments are supported:
- Db
Home stringId The Database Home OCID.
- Filters
List<Get
Db Home Patches Filter>
- Db
Home stringId The Database Home OCID.
- Filters
[]Get
Db Home Patches Filter
- db
Home StringId The Database Home OCID.
- filters
List<Get
Db Home Patches Filter>
- db
Home stringId The Database Home OCID.
- filters
Get
Db Home Patches Filter[]
- db_
home_ strid The Database Home OCID.
- filters
Get
Db Home Patches Filter]
- db
Home StringId The Database Home OCID.
- filters List<Property Map>
getDbHomePatches Result
The following output properties are available:
- Db
Home stringId - Id string
The provider-assigned unique ID for this managed resource.
- Patches
List<Get
Db Home Patches Patch> The list of patches.
- Filters
List<Get
Db Home Patches Filter>
- Db
Home stringId - Id string
The provider-assigned unique ID for this managed resource.
- Patches
[]Get
Db Home Patches Patch The list of patches.
- Filters
[]Get
Db Home Patches Filter
- db
Home StringId - id String
The provider-assigned unique ID for this managed resource.
- patches
List<Get
Db Home Patches Patch> The list of patches.
- filters
List<Get
Db Home Patches Filter>
- db
Home stringId - id string
The provider-assigned unique ID for this managed resource.
- patches
Get
Db Home Patches Patch[] The list of patches.
- filters
Get
Db Home Patches Filter[]
- db_
home_ strid - id str
The provider-assigned unique ID for this managed resource.
- patches
Get
Db Home Patches Patch] The list of patches.
- filters
Get
Db Home Patches Filter]
- db
Home StringId - 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
GetDbHomePatchesPatch
- Available
Actions List<string> Actions that can possibly be performed using this patch.
- Description string
The text describing this patch package.
- Id string
The OCID of the patch.
- Last
Action string Action that is currently being performed or was completed last.
- Lifecycle
Details string A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
- State string
The current state of the patch as a result of lastAction.
- Time
Released string The date and time that the patch was released.
- Version string
The version of this patch package.
- Available
Actions []string Actions that can possibly be performed using this patch.
- Description string
The text describing this patch package.
- Id string
The OCID of the patch.
- Last
Action string Action that is currently being performed or was completed last.
- Lifecycle
Details string A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
- State string
The current state of the patch as a result of lastAction.
- Time
Released string The date and time that the patch was released.
- Version string
The version of this patch package.
- available
Actions List<String> Actions that can possibly be performed using this patch.
- description String
The text describing this patch package.
- id String
The OCID of the patch.
- last
Action String Action that is currently being performed or was completed last.
- lifecycle
Details String A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
- state String
The current state of the patch as a result of lastAction.
- time
Released String The date and time that the patch was released.
- version String
The version of this patch package.
- available
Actions string[] Actions that can possibly be performed using this patch.
- description string
The text describing this patch package.
- id string
The OCID of the patch.
- last
Action string Action that is currently being performed or was completed last.
- lifecycle
Details string A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
- state string
The current state of the patch as a result of lastAction.
- time
Released string The date and time that the patch was released.
- version string
The version of this patch package.
- available_
actions Sequence[str] Actions that can possibly be performed using this patch.
- description str
The text describing this patch package.
- id str
The OCID of the patch.
- last_
action str Action that is currently being performed or was completed last.
- lifecycle_
details str A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
- state str
The current state of the patch as a result of lastAction.
- time_
released str The date and time that the patch was released.
- version str
The version of this patch package.
- available
Actions List<String> Actions that can possibly be performed using this patch.
- description String
The text describing this patch package.
- id String
The OCID of the patch.
- last
Action String Action that is currently being performed or was completed last.
- lifecycle
Details String A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
- state String
The current state of the patch as a result of lastAction.
- time
Released String The date and time that the patch was released.
- version 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.