Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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[_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:
- Vm
Cluster stringId - The VM cluster OCID.
- Filters
List<Get
Vm Cluster Updates Filter> - State string
- A filter to return only resources that match the given lifecycle state exactly.
- Update
Type string - A filter to return only resources that match the given update type exactly.
- Vm
Cluster stringId - The VM cluster OCID.
- Filters
[]Get
Vm Cluster Updates Filter - State string
- A filter to return only resources that match the given lifecycle state exactly.
- Update
Type string - A filter to return only resources that match the given update type exactly.
- vm
Cluster StringId - The VM cluster OCID.
- filters
List<Get
Vm Cluster Updates Filter> - state String
- A filter to return only resources that match the given lifecycle state exactly.
- update
Type String - A filter to return only resources that match the given update type exactly.
- vm
Cluster stringId - The VM cluster OCID.
- filters
Get
Vm Cluster Updates Filter[] - state string
- A filter to return only resources that match the given lifecycle state exactly.
- update
Type string - A filter to return only resources that match the given update type exactly.
- vm_
cluster_ strid - The VM cluster OCID.
- filters
Sequence[database.
Get Vm 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.
- vm
Cluster StringId - The VM cluster OCID.
- filters List<Property Map>
- state String
- A filter to return only resources that match the given lifecycle state exactly.
- update
Type 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.
- Vm
Cluster stringId - Vm
Cluster List<GetUpdates Vm Cluster Updates Vm Cluster Update> - The list of vm_cluster_updates.
- Filters
List<Get
Vm Cluster Updates Filter> - State string
- The current state of the maintenance update. Dependent on value of
lastAction
. - Update
Type string - The type of VM cluster maintenance update.
- Id string
- The provider-assigned unique ID for this managed resource.
- Vm
Cluster stringId - Vm
Cluster []GetUpdates Vm Cluster Updates Vm Cluster Update - The list of vm_cluster_updates.
- Filters
[]Get
Vm Cluster Updates Filter - State string
- The current state of the maintenance update. Dependent on value of
lastAction
. - Update
Type string - The type of VM cluster maintenance update.
- id String
- The provider-assigned unique ID for this managed resource.
- vm
Cluster StringId - vm
Cluster List<GetUpdates Vm Cluster Updates Vm Cluster Update> - The list of vm_cluster_updates.
- filters
List<Get
Vm Cluster Updates Filter> - state String
- The current state of the maintenance update. Dependent on value of
lastAction
. - update
Type String - The type of VM cluster maintenance update.
- id string
- The provider-assigned unique ID for this managed resource.
- vm
Cluster stringId - vm
Cluster GetUpdates Vm Cluster Updates Vm Cluster Update[] - The list of vm_cluster_updates.
- filters
Get
Vm Cluster Updates Filter[] - state string
- The current state of the maintenance update. Dependent on value of
lastAction
. - update
Type 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[database.updates Get Vm Cluster Updates Vm Cluster Update] - The list of vm_cluster_updates.
- filters
Sequence[database.
Get Vm 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.
- vm
Cluster StringId - vm
Cluster 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
. - update
Type String - The type of VM cluster maintenance update.
Supporting Types
GetVmClusterUpdatesFilter
GetVmClusterUpdatesVmClusterUpdate
- Available
Actions 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.
- Last
Action string - The update action performed most recently using this maintenance update.
- Lifecycle
Details 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.
- Time
Released string - The date and time the maintenance update was released.
- Update
Type 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 []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.
- Last
Action string - The update action performed most recently using this maintenance update.
- Lifecycle
Details 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.
- Time
Released string - The date and time the maintenance update was released.
- Update
Type 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 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.
- last
Action String - The update action performed most recently using this maintenance update.
- lifecycle
Details 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.
- time
Released String - The date and time the maintenance update was released.
- update
Type 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 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.
- last
Action string - The update action performed most recently using this maintenance update.
- lifecycle
Details 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.
- time
Released string - The date and time the maintenance update was released.
- update
Type 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.
- available
Actions 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.
- last
Action String - The update action performed most recently using this maintenance update.
- lifecycle
Details 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.
- time
Released String - The date and time the maintenance update was released.
- update
Type 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.