1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getManagedInstanceInstalledWindowsUpdates
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.OsManagementHub.getManagedInstanceInstalledWindowsUpdates

Explore with Pulumi AI

This data source provides the list of Managed Instance Installed Windows Updates in Oracle Cloud Infrastructure Os Management Hub service.

Returns a list of Windows updates that have been installed on the specified managed instance.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testManagedInstanceInstalledWindowsUpdates = oci.OsManagementHub.getManagedInstanceInstalledWindowsUpdates({
    managedInstanceId: testManagedInstance.id,
    compartmentId: compartmentId,
    displayName: managedInstanceInstalledWindowsUpdateDisplayName,
    displayNameContains: managedInstanceInstalledWindowsUpdateDisplayNameContains,
    names: managedInstanceInstalledWindowsUpdateName,
});
Copy
import pulumi
import pulumi_oci as oci

test_managed_instance_installed_windows_updates = oci.OsManagementHub.get_managed_instance_installed_windows_updates(managed_instance_id=test_managed_instance["id"],
    compartment_id=compartment_id,
    display_name=managed_instance_installed_windows_update_display_name,
    display_name_contains=managed_instance_installed_windows_update_display_name_contains,
    names=managed_instance_installed_windows_update_name)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := osmanagementhub.GetManagedInstanceInstalledWindowsUpdates(ctx, &osmanagementhub.GetManagedInstanceInstalledWindowsUpdatesArgs{
			ManagedInstanceId:   testManagedInstance.Id,
			CompartmentId:       pulumi.StringRef(compartmentId),
			DisplayName:         pulumi.StringRef(managedInstanceInstalledWindowsUpdateDisplayName),
			DisplayNameContains: pulumi.StringRef(managedInstanceInstalledWindowsUpdateDisplayNameContains),
			Names:               managedInstanceInstalledWindowsUpdateName,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testManagedInstanceInstalledWindowsUpdates = Oci.OsManagementHub.GetManagedInstanceInstalledWindowsUpdates.Invoke(new()
    {
        ManagedInstanceId = testManagedInstance.Id,
        CompartmentId = compartmentId,
        DisplayName = managedInstanceInstalledWindowsUpdateDisplayName,
        DisplayNameContains = managedInstanceInstalledWindowsUpdateDisplayNameContains,
        Names = managedInstanceInstalledWindowsUpdateName,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.OsManagementHubFunctions;
import com.pulumi.oci.OsManagementHub.inputs.GetManagedInstanceInstalledWindowsUpdatesArgs;
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 testManagedInstanceInstalledWindowsUpdates = OsManagementHubFunctions.getManagedInstanceInstalledWindowsUpdates(GetManagedInstanceInstalledWindowsUpdatesArgs.builder()
            .managedInstanceId(testManagedInstance.id())
            .compartmentId(compartmentId)
            .displayName(managedInstanceInstalledWindowsUpdateDisplayName)
            .displayNameContains(managedInstanceInstalledWindowsUpdateDisplayNameContains)
            .names(managedInstanceInstalledWindowsUpdateName)
            .build());

    }
}
Copy
variables:
  testManagedInstanceInstalledWindowsUpdates:
    fn::invoke:
      function: oci:OsManagementHub:getManagedInstanceInstalledWindowsUpdates
      arguments:
        managedInstanceId: ${testManagedInstance.id}
        compartmentId: ${compartmentId}
        displayName: ${managedInstanceInstalledWindowsUpdateDisplayName}
        displayNameContains: ${managedInstanceInstalledWindowsUpdateDisplayNameContains}
        names: ${managedInstanceInstalledWindowsUpdateName}
Copy

Using getManagedInstanceInstalledWindowsUpdates

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 getManagedInstanceInstalledWindowsUpdates(args: GetManagedInstanceInstalledWindowsUpdatesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceInstalledWindowsUpdatesResult>
function getManagedInstanceInstalledWindowsUpdatesOutput(args: GetManagedInstanceInstalledWindowsUpdatesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceInstalledWindowsUpdatesResult>
Copy
def get_managed_instance_installed_windows_updates(compartment_id: Optional[str] = None,
                                                   display_name: Optional[str] = None,
                                                   display_name_contains: Optional[str] = None,
                                                   filters: Optional[Sequence[_osmanagementhub.GetManagedInstanceInstalledWindowsUpdatesFilter]] = None,
                                                   managed_instance_id: Optional[str] = None,
                                                   names: Optional[Sequence[str]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetManagedInstanceInstalledWindowsUpdatesResult
def get_managed_instance_installed_windows_updates_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                   display_name: Optional[pulumi.Input[str]] = None,
                                                   display_name_contains: Optional[pulumi.Input[str]] = None,
                                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetManagedInstanceInstalledWindowsUpdatesFilterArgs]]]] = None,
                                                   managed_instance_id: Optional[pulumi.Input[str]] = None,
                                                   names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceInstalledWindowsUpdatesResult]
Copy
func GetManagedInstanceInstalledWindowsUpdates(ctx *Context, args *GetManagedInstanceInstalledWindowsUpdatesArgs, opts ...InvokeOption) (*GetManagedInstanceInstalledWindowsUpdatesResult, error)
func GetManagedInstanceInstalledWindowsUpdatesOutput(ctx *Context, args *GetManagedInstanceInstalledWindowsUpdatesOutputArgs, opts ...InvokeOption) GetManagedInstanceInstalledWindowsUpdatesResultOutput
Copy

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

public static class GetManagedInstanceInstalledWindowsUpdates 
{
    public static Task<GetManagedInstanceInstalledWindowsUpdatesResult> InvokeAsync(GetManagedInstanceInstalledWindowsUpdatesArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedInstanceInstalledWindowsUpdatesResult> Invoke(GetManagedInstanceInstalledWindowsUpdatesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetManagedInstanceInstalledWindowsUpdatesResult> getManagedInstanceInstalledWindowsUpdates(GetManagedInstanceInstalledWindowsUpdatesArgs args, InvokeOptions options)
public static Output<GetManagedInstanceInstalledWindowsUpdatesResult> getManagedInstanceInstalledWindowsUpdates(GetManagedInstanceInstalledWindowsUpdatesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:OsManagementHub/getManagedInstanceInstalledWindowsUpdates:getManagedInstanceInstalledWindowsUpdates
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ManagedInstanceId This property is required. string
The OCID of the managed instance.
CompartmentId string
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
DisplayName string
A filter to return resources that match the given user-friendly name.
DisplayNameContains string
A filter to return resources that may partially match the given display name.
Filters Changes to this property will trigger replacement. List<GetManagedInstanceInstalledWindowsUpdatesFilter>
Names List<string>
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
ManagedInstanceId This property is required. string
The OCID of the managed instance.
CompartmentId string
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
DisplayName string
A filter to return resources that match the given user-friendly name.
DisplayNameContains string
A filter to return resources that may partially match the given display name.
Filters Changes to this property will trigger replacement. []GetManagedInstanceInstalledWindowsUpdatesFilter
Names []string
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
managedInstanceId This property is required. String
The OCID of the managed instance.
compartmentId String
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
displayName String
A filter to return resources that match the given user-friendly name.
displayNameContains String
A filter to return resources that may partially match the given display name.
filters Changes to this property will trigger replacement. List<GetManagedInstanceInstalledWindowsUpdatesFilter>
names List<String>
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
managedInstanceId This property is required. string
The OCID of the managed instance.
compartmentId string
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
displayName string
A filter to return resources that match the given user-friendly name.
displayNameContains string
A filter to return resources that may partially match the given display name.
filters Changes to this property will trigger replacement. GetManagedInstanceInstalledWindowsUpdatesFilter[]
names string[]
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
managed_instance_id This property is required. str
The OCID of the managed instance.
compartment_id str
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
display_name str
A filter to return resources that match the given user-friendly name.
display_name_contains str
A filter to return resources that may partially match the given display name.
filters Changes to this property will trigger replacement. Sequence[osmanagementhub.GetManagedInstanceInstalledWindowsUpdatesFilter]
names Sequence[str]
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
managedInstanceId This property is required. String
The OCID of the managed instance.
compartmentId String
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
displayName String
A filter to return resources that match the given user-friendly name.
displayNameContains String
A filter to return resources that may partially match the given display name.
filters Changes to this property will trigger replacement. List<Property Map>
names List<String>
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'

getManagedInstanceInstalledWindowsUpdates Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
InstalledWindowsUpdateCollections List<GetManagedInstanceInstalledWindowsUpdatesInstalledWindowsUpdateCollection>
The list of installed_windows_update_collection.
ManagedInstanceId string
CompartmentId string
DisplayName string
DisplayNameContains string
Filters List<GetManagedInstanceInstalledWindowsUpdatesFilter>
Names List<string>
Name of the Windows update.
Id string
The provider-assigned unique ID for this managed resource.
InstalledWindowsUpdateCollections []GetManagedInstanceInstalledWindowsUpdatesInstalledWindowsUpdateCollection
The list of installed_windows_update_collection.
ManagedInstanceId string
CompartmentId string
DisplayName string
DisplayNameContains string
Filters []GetManagedInstanceInstalledWindowsUpdatesFilter
Names []string
Name of the Windows update.
id String
The provider-assigned unique ID for this managed resource.
installedWindowsUpdateCollections List<GetManagedInstanceInstalledWindowsUpdatesInstalledWindowsUpdateCollection>
The list of installed_windows_update_collection.
managedInstanceId String
compartmentId String
displayName String
displayNameContains String
filters List<GetManagedInstanceInstalledWindowsUpdatesFilter>
names List<String>
Name of the Windows update.
id string
The provider-assigned unique ID for this managed resource.
installedWindowsUpdateCollections GetManagedInstanceInstalledWindowsUpdatesInstalledWindowsUpdateCollection[]
The list of installed_windows_update_collection.
managedInstanceId string
compartmentId string
displayName string
displayNameContains string
filters GetManagedInstanceInstalledWindowsUpdatesFilter[]
names string[]
Name of the Windows update.
id String
The provider-assigned unique ID for this managed resource.
installedWindowsUpdateCollections List<Property Map>
The list of installed_windows_update_collection.
managedInstanceId String
compartmentId String
displayName String
displayNameContains String
filters List<Property Map>
names List<String>
Name of the Windows update.

Supporting Types

GetManagedInstanceInstalledWindowsUpdatesFilter

Name This property is required. string
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
Values This property is required. List<string>
Regex bool
Name This property is required. string
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
Values This property is required. []string
Regex bool
name This property is required. String
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
values This property is required. List<String>
regex Boolean
name This property is required. string
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
values This property is required. string[]
regex boolean
name This property is required. str
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
values This property is required. Sequence[str]
regex bool
name This property is required. String
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
values This property is required. List<String>
regex Boolean

GetManagedInstanceInstalledWindowsUpdatesInstalledWindowsUpdateCollection

Items This property is required. List<GetManagedInstanceInstalledWindowsUpdatesInstalledWindowsUpdateCollectionItem>
List of installed Windows updates.
Items This property is required. []GetManagedInstanceInstalledWindowsUpdatesInstalledWindowsUpdateCollectionItem
List of installed Windows updates.
items This property is required. List<GetManagedInstanceInstalledWindowsUpdatesInstalledWindowsUpdateCollectionItem>
List of installed Windows updates.
items This property is required. GetManagedInstanceInstalledWindowsUpdatesInstalledWindowsUpdateCollectionItem[]
List of installed Windows updates.
items This property is required. List<Property Map>
List of installed Windows updates.

GetManagedInstanceInstalledWindowsUpdatesInstalledWindowsUpdateCollectionItem

Name This property is required. string
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
UpdateId This property is required. string
Unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
UpdateType This property is required. string
The type of Windows update.
Name This property is required. string
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
UpdateId This property is required. string
Unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
UpdateType This property is required. string
The type of Windows update.
name This property is required. String
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
updateId This property is required. String
Unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
updateType This property is required. String
The type of Windows update.
name This property is required. string
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
updateId This property is required. string
Unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
updateType This property is required. string
The type of Windows update.
name This property is required. str
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
update_id This property is required. str
Unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
update_type This property is required. str
The type of Windows update.
name This property is required. String
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
updateId This property is required. String
Unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft. Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
updateType This property is required. String
The type of Windows update.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.