Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Database.getVmClusterUpdateHistoryEntries
Explore with Pulumi AI
This data source provides the list of Vm Cluster Update History Entries in Oracle Cloud Infrastructure Database service.
Gets the history of the maintenance update actions performed on 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 testVmClusterUpdateHistoryEntries = oci.Database.getVmClusterUpdateHistoryEntries({
vmClusterId: testVmCluster.id,
state: vmClusterUpdateHistoryEntryState,
updateType: vmClusterUpdateHistoryEntryUpdateType,
});
import pulumi
import pulumi_oci as oci
test_vm_cluster_update_history_entries = oci.Database.get_vm_cluster_update_history_entries(vm_cluster_id=test_vm_cluster["id"],
state=vm_cluster_update_history_entry_state,
update_type=vm_cluster_update_history_entry_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.GetVmClusterUpdateHistoryEntries(ctx, &database.GetVmClusterUpdateHistoryEntriesArgs{
VmClusterId: testVmCluster.Id,
State: pulumi.StringRef(vmClusterUpdateHistoryEntryState),
UpdateType: pulumi.StringRef(vmClusterUpdateHistoryEntryUpdateType),
}, 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 testVmClusterUpdateHistoryEntries = Oci.Database.GetVmClusterUpdateHistoryEntries.Invoke(new()
{
VmClusterId = testVmCluster.Id,
State = vmClusterUpdateHistoryEntryState,
UpdateType = vmClusterUpdateHistoryEntryUpdateType,
});
});
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.GetVmClusterUpdateHistoryEntriesArgs;
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 testVmClusterUpdateHistoryEntries = DatabaseFunctions.getVmClusterUpdateHistoryEntries(GetVmClusterUpdateHistoryEntriesArgs.builder()
.vmClusterId(testVmCluster.id())
.state(vmClusterUpdateHistoryEntryState)
.updateType(vmClusterUpdateHistoryEntryUpdateType)
.build());
}
}
variables:
testVmClusterUpdateHistoryEntries:
fn::invoke:
Function: oci:Database:getVmClusterUpdateHistoryEntries
Arguments:
vmClusterId: ${testVmCluster.id}
state: ${vmClusterUpdateHistoryEntryState}
updateType: ${vmClusterUpdateHistoryEntryUpdateType}
Using getVmClusterUpdateHistoryEntries
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 getVmClusterUpdateHistoryEntries(args: GetVmClusterUpdateHistoryEntriesArgs, opts?: InvokeOptions): Promise<GetVmClusterUpdateHistoryEntriesResult>
function getVmClusterUpdateHistoryEntriesOutput(args: GetVmClusterUpdateHistoryEntriesOutputArgs, opts?: InvokeOptions): Output<GetVmClusterUpdateHistoryEntriesResult>
def get_vm_cluster_update_history_entries(filters: Optional[Sequence[_database.GetVmClusterUpdateHistoryEntriesFilter]] = None,
state: Optional[str] = None,
update_type: Optional[str] = None,
vm_cluster_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVmClusterUpdateHistoryEntriesResult
def get_vm_cluster_update_history_entries_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetVmClusterUpdateHistoryEntriesFilterArgs]]]] = 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[GetVmClusterUpdateHistoryEntriesResult]
func GetVmClusterUpdateHistoryEntries(ctx *Context, args *GetVmClusterUpdateHistoryEntriesArgs, opts ...InvokeOption) (*GetVmClusterUpdateHistoryEntriesResult, error)
func GetVmClusterUpdateHistoryEntriesOutput(ctx *Context, args *GetVmClusterUpdateHistoryEntriesOutputArgs, opts ...InvokeOption) GetVmClusterUpdateHistoryEntriesResultOutput
> Note: This function is named GetVmClusterUpdateHistoryEntries
in the Go SDK.
public static class GetVmClusterUpdateHistoryEntries
{
public static Task<GetVmClusterUpdateHistoryEntriesResult> InvokeAsync(GetVmClusterUpdateHistoryEntriesArgs args, InvokeOptions? opts = null)
public static Output<GetVmClusterUpdateHistoryEntriesResult> Invoke(GetVmClusterUpdateHistoryEntriesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVmClusterUpdateHistoryEntriesResult> getVmClusterUpdateHistoryEntries(GetVmClusterUpdateHistoryEntriesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getVmClusterUpdateHistoryEntries:getVmClusterUpdateHistoryEntries
arguments:
# arguments dictionary
The following arguments are supported:
- Vm
Cluster stringId - The VM cluster OCID.
- Filters
List<Get
Vm Cluster Update History Entries 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 Update History Entries 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 Update History Entries 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 Update History Entries 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 Update History Entries 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.
getVmClusterUpdateHistoryEntries Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Vm
Cluster stringId - Vm
Cluster List<GetUpdate History Entries Vm Cluster Update History Entries Vm Cluster Update History Entry> - The list of vm_cluster_update_history_entries.
- Filters
List<Get
Vm Cluster Update History Entries Filter> - State string
- The current lifecycle state of the maintenance update operation.
- 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 []GetUpdate History Entries Vm Cluster Update History Entries Vm Cluster Update History Entry - The list of vm_cluster_update_history_entries.
- Filters
[]Get
Vm Cluster Update History Entries Filter - State string
- The current lifecycle state of the maintenance update operation.
- 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<GetUpdate History Entries Vm Cluster Update History Entries Vm Cluster Update History Entry> - The list of vm_cluster_update_history_entries.
- filters
List<Get
Vm Cluster Update History Entries Filter> - state String
- The current lifecycle state of the maintenance update operation.
- 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 GetUpdate History Entries Vm Cluster Update History Entries Vm Cluster Update History Entry[] - The list of vm_cluster_update_history_entries.
- filters
Get
Vm Cluster Update History Entries Filter[] - state string
- The current lifecycle state of the maintenance update operation.
- 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.update_ history_ entries Get Vm Cluster Update History Entries Vm Cluster Update History Entry] - The list of vm_cluster_update_history_entries.
- filters
Sequence[database.
Get Vm Cluster Update History Entries Filter] - state str
- The current lifecycle state of the maintenance update operation.
- 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>Update History Entries - The list of vm_cluster_update_history_entries.
- filters List<Property Map>
- state String
- The current lifecycle state of the maintenance update operation.
- update
Type String - The type of VM cluster maintenance update.
Supporting Types
GetVmClusterUpdateHistoryEntriesFilter
GetVmClusterUpdateHistoryEntriesVmClusterUpdateHistoryEntry
- Id string
- The OCID of the maintenance update history entry.
- 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
Completed string - The date and time when the maintenance update action completed.
- Time
Started string - The date and time when the maintenance update action started.
- Update
Action string - The update action performed using this maintenance update.
- Update
Id string - The OCID of the maintenance update.
- Update
Type string - A filter to return only resources that match the given update type exactly.
- Id string
- The OCID of the maintenance update history entry.
- 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
Completed string - The date and time when the maintenance update action completed.
- Time
Started string - The date and time when the maintenance update action started.
- Update
Action string - The update action performed using this maintenance update.
- Update
Id string - The OCID of the maintenance update.
- Update
Type string - A filter to return only resources that match the given update type exactly.
- id String
- The OCID of the maintenance update history entry.
- 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
Completed String - The date and time when the maintenance update action completed.
- time
Started String - The date and time when the maintenance update action started.
- update
Action String - The update action performed using this maintenance update.
- update
Id String - The OCID of the maintenance update.
- update
Type String - A filter to return only resources that match the given update type exactly.
- id string
- The OCID of the maintenance update history entry.
- 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
Completed string - The date and time when the maintenance update action completed.
- time
Started string - The date and time when the maintenance update action started.
- update
Action string - The update action performed using this maintenance update.
- update
Id string - The OCID of the maintenance update.
- update
Type string - A filter to return only resources that match the given update type exactly.
- id str
- The OCID of the maintenance update history entry.
- 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_
completed str - The date and time when the maintenance update action completed.
- time_
started str - The date and time when the maintenance update action started.
- update_
action str - The update action performed using this maintenance update.
- update_
id str - The OCID of the maintenance update.
- update_
type str - A filter to return only resources that match the given update type exactly.
- id String
- The OCID of the maintenance update history entry.
- 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
Completed String - The date and time when the maintenance update action completed.
- time
Started String - The date and time when the maintenance update action started.
- update
Action String - The update action performed using this maintenance update.
- update
Id String - The OCID of the maintenance update.
- update
Type String - A filter to return only resources that match the given update type exactly.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.