Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Database.getVmClusterUpdates
Explore with Pulumi AI
This data source provides the list of Vm Cluster Updates in Oracle Cloud Infrastructure Database service.
Lists the maintenance updates that can be applied to 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 testVmClusterUpdates = oci.Database.getVmClusterUpdates({
    vmClusterId: testVmCluster.id,
    state: vmClusterUpdateState,
    updateType: vmClusterUpdateUpdateType,
});
import pulumi
import pulumi_oci as oci
test_vm_cluster_updates = oci.Database.get_vm_cluster_updates(vm_cluster_id=test_vm_cluster["id"],
    state=vm_cluster_update_state,
    update_type=vm_cluster_update_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.GetVmClusterUpdates(ctx, &database.GetVmClusterUpdatesArgs{
			VmClusterId: testVmCluster.Id,
			State:       pulumi.StringRef(vmClusterUpdateState),
			UpdateType:  pulumi.StringRef(vmClusterUpdateUpdateType),
		}, 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 testVmClusterUpdates = Oci.Database.GetVmClusterUpdates.Invoke(new()
    {
        VmClusterId = testVmCluster.Id,
        State = vmClusterUpdateState,
        UpdateType = vmClusterUpdateUpdateType,
    });
});
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.GetVmClusterUpdatesArgs;
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 testVmClusterUpdates = DatabaseFunctions.getVmClusterUpdates(GetVmClusterUpdatesArgs.builder()
            .vmClusterId(testVmCluster.id())
            .state(vmClusterUpdateState)
            .updateType(vmClusterUpdateUpdateType)
            .build());
    }
}
variables:
  testVmClusterUpdates:
    fn::invoke:
      function: oci:Database:getVmClusterUpdates
      arguments:
        vmClusterId: ${testVmCluster.id}
        state: ${vmClusterUpdateState}
        updateType: ${vmClusterUpdateUpdateType}
Using getVmClusterUpdates
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 getVmClusterUpdates(args: GetVmClusterUpdatesArgs, opts?: InvokeOptions): Promise<GetVmClusterUpdatesResult>
function getVmClusterUpdatesOutput(args: GetVmClusterUpdatesOutputArgs, opts?: InvokeOptions): Output<GetVmClusterUpdatesResult>def get_vm_cluster_updates(filters: Optional[Sequence[GetVmClusterUpdatesFilter]] = None,
                           state: Optional[str] = None,
                           update_type: Optional[str] = None,
                           vm_cluster_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetVmClusterUpdatesResult
def get_vm_cluster_updates_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetVmClusterUpdatesFilterArgs]]]] = 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[GetVmClusterUpdatesResult]func GetVmClusterUpdates(ctx *Context, args *GetVmClusterUpdatesArgs, opts ...InvokeOption) (*GetVmClusterUpdatesResult, error)
func GetVmClusterUpdatesOutput(ctx *Context, args *GetVmClusterUpdatesOutputArgs, opts ...InvokeOption) GetVmClusterUpdatesResultOutput> Note: This function is named GetVmClusterUpdates in the Go SDK.
public static class GetVmClusterUpdates 
{
    public static Task<GetVmClusterUpdatesResult> InvokeAsync(GetVmClusterUpdatesArgs args, InvokeOptions? opts = null)
    public static Output<GetVmClusterUpdatesResult> Invoke(GetVmClusterUpdatesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVmClusterUpdatesResult> getVmClusterUpdates(GetVmClusterUpdatesArgs args, InvokeOptions options)
public static Output<GetVmClusterUpdatesResult> getVmClusterUpdates(GetVmClusterUpdatesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getVmClusterUpdates:getVmClusterUpdates
  arguments:
    # arguments dictionaryThe following arguments are supported:
- VmCluster stringId 
- The VM cluster OCID.
- Filters
List<GetVm Cluster Updates Filter> 
- 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.
- VmCluster stringId 
- The VM cluster OCID.
- Filters
[]GetVm Cluster Updates Filter 
- 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.
- vmCluster StringId 
- The VM cluster OCID.
- filters
List<GetVm Cluster Updates Filter> 
- 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.
- vmCluster stringId 
- The VM cluster OCID.
- filters
GetVm Cluster Updates Filter[] 
- 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_ strid 
- The VM cluster OCID.
- filters
Sequence[GetVm Cluster Updates Filter] 
- 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.
- vmCluster StringId 
- 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.
getVmClusterUpdates Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- VmCluster stringId 
- VmCluster List<GetUpdates Vm Cluster Updates Vm Cluster Update> 
- The list of vm_cluster_updates.
- Filters
List<GetVm Cluster Updates Filter> 
- State string
- The current state of the maintenance update. Dependent on value of lastAction.
- UpdateType string
- The type of VM cluster maintenance update.
- Id string
- The provider-assigned unique ID for this managed resource.
- VmCluster stringId 
- VmCluster []GetUpdates Vm Cluster Updates Vm Cluster Update 
- The list of vm_cluster_updates.
- Filters
[]GetVm Cluster Updates Filter 
- State string
- The current state of the maintenance update. Dependent on value of lastAction.
- UpdateType string
- The type of VM cluster maintenance update.
- id String
- The provider-assigned unique ID for this managed resource.
- vmCluster StringId 
- vmCluster List<GetUpdates Vm Cluster Updates Vm Cluster Update> 
- The list of vm_cluster_updates.
- filters
List<GetVm Cluster Updates Filter> 
- state String
- The current state of the maintenance update. Dependent on value of lastAction.
- updateType String
- The type of VM cluster maintenance update.
- id string
- The provider-assigned unique ID for this managed resource.
- vmCluster stringId 
- vmCluster GetUpdates Vm Cluster Updates Vm Cluster Update[] 
- The list of vm_cluster_updates.
- filters
GetVm Cluster Updates Filter[] 
- state string
- The current state of the maintenance update. Dependent on value of lastAction.
- updateType string
- The type of VM cluster maintenance update.
- id str
- The provider-assigned unique ID for this managed resource.
- vm_cluster_ strid 
- vm_cluster_ Sequence[Getupdates Vm Cluster Updates Vm Cluster Update] 
- The list of vm_cluster_updates.
- filters
Sequence[GetVm Cluster Updates Filter] 
- state str
- The current state of the maintenance update. Dependent on value of lastAction.
- update_type str
- The type of VM cluster maintenance update.
- id String
- The provider-assigned unique ID for this managed resource.
- vmCluster StringId 
- vmCluster List<Property Map>Updates 
- The list of vm_cluster_updates.
- filters List<Property Map>
- state String
- The current state of the maintenance update. Dependent on value of lastAction.
- updateType String
- The type of VM cluster maintenance update.
Supporting Types
GetVmClusterUpdatesFilter    
GetVmClusterUpdatesVmClusterUpdate      
- AvailableActions List<string>
- The possible actions that can be performed using this maintenance update.
- Description string
- Details of the maintenance update package.
- Id string
- The OCID of the maintenance update.
- LastAction string
- The update action performed most recently using this maintenance update.
- 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.
- TimeReleased string
- The date and time the maintenance update was released.
- UpdateType string
- A filter to return only resources that match the given update type exactly.
- Version string
- The version of the maintenance update package.
- AvailableActions []string
- The possible actions that can be performed using this maintenance update.
- Description string
- Details of the maintenance update package.
- Id string
- The OCID of the maintenance update.
- LastAction string
- The update action performed most recently using this maintenance update.
- 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.
- TimeReleased string
- The date and time the maintenance update was released.
- UpdateType string
- A filter to return only resources that match the given update type exactly.
- Version string
- The version of the maintenance update package.
- availableActions List<String>
- The possible actions that can be performed using this maintenance update.
- description String
- Details of the maintenance update package.
- id String
- The OCID of the maintenance update.
- lastAction String
- The update action performed most recently using this maintenance update.
- 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.
- timeReleased String
- The date and time the maintenance update was released.
- updateType String
- A filter to return only resources that match the given update type exactly.
- version String
- The version of the maintenance update package.
- availableActions string[]
- The possible actions that can be performed using this maintenance update.
- description string
- Details of the maintenance update package.
- id string
- The OCID of the maintenance update.
- lastAction string
- The update action performed most recently using this maintenance update.
- 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.
- timeReleased string
- The date and time the maintenance update was released.
- updateType string
- A filter to return only resources that match the given update type exactly.
- version string
- The version of the maintenance update package.
- available_actions Sequence[str]
- The possible actions that can be performed using this maintenance update.
- description str
- Details of the maintenance update package.
- id str
- The OCID of the maintenance update.
- last_action str
- The update action performed most recently using this maintenance update.
- 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_released str
- The date and time the maintenance update was released.
- update_type str
- A filter to return only resources that match the given update type exactly.
- version str
- The version of the maintenance update package.
- availableActions List<String>
- The possible actions that can be performed using this maintenance update.
- description String
- Details of the maintenance update package.
- id String
- The OCID of the maintenance update.
- lastAction String
- The update action performed most recently using this maintenance update.
- 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.
- timeReleased String
- The date and time the maintenance update was released.
- updateType String
- A filter to return only resources that match the given update type exactly.
- version String
- The version of the maintenance update package.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.