1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getVmClusterPatchHistoryEntry
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Database.getVmClusterPatchHistoryEntry

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    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)
    // 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.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi