Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getVmClusterPatchHistoryEntry
Explore with Pulumi AI
This data source provides details about a specific Vm Cluster Patch History Entry resource in Oracle Cloud Infrastructure Database service.
Gets the patch history details for the specified patch history entry.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVmClusterPatchHistoryEntry = oci.Database.getVmClusterPatchHistoryEntry({
    patchHistoryEntryId: testPatchHistoryEntry.id,
    vmClusterId: testVmCluster.id,
});
import pulumi
import pulumi_oci as oci
test_vm_cluster_patch_history_entry = oci.Database.get_vm_cluster_patch_history_entry(patch_history_entry_id=test_patch_history_entry["id"],
    vm_cluster_id=test_vm_cluster["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.GetVmClusterPatchHistoryEntry(ctx, &database.GetVmClusterPatchHistoryEntryArgs{
			PatchHistoryEntryId: testPatchHistoryEntry.Id,
			VmClusterId:         testVmCluster.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 testVmClusterPatchHistoryEntry = Oci.Database.GetVmClusterPatchHistoryEntry.Invoke(new()
    {
        PatchHistoryEntryId = testPatchHistoryEntry.Id,
        VmClusterId = testVmCluster.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.GetVmClusterPatchHistoryEntryArgs;
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 testVmClusterPatchHistoryEntry = DatabaseFunctions.getVmClusterPatchHistoryEntry(GetVmClusterPatchHistoryEntryArgs.builder()
            .patchHistoryEntryId(testPatchHistoryEntry.id())
            .vmClusterId(testVmCluster.id())
            .build());
    }
}
variables:
  testVmClusterPatchHistoryEntry:
    fn::invoke:
      function: oci:Database:getVmClusterPatchHistoryEntry
      arguments:
        patchHistoryEntryId: ${testPatchHistoryEntry.id}
        vmClusterId: ${testVmCluster.id}
Using getVmClusterPatchHistoryEntry
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 getVmClusterPatchHistoryEntry(args: GetVmClusterPatchHistoryEntryArgs, opts?: InvokeOptions): Promise<GetVmClusterPatchHistoryEntryResult>
function getVmClusterPatchHistoryEntryOutput(args: GetVmClusterPatchHistoryEntryOutputArgs, opts?: InvokeOptions): Output<GetVmClusterPatchHistoryEntryResult>def get_vm_cluster_patch_history_entry(patch_history_entry_id: Optional[str] = None,
                                       vm_cluster_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetVmClusterPatchHistoryEntryResult
def get_vm_cluster_patch_history_entry_output(patch_history_entry_id: Optional[pulumi.Input[str]] = None,
                                       vm_cluster_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetVmClusterPatchHistoryEntryResult]func GetVmClusterPatchHistoryEntry(ctx *Context, args *GetVmClusterPatchHistoryEntryArgs, opts ...InvokeOption) (*GetVmClusterPatchHistoryEntryResult, error)
func GetVmClusterPatchHistoryEntryOutput(ctx *Context, args *GetVmClusterPatchHistoryEntryOutputArgs, opts ...InvokeOption) GetVmClusterPatchHistoryEntryResultOutput> Note: This function is named GetVmClusterPatchHistoryEntry in the Go SDK.
public static class GetVmClusterPatchHistoryEntry 
{
    public static Task<GetVmClusterPatchHistoryEntryResult> InvokeAsync(GetVmClusterPatchHistoryEntryArgs args, InvokeOptions? opts = null)
    public static Output<GetVmClusterPatchHistoryEntryResult> Invoke(GetVmClusterPatchHistoryEntryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVmClusterPatchHistoryEntryResult> getVmClusterPatchHistoryEntry(GetVmClusterPatchHistoryEntryArgs args, InvokeOptions options)
public static Output<GetVmClusterPatchHistoryEntryResult> getVmClusterPatchHistoryEntry(GetVmClusterPatchHistoryEntryArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getVmClusterPatchHistoryEntry:getVmClusterPatchHistoryEntry
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PatchHistory stringEntry Id 
- The OCID of the patch history entry.
- VmCluster stringId 
- The VM cluster OCID.
- PatchHistory stringEntry Id 
- The OCID of the patch history entry.
- VmCluster stringId 
- The VM cluster OCID.
- patchHistory StringEntry Id 
- The OCID of the patch history entry.
- vmCluster StringId 
- The VM cluster OCID.
- patchHistory stringEntry Id 
- The OCID of the patch history entry.
- vmCluster stringId 
- The VM cluster OCID.
- patch_history_ strentry_ id 
- The OCID of the patch history entry.
- vm_cluster_ strid 
- The VM cluster OCID.
- patchHistory StringEntry Id 
- The OCID of the patch history entry.
- vmCluster StringId 
- The VM cluster OCID.
getVmClusterPatchHistoryEntry Result
The following output properties are available:
- Action string
- The action being performed or was completed.
- 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.
- PatchHistory stringEntry Id 
- 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.
- VmCluster stringId 
- Action string
- The action being performed or was completed.
- 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.
- PatchHistory stringEntry Id 
- 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.
- VmCluster stringId 
- action String
- The action being performed or was completed.
- 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.
- patchHistory StringEntry Id 
- 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.
- vmCluster StringId 
- action string
- The action being performed or was completed.
- 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.
- patchHistory stringEntry Id 
- 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.
- vmCluster stringId 
- action str
- The action being performed or was completed.
- 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.
- patch_history_ strentry_ id 
- 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.
- vm_cluster_ strid 
- action String
- The action being performed or was completed.
- 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.
- patchHistory StringEntry Id 
- 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.
- vmCluster StringId 
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.