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

oci.Database.getVmClusterUpdate

Explore with Pulumi AI

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

    This data source provides details about a specific Vm Cluster Update resource in Oracle Cloud Infrastructure Database service.

    Gets information about a specified maintenance update package for a VM cluster. Applies to Exadata Cloud@Customer instances only.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testVmClusterUpdate = oci.Database.getVmClusterUpdate({
        updateId: testUpdate.id,
        vmClusterId: testVmCluster.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_vm_cluster_update = oci.Database.get_vm_cluster_update(update_id=test_update["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.GetVmClusterUpdate(ctx, &database.GetVmClusterUpdateArgs{
    			UpdateId:    testUpdate.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 testVmClusterUpdate = Oci.Database.GetVmClusterUpdate.Invoke(new()
        {
            UpdateId = testUpdate.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.GetVmClusterUpdateArgs;
    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 testVmClusterUpdate = DatabaseFunctions.getVmClusterUpdate(GetVmClusterUpdateArgs.builder()
                .updateId(testUpdate.id())
                .vmClusterId(testVmCluster.id())
                .build());
    
        }
    }
    
    variables:
      testVmClusterUpdate:
        fn::invoke:
          Function: oci:Database:getVmClusterUpdate
          Arguments:
            updateId: ${testUpdate.id}
            vmClusterId: ${testVmCluster.id}
    

    Using getVmClusterUpdate

    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 getVmClusterUpdate(args: GetVmClusterUpdateArgs, opts?: InvokeOptions): Promise<GetVmClusterUpdateResult>
    function getVmClusterUpdateOutput(args: GetVmClusterUpdateOutputArgs, opts?: InvokeOptions): Output<GetVmClusterUpdateResult>
    def get_vm_cluster_update(update_id: Optional[str] = None,
                              vm_cluster_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetVmClusterUpdateResult
    def get_vm_cluster_update_output(update_id: Optional[pulumi.Input[str]] = None,
                              vm_cluster_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetVmClusterUpdateResult]
    func GetVmClusterUpdate(ctx *Context, args *GetVmClusterUpdateArgs, opts ...InvokeOption) (*GetVmClusterUpdateResult, error)
    func GetVmClusterUpdateOutput(ctx *Context, args *GetVmClusterUpdateOutputArgs, opts ...InvokeOption) GetVmClusterUpdateResultOutput

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

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

    The following arguments are supported:

    UpdateId string
    The OCID of the maintenance update.
    VmClusterId string
    The VM cluster OCID.
    UpdateId string
    The OCID of the maintenance update.
    VmClusterId string
    The VM cluster OCID.
    updateId String
    The OCID of the maintenance update.
    vmClusterId String
    The VM cluster OCID.
    updateId string
    The OCID of the maintenance update.
    vmClusterId string
    The VM cluster OCID.
    update_id str
    The OCID of the maintenance update.
    vm_cluster_id str
    The VM cluster OCID.
    updateId String
    The OCID of the maintenance update.
    vmClusterId String
    The VM cluster OCID.

    getVmClusterUpdate Result

    The following output properties are available:

    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 provider-assigned unique ID for this managed resource.
    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
    The current state of the maintenance update. Dependent on value of lastAction.
    TimeReleased string
    The date and time the maintenance update was released.
    UpdateId string
    UpdateType string
    The type of VM cluster maintenance update.
    Version string
    The version of the maintenance update package.
    VmClusterId string
    AvailableActions []string
    The possible actions that can be performed using this maintenance update.
    Description string
    Details of the maintenance update package.
    Id string
    The provider-assigned unique ID for this managed resource.
    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
    The current state of the maintenance update. Dependent on value of lastAction.
    TimeReleased string
    The date and time the maintenance update was released.
    UpdateId string
    UpdateType string
    The type of VM cluster maintenance update.
    Version string
    The version of the maintenance update package.
    VmClusterId string
    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 provider-assigned unique ID for this managed resource.
    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
    The current state of the maintenance update. Dependent on value of lastAction.
    timeReleased String
    The date and time the maintenance update was released.
    updateId String
    updateType String
    The type of VM cluster maintenance update.
    version String
    The version of the maintenance update package.
    vmClusterId String
    availableActions string[]
    The possible actions that can be performed using this maintenance update.
    description string
    Details of the maintenance update package.
    id string
    The provider-assigned unique ID for this managed resource.
    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
    The current state of the maintenance update. Dependent on value of lastAction.
    timeReleased string
    The date and time the maintenance update was released.
    updateId string
    updateType string
    The type of VM cluster maintenance update.
    version string
    The version of the maintenance update package.
    vmClusterId string
    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 provider-assigned unique ID for this managed resource.
    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
    The current state of the maintenance update. Dependent on value of lastAction.
    time_released str
    The date and time the maintenance update was released.
    update_id str
    update_type str
    The type of VM cluster maintenance update.
    version str
    The version of the maintenance update package.
    vm_cluster_id str
    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 provider-assigned unique ID for this managed resource.
    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
    The current state of the maintenance update. Dependent on value of lastAction.
    timeReleased String
    The date and time the maintenance update was released.
    updateId String
    updateType String
    The type of VM cluster maintenance update.
    version String
    The version of the maintenance update package.
    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.17.0 published on Friday, Nov 15, 2024 by Pulumi