oci logo
Oracle Cloud Infrastructure v0.13.0, Mar 28 23

oci.Database.getVmClusterPatchHistoryEntry

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

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

return await Deployment.RunAsync(() => 
{
    var testVmClusterPatchHistoryEntry = Oci.Database.GetVmClusterPatchHistoryEntry.Invoke(new()
    {
        PatchHistoryEntryId = oci_database_patch_history_entry.Test_patch_history_entry.Id,
        VmClusterId = oci_database_vm_cluster.Test_vm_cluster.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.GetVmClusterPatchHistoryEntry(ctx, &database.GetVmClusterPatchHistoryEntryArgs{
			PatchHistoryEntryId: oci_database_patch_history_entry.Test_patch_history_entry.Id,
			VmClusterId:         oci_database_vm_cluster.Test_vm_cluster.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.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(oci_database_patch_history_entry.test_patch_history_entry().id())
            .vmClusterId(oci_database_vm_cluster.test_vm_cluster().id())
            .build());

    }
}
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=oci_database_patch_history_entry["test_patch_history_entry"]["id"],
    vm_cluster_id=oci_database_vm_cluster["test_vm_cluster"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testVmClusterPatchHistoryEntry = oci.Database.getVmClusterPatchHistoryEntry({
    patchHistoryEntryId: oci_database_patch_history_entry.test_patch_history_entry.id,
    vmClusterId: oci_database_vm_cluster.test_vm_cluster.id,
});
variables:
  testVmClusterPatchHistoryEntry:
    fn::invoke:
      Function: oci:Database:getVmClusterPatchHistoryEntry
      Arguments:
        patchHistoryEntryId: ${oci_database_patch_history_entry.test_patch_history_entry.id}
        vmClusterId: ${oci_database_vm_cluster.test_vm_cluster.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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Database/getVmClusterPatchHistoryEntry:getVmClusterPatchHistoryEntry
  arguments:
    # arguments dictionary

The following arguments are supported:

PatchHistoryEntryId string

The OCID of the patch history entry.

VmClusterId string

The VM cluster OCID.

PatchHistoryEntryId string

The OCID of the patch history entry.

VmClusterId string

The VM cluster OCID.

patchHistoryEntryId String

The OCID of the patch history entry.

vmClusterId String

The VM cluster OCID.

patchHistoryEntryId string

The OCID of the patch history entry.

vmClusterId string

The VM cluster OCID.

patch_history_entry_id str

The OCID of the patch history entry.

vm_cluster_id str

The VM cluster OCID.

patchHistoryEntryId String

The OCID of the patch history entry.

vmClusterId String

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.

PatchHistoryEntryId string
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.

VmClusterId string
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.

PatchHistoryEntryId string
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.

VmClusterId string
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.

patchHistoryEntryId String
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.

vmClusterId String
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.

patchHistoryEntryId string
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.

vmClusterId string
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_entry_id str
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_id str
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.

patchHistoryEntryId String
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.

vmClusterId String

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.