oci logo
Oracle Cloud Infrastructure v0.6.0, Jan 23 23

oci.Database.getVmClusterPatches

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

Lists the patches applicable to the specified VM cluster in an Exadata Cloud@Customer system.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testVmClusterPatches = Oci.Database.GetVmClusterPatches.Invoke(new()
    {
        VmClusterId = oci_database_vm_cluster.Test_vm_cluster.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Database.GetVmClusterPatches(ctx, &database.GetVmClusterPatchesArgs{
			VmClusterId: oci_database_vm_cluster.Test_vm_cluster.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.GetVmClusterPatchesArgs;
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 testVmClusterPatches = DatabaseFunctions.getVmClusterPatches(GetVmClusterPatchesArgs.builder()
            .vmClusterId(oci_database_vm_cluster.test_vm_cluster().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_vm_cluster_patches = oci.Database.get_vm_cluster_patches(vm_cluster_id=oci_database_vm_cluster["test_vm_cluster"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testVmClusterPatches = oci.Database.getVmClusterPatches({
    vmClusterId: oci_database_vm_cluster.test_vm_cluster.id,
});
variables:
  testVmClusterPatches:
    fn::invoke:
      Function: oci:Database:getVmClusterPatches
      Arguments:
        vmClusterId: ${oci_database_vm_cluster.test_vm_cluster.id}

Using getVmClusterPatches

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 getVmClusterPatches(args: GetVmClusterPatchesArgs, opts?: InvokeOptions): Promise<GetVmClusterPatchesResult>
function getVmClusterPatchesOutput(args: GetVmClusterPatchesOutputArgs, opts?: InvokeOptions): Output<GetVmClusterPatchesResult>
def get_vm_cluster_patches(filters: Optional[Sequence[_database.GetVmClusterPatchesFilter]] = None,
                           vm_cluster_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetVmClusterPatchesResult
def get_vm_cluster_patches_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetVmClusterPatchesFilterArgs]]]] = None,
                           vm_cluster_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetVmClusterPatchesResult]
func GetVmClusterPatches(ctx *Context, args *GetVmClusterPatchesArgs, opts ...InvokeOption) (*GetVmClusterPatchesResult, error)
func GetVmClusterPatchesOutput(ctx *Context, args *GetVmClusterPatchesOutputArgs, opts ...InvokeOption) GetVmClusterPatchesResultOutput

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

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

The following arguments are supported:

getVmClusterPatches Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Patches List<GetVmClusterPatchesPatch>

The list of patches.

VmClusterId string
Filters List<GetVmClusterPatchesFilter>
Id string

The provider-assigned unique ID for this managed resource.

Patches []GetVmClusterPatchesPatch

The list of patches.

VmClusterId string
Filters []GetVmClusterPatchesFilter
id String

The provider-assigned unique ID for this managed resource.

patches List<GetVmClusterPatchesPatch>

The list of patches.

vmClusterId String
filters List<GetVmClusterPatchesFilter>
id string

The provider-assigned unique ID for this managed resource.

patches GetVmClusterPatchesPatch[]

The list of patches.

vmClusterId string
filters GetVmClusterPatchesFilter[]
id str

The provider-assigned unique ID for this managed resource.

patches GetVmClusterPatchesPatch]

The list of patches.

vm_cluster_id str
filters GetVmClusterPatchesFilter]
id String

The provider-assigned unique ID for this managed resource.

patches List<Property Map>

The list of patches.

vmClusterId String
filters List<Property Map>

Supporting Types

GetVmClusterPatchesFilter

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

GetVmClusterPatchesPatch

AvailableActions List<string>

Actions that can possibly be performed using this patch.

Description string

The text describing this patch package.

Id string

The OCID of the patch.

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.

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.

AvailableActions []string

Actions that can possibly be performed using this patch.

Description string

The text describing this patch package.

Id string

The OCID of the patch.

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.

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.

availableActions List<String>

Actions that can possibly be performed using this patch.

description String

The text describing this patch package.

id String

The OCID of the patch.

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.

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.

availableActions string[]

Actions that can possibly be performed using this patch.

description string

The text describing this patch package.

id string

The OCID of the patch.

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.

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.

available_actions Sequence[str]

Actions that can possibly be performed using this patch.

description str

The text describing this patch package.

id str

The OCID of the patch.

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.

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.

availableActions List<String>

Actions that can possibly be performed using this patch.

description String

The text describing this patch package.

id String

The OCID of the patch.

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.

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.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.