1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getVmClusterUpdateHistoryEntries
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Database.getVmClusterUpdateHistoryEntries

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the list of Vm Cluster Update History Entries in Oracle Cloud Infrastructure Database service.

    Gets the history of the maintenance update actions performed on the specified VM cluster. Applies to Exadata Cloud@Customer instances only.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testVmClusterUpdateHistoryEntries = oci.Database.getVmClusterUpdateHistoryEntries({
        vmClusterId: testVmCluster.id,
        state: vmClusterUpdateHistoryEntryState,
        updateType: vmClusterUpdateHistoryEntryUpdateType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_vm_cluster_update_history_entries = oci.Database.get_vm_cluster_update_history_entries(vm_cluster_id=test_vm_cluster["id"],
        state=vm_cluster_update_history_entry_state,
        update_type=vm_cluster_update_history_entry_update_type)
    
    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.GetVmClusterUpdateHistoryEntries(ctx, &database.GetVmClusterUpdateHistoryEntriesArgs{
    			VmClusterId: testVmCluster.Id,
    			State:       pulumi.StringRef(vmClusterUpdateHistoryEntryState),
    			UpdateType:  pulumi.StringRef(vmClusterUpdateHistoryEntryUpdateType),
    		}, 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 testVmClusterUpdateHistoryEntries = Oci.Database.GetVmClusterUpdateHistoryEntries.Invoke(new()
        {
            VmClusterId = testVmCluster.Id,
            State = vmClusterUpdateHistoryEntryState,
            UpdateType = vmClusterUpdateHistoryEntryUpdateType,
        });
    
    });
    
    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.GetVmClusterUpdateHistoryEntriesArgs;
    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 testVmClusterUpdateHistoryEntries = DatabaseFunctions.getVmClusterUpdateHistoryEntries(GetVmClusterUpdateHistoryEntriesArgs.builder()
                .vmClusterId(testVmCluster.id())
                .state(vmClusterUpdateHistoryEntryState)
                .updateType(vmClusterUpdateHistoryEntryUpdateType)
                .build());
    
        }
    }
    
    variables:
      testVmClusterUpdateHistoryEntries:
        fn::invoke:
          Function: oci:Database:getVmClusterUpdateHistoryEntries
          Arguments:
            vmClusterId: ${testVmCluster.id}
            state: ${vmClusterUpdateHistoryEntryState}
            updateType: ${vmClusterUpdateHistoryEntryUpdateType}
    

    Using getVmClusterUpdateHistoryEntries

    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 getVmClusterUpdateHistoryEntries(args: GetVmClusterUpdateHistoryEntriesArgs, opts?: InvokeOptions): Promise<GetVmClusterUpdateHistoryEntriesResult>
    function getVmClusterUpdateHistoryEntriesOutput(args: GetVmClusterUpdateHistoryEntriesOutputArgs, opts?: InvokeOptions): Output<GetVmClusterUpdateHistoryEntriesResult>
    def get_vm_cluster_update_history_entries(filters: Optional[Sequence[_database.GetVmClusterUpdateHistoryEntriesFilter]] = None,
                                              state: Optional[str] = None,
                                              update_type: Optional[str] = None,
                                              vm_cluster_id: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetVmClusterUpdateHistoryEntriesResult
    def get_vm_cluster_update_history_entries_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetVmClusterUpdateHistoryEntriesFilterArgs]]]] = None,
                                              state: Optional[pulumi.Input[str]] = None,
                                              update_type: Optional[pulumi.Input[str]] = None,
                                              vm_cluster_id: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetVmClusterUpdateHistoryEntriesResult]
    func GetVmClusterUpdateHistoryEntries(ctx *Context, args *GetVmClusterUpdateHistoryEntriesArgs, opts ...InvokeOption) (*GetVmClusterUpdateHistoryEntriesResult, error)
    func GetVmClusterUpdateHistoryEntriesOutput(ctx *Context, args *GetVmClusterUpdateHistoryEntriesOutputArgs, opts ...InvokeOption) GetVmClusterUpdateHistoryEntriesResultOutput

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

    public static class GetVmClusterUpdateHistoryEntries 
    {
        public static Task<GetVmClusterUpdateHistoryEntriesResult> InvokeAsync(GetVmClusterUpdateHistoryEntriesArgs args, InvokeOptions? opts = null)
        public static Output<GetVmClusterUpdateHistoryEntriesResult> Invoke(GetVmClusterUpdateHistoryEntriesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVmClusterUpdateHistoryEntriesResult> getVmClusterUpdateHistoryEntries(GetVmClusterUpdateHistoryEntriesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getVmClusterUpdateHistoryEntries:getVmClusterUpdateHistoryEntries
      arguments:
        # arguments dictionary

    The following arguments are supported:

    VmClusterId string
    The VM cluster OCID.
    Filters List<GetVmClusterUpdateHistoryEntriesFilter>
    State string
    A filter to return only resources that match the given lifecycle state exactly.
    UpdateType string
    A filter to return only resources that match the given update type exactly.
    VmClusterId string
    The VM cluster OCID.
    Filters []GetVmClusterUpdateHistoryEntriesFilter
    State string
    A filter to return only resources that match the given lifecycle state exactly.
    UpdateType string
    A filter to return only resources that match the given update type exactly.
    vmClusterId String
    The VM cluster OCID.
    filters List<GetVmClusterUpdateHistoryEntriesFilter>
    state String
    A filter to return only resources that match the given lifecycle state exactly.
    updateType String
    A filter to return only resources that match the given update type exactly.
    vmClusterId string
    The VM cluster OCID.
    filters GetVmClusterUpdateHistoryEntriesFilter[]
    state string
    A filter to return only resources that match the given lifecycle state exactly.
    updateType string
    A filter to return only resources that match the given update type exactly.
    vm_cluster_id str
    The VM cluster OCID.
    filters Sequence[database.GetVmClusterUpdateHistoryEntriesFilter]
    state str
    A filter to return only resources that match the given lifecycle state exactly.
    update_type str
    A filter to return only resources that match the given update type exactly.
    vmClusterId String
    The VM cluster OCID.
    filters List<Property Map>
    state String
    A filter to return only resources that match the given lifecycle state exactly.
    updateType String
    A filter to return only resources that match the given update type exactly.

    getVmClusterUpdateHistoryEntries Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    VmClusterId string
    VmClusterUpdateHistoryEntries List<GetVmClusterUpdateHistoryEntriesVmClusterUpdateHistoryEntry>
    The list of vm_cluster_update_history_entries.
    Filters List<GetVmClusterUpdateHistoryEntriesFilter>
    State string
    The current lifecycle state of the maintenance update operation.
    UpdateType string
    The type of VM cluster maintenance update.
    Id string
    The provider-assigned unique ID for this managed resource.
    VmClusterId string
    VmClusterUpdateHistoryEntries []GetVmClusterUpdateHistoryEntriesVmClusterUpdateHistoryEntry
    The list of vm_cluster_update_history_entries.
    Filters []GetVmClusterUpdateHistoryEntriesFilter
    State string
    The current lifecycle state of the maintenance update operation.
    UpdateType string
    The type of VM cluster maintenance update.
    id String
    The provider-assigned unique ID for this managed resource.
    vmClusterId String
    vmClusterUpdateHistoryEntries List<GetVmClusterUpdateHistoryEntriesVmClusterUpdateHistoryEntry>
    The list of vm_cluster_update_history_entries.
    filters List<GetVmClusterUpdateHistoryEntriesFilter>
    state String
    The current lifecycle state of the maintenance update operation.
    updateType String
    The type of VM cluster maintenance update.
    id string
    The provider-assigned unique ID for this managed resource.
    vmClusterId string
    vmClusterUpdateHistoryEntries GetVmClusterUpdateHistoryEntriesVmClusterUpdateHistoryEntry[]
    The list of vm_cluster_update_history_entries.
    filters GetVmClusterUpdateHistoryEntriesFilter[]
    state string
    The current lifecycle state of the maintenance update operation.
    updateType string
    The type of VM cluster maintenance update.
    id str
    The provider-assigned unique ID for this managed resource.
    vm_cluster_id str
    vm_cluster_update_history_entries Sequence[database.GetVmClusterUpdateHistoryEntriesVmClusterUpdateHistoryEntry]
    The list of vm_cluster_update_history_entries.
    filters Sequence[database.GetVmClusterUpdateHistoryEntriesFilter]
    state str
    The current lifecycle state of the maintenance update operation.
    update_type str
    The type of VM cluster maintenance update.
    id String
    The provider-assigned unique ID for this managed resource.
    vmClusterId String
    vmClusterUpdateHistoryEntries List<Property Map>
    The list of vm_cluster_update_history_entries.
    filters List<Property Map>
    state String
    The current lifecycle state of the maintenance update operation.
    updateType String
    The type of VM cluster maintenance update.

    Supporting Types

    GetVmClusterUpdateHistoryEntriesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetVmClusterUpdateHistoryEntriesVmClusterUpdateHistoryEntry

    Id string
    The OCID of the maintenance update history entry.
    LifecycleDetails string
    Descriptive text providing additional details about the lifecycle state.
    State string
    A filter to return only resources that match the given lifecycle state exactly.
    TimeCompleted string
    The date and time when the maintenance update action completed.
    TimeStarted string
    The date and time when the maintenance update action started.
    UpdateAction string
    The update action performed using this maintenance update.
    UpdateId string
    The OCID of the maintenance update.
    UpdateType string
    A filter to return only resources that match the given update type exactly.
    Id string
    The OCID of the maintenance update history entry.
    LifecycleDetails string
    Descriptive text providing additional details about the lifecycle state.
    State string
    A filter to return only resources that match the given lifecycle state exactly.
    TimeCompleted string
    The date and time when the maintenance update action completed.
    TimeStarted string
    The date and time when the maintenance update action started.
    UpdateAction string
    The update action performed using this maintenance update.
    UpdateId string
    The OCID of the maintenance update.
    UpdateType string
    A filter to return only resources that match the given update type exactly.
    id String
    The OCID of the maintenance update history entry.
    lifecycleDetails String
    Descriptive text providing additional details about the lifecycle state.
    state String
    A filter to return only resources that match the given lifecycle state exactly.
    timeCompleted String
    The date and time when the maintenance update action completed.
    timeStarted String
    The date and time when the maintenance update action started.
    updateAction String
    The update action performed using this maintenance update.
    updateId String
    The OCID of the maintenance update.
    updateType String
    A filter to return only resources that match the given update type exactly.
    id string
    The OCID of the maintenance update history entry.
    lifecycleDetails string
    Descriptive text providing additional details about the lifecycle state.
    state string
    A filter to return only resources that match the given lifecycle state exactly.
    timeCompleted string
    The date and time when the maintenance update action completed.
    timeStarted string
    The date and time when the maintenance update action started.
    updateAction string
    The update action performed using this maintenance update.
    updateId string
    The OCID of the maintenance update.
    updateType string
    A filter to return only resources that match the given update type exactly.
    id str
    The OCID of the maintenance update history entry.
    lifecycle_details str
    Descriptive text providing additional details about the lifecycle state.
    state str
    A filter to return only resources that match the given lifecycle state exactly.
    time_completed str
    The date and time when the maintenance update action completed.
    time_started str
    The date and time when the maintenance update action started.
    update_action str
    The update action performed using this maintenance update.
    update_id str
    The OCID of the maintenance update.
    update_type str
    A filter to return only resources that match the given update type exactly.
    id String
    The OCID of the maintenance update history entry.
    lifecycleDetails String
    Descriptive text providing additional details about the lifecycle state.
    state String
    A filter to return only resources that match the given lifecycle state exactly.
    timeCompleted String
    The date and time when the maintenance update action completed.
    timeStarted String
    The date and time when the maintenance update action started.
    updateAction String
    The update action performed using this maintenance update.
    updateId String
    The OCID of the maintenance update.
    updateType String
    A filter to return only resources that match the given update type exactly.

    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.17.0 published on Friday, Nov 15, 2024 by Pulumi