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

oci.Database.getVmClusterUpdates

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 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[_database.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[_database.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getVmClusterUpdates:getVmClusterUpdates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    VmClusterId string
    The VM cluster OCID.
    Filters List<GetVmClusterUpdatesFilter>
    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 []GetVmClusterUpdatesFilter
    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<GetVmClusterUpdatesFilter>
    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 GetVmClusterUpdatesFilter[]
    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.GetVmClusterUpdatesFilter]
    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.

    getVmClusterUpdates Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    VmClusterId string
    VmClusterUpdates List<GetVmClusterUpdatesVmClusterUpdate>
    The list of vm_cluster_updates.
    Filters List<GetVmClusterUpdatesFilter>
    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.
    VmClusterId string
    VmClusterUpdates []GetVmClusterUpdatesVmClusterUpdate
    The list of vm_cluster_updates.
    Filters []GetVmClusterUpdatesFilter
    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.
    vmClusterId String
    vmClusterUpdates List<GetVmClusterUpdatesVmClusterUpdate>
    The list of vm_cluster_updates.
    filters List<GetVmClusterUpdatesFilter>
    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.
    vmClusterId string
    vmClusterUpdates GetVmClusterUpdatesVmClusterUpdate[]
    The list of vm_cluster_updates.
    filters GetVmClusterUpdatesFilter[]
    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_id str
    vm_cluster_updates Sequence[database.GetVmClusterUpdatesVmClusterUpdate]
    The list of vm_cluster_updates.
    filters Sequence[database.GetVmClusterUpdatesFilter]
    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.
    vmClusterId String
    vmClusterUpdates List<Property Map>
    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

    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

    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi