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

oci.Database.getVmClusterPatch

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 Patch resource in Oracle Cloud Infrastructure Database service.

    Gets information about a specified patch package.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testVmClusterPatch = oci.Database.getVmClusterPatch({
        patchId: testPatch.id,
        vmClusterId: testVmCluster.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_vm_cluster_patch = oci.Database.get_vm_cluster_patch(patch_id=test_patch["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.GetVmClusterPatch(ctx, &database.GetVmClusterPatchArgs{
    			PatchId:     testPatch.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 testVmClusterPatch = Oci.Database.GetVmClusterPatch.Invoke(new()
        {
            PatchId = testPatch.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.GetVmClusterPatchArgs;
    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 testVmClusterPatch = DatabaseFunctions.getVmClusterPatch(GetVmClusterPatchArgs.builder()
                .patchId(testPatch.id())
                .vmClusterId(testVmCluster.id())
                .build());
    
        }
    }
    
    variables:
      testVmClusterPatch:
        fn::invoke:
          Function: oci:Database:getVmClusterPatch
          Arguments:
            patchId: ${testPatch.id}
            vmClusterId: ${testVmCluster.id}
    

    Using getVmClusterPatch

    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 getVmClusterPatch(args: GetVmClusterPatchArgs, opts?: InvokeOptions): Promise<GetVmClusterPatchResult>
    function getVmClusterPatchOutput(args: GetVmClusterPatchOutputArgs, opts?: InvokeOptions): Output<GetVmClusterPatchResult>
    def get_vm_cluster_patch(patch_id: Optional[str] = None,
                             vm_cluster_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetVmClusterPatchResult
    def get_vm_cluster_patch_output(patch_id: Optional[pulumi.Input[str]] = None,
                             vm_cluster_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetVmClusterPatchResult]
    func GetVmClusterPatch(ctx *Context, args *GetVmClusterPatchArgs, opts ...InvokeOption) (*GetVmClusterPatchResult, error)
    func GetVmClusterPatchOutput(ctx *Context, args *GetVmClusterPatchOutputArgs, opts ...InvokeOption) GetVmClusterPatchResultOutput

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

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

    The following arguments are supported:

    PatchId string
    The OCID of the patch.
    VmClusterId string
    The VM cluster OCID.
    PatchId string
    The OCID of the patch.
    VmClusterId string
    The VM cluster OCID.
    patchId String
    The OCID of the patch.
    vmClusterId String
    The VM cluster OCID.
    patchId string
    The OCID of the patch.
    vmClusterId string
    The VM cluster OCID.
    patch_id str
    The OCID of the patch.
    vm_cluster_id str
    The VM cluster OCID.
    patchId String
    The OCID of the patch.
    vmClusterId String
    The VM cluster OCID.

    getVmClusterPatch Result

    The following output properties are available:

    AvailableActions List<string>
    Actions that can possibly be performed using this patch.
    Description string
    The text describing this patch package.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastAction string
    Action that is currently being performed or was completed last.
    LifecycleDetails string
    A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
    PatchId string
    State string
    The current state of the patch as a result of lastAction.
    TimeReleased string
    The date and time that the patch was released.
    Version string
    The version of this patch package.
    VmClusterId string
    AvailableActions []string
    Actions that can possibly be performed using this patch.
    Description string
    The text describing this patch package.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastAction string
    Action that is currently being performed or was completed last.
    LifecycleDetails string
    A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
    PatchId string
    State string
    The current state of the patch as a result of lastAction.
    TimeReleased string
    The date and time that the patch was released.
    Version string
    The version of this patch package.
    VmClusterId string
    availableActions List<String>
    Actions that can possibly be performed using this patch.
    description String
    The text describing this patch package.
    id String
    The provider-assigned unique ID for this managed resource.
    lastAction String
    Action that is currently being performed or was completed last.
    lifecycleDetails String
    A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
    patchId String
    state String
    The current state of the patch as a result of lastAction.
    timeReleased String
    The date and time that the patch was released.
    version String
    The version of this patch package.
    vmClusterId String
    availableActions string[]
    Actions that can possibly be performed using this patch.
    description string
    The text describing this patch package.
    id string
    The provider-assigned unique ID for this managed resource.
    lastAction string
    Action that is currently being performed or was completed last.
    lifecycleDetails string
    A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
    patchId string
    state string
    The current state of the patch as a result of lastAction.
    timeReleased string
    The date and time that the patch was released.
    version string
    The version of this patch package.
    vmClusterId string
    available_actions Sequence[str]
    Actions that can possibly be performed using this patch.
    description str
    The text describing this patch package.
    id str
    The provider-assigned unique ID for this managed resource.
    last_action str
    Action that is currently being performed or was completed last.
    lifecycle_details str
    A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
    patch_id str
    state str
    The current state of the patch as a result of lastAction.
    time_released str
    The date and time that the patch was released.
    version str
    The version of this patch package.
    vm_cluster_id str
    availableActions List<String>
    Actions that can possibly be performed using this patch.
    description String
    The text describing this patch package.
    id String
    The provider-assigned unique ID for this managed resource.
    lastAction String
    Action that is currently being performed or was completed last.
    lifecycleDetails String
    A descriptive text associated with the lifecycleState. Typically can contain additional displayable text.
    patchId String
    state String
    The current state of the patch as a result of lastAction.
    timeReleased String
    The date and time that the patch was released.
    version String
    The version of this patch 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