Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagementHub.getManagedInstanceAvailableWindowsUpdates
Explore with Pulumi AI
This data source provides the list of Managed Instance Available Windows Updates in Oracle Cloud Infrastructure Os Management Hub service.
Returns a list of Windows updates that can be installed on the specified managed instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstanceAvailableWindowsUpdates = oci.OsManagementHub.getManagedInstanceAvailableWindowsUpdates({
    managedInstanceId: testManagedInstance.id,
    classificationTypes: managedInstanceAvailableWindowsUpdateClassificationType,
    compartmentId: compartmentId,
    displayName: managedInstanceAvailableWindowsUpdateDisplayName,
    displayNameContains: managedInstanceAvailableWindowsUpdateDisplayNameContains,
    isInstallable: managedInstanceAvailableWindowsUpdateIsInstallable,
    names: managedInstanceAvailableWindowsUpdateName,
});
import pulumi
import pulumi_oci as oci
test_managed_instance_available_windows_updates = oci.OsManagementHub.get_managed_instance_available_windows_updates(managed_instance_id=test_managed_instance["id"],
    classification_types=managed_instance_available_windows_update_classification_type,
    compartment_id=compartment_id,
    display_name=managed_instance_available_windows_update_display_name,
    display_name_contains=managed_instance_available_windows_update_display_name_contains,
    is_installable=managed_instance_available_windows_update_is_installable,
    names=managed_instance_available_windows_update_name)
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.GetManagedInstanceAvailableWindowsUpdates(ctx, &osmanagementhub.GetManagedInstanceAvailableWindowsUpdatesArgs{
			ManagedInstanceId:   testManagedInstance.Id,
			ClassificationTypes: managedInstanceAvailableWindowsUpdateClassificationType,
			CompartmentId:       pulumi.StringRef(compartmentId),
			DisplayName:         pulumi.StringRef(managedInstanceAvailableWindowsUpdateDisplayName),
			DisplayNameContains: pulumi.StringRef(managedInstanceAvailableWindowsUpdateDisplayNameContains),
			IsInstallable:       pulumi.StringRef(managedInstanceAvailableWindowsUpdateIsInstallable),
			Names:               managedInstanceAvailableWindowsUpdateName,
		}, 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 testManagedInstanceAvailableWindowsUpdates = Oci.OsManagementHub.GetManagedInstanceAvailableWindowsUpdates.Invoke(new()
    {
        ManagedInstanceId = testManagedInstance.Id,
        ClassificationTypes = managedInstanceAvailableWindowsUpdateClassificationType,
        CompartmentId = compartmentId,
        DisplayName = managedInstanceAvailableWindowsUpdateDisplayName,
        DisplayNameContains = managedInstanceAvailableWindowsUpdateDisplayNameContains,
        IsInstallable = managedInstanceAvailableWindowsUpdateIsInstallable,
        Names = managedInstanceAvailableWindowsUpdateName,
    });
});
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.GetManagedInstanceAvailableWindowsUpdatesArgs;
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 testManagedInstanceAvailableWindowsUpdates = OsManagementHubFunctions.getManagedInstanceAvailableWindowsUpdates(GetManagedInstanceAvailableWindowsUpdatesArgs.builder()
            .managedInstanceId(testManagedInstance.id())
            .classificationTypes(managedInstanceAvailableWindowsUpdateClassificationType)
            .compartmentId(compartmentId)
            .displayName(managedInstanceAvailableWindowsUpdateDisplayName)
            .displayNameContains(managedInstanceAvailableWindowsUpdateDisplayNameContains)
            .isInstallable(managedInstanceAvailableWindowsUpdateIsInstallable)
            .names(managedInstanceAvailableWindowsUpdateName)
            .build());
    }
}
variables:
  testManagedInstanceAvailableWindowsUpdates:
    fn::invoke:
      function: oci:OsManagementHub:getManagedInstanceAvailableWindowsUpdates
      arguments:
        managedInstanceId: ${testManagedInstance.id}
        classificationTypes: ${managedInstanceAvailableWindowsUpdateClassificationType}
        compartmentId: ${compartmentId}
        displayName: ${managedInstanceAvailableWindowsUpdateDisplayName}
        displayNameContains: ${managedInstanceAvailableWindowsUpdateDisplayNameContains}
        isInstallable: ${managedInstanceAvailableWindowsUpdateIsInstallable}
        names: ${managedInstanceAvailableWindowsUpdateName}
Using getManagedInstanceAvailableWindowsUpdates
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 getManagedInstanceAvailableWindowsUpdates(args: GetManagedInstanceAvailableWindowsUpdatesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceAvailableWindowsUpdatesResult>
function getManagedInstanceAvailableWindowsUpdatesOutput(args: GetManagedInstanceAvailableWindowsUpdatesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceAvailableWindowsUpdatesResult>def get_managed_instance_available_windows_updates(classification_types: Optional[Sequence[str]] = None,
                                                   compartment_id: Optional[str] = None,
                                                   display_name: Optional[str] = None,
                                                   display_name_contains: Optional[str] = None,
                                                   filters: Optional[Sequence[GetManagedInstanceAvailableWindowsUpdatesFilter]] = None,
                                                   is_installable: Optional[str] = None,
                                                   managed_instance_id: Optional[str] = None,
                                                   names: Optional[Sequence[str]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> GetManagedInstanceAvailableWindowsUpdatesResult
def get_managed_instance_available_windows_updates_output(classification_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                   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[GetManagedInstanceAvailableWindowsUpdatesFilterArgs]]]] = None,
                                                   is_installable: Optional[pulumi.Input[str]] = None,
                                                   managed_instance_id: Optional[pulumi.Input[str]] = None,
                                                   names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                   opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceAvailableWindowsUpdatesResult]func GetManagedInstanceAvailableWindowsUpdates(ctx *Context, args *GetManagedInstanceAvailableWindowsUpdatesArgs, opts ...InvokeOption) (*GetManagedInstanceAvailableWindowsUpdatesResult, error)
func GetManagedInstanceAvailableWindowsUpdatesOutput(ctx *Context, args *GetManagedInstanceAvailableWindowsUpdatesOutputArgs, opts ...InvokeOption) GetManagedInstanceAvailableWindowsUpdatesResultOutput> Note: This function is named GetManagedInstanceAvailableWindowsUpdates in the Go SDK.
public static class GetManagedInstanceAvailableWindowsUpdates 
{
    public static Task<GetManagedInstanceAvailableWindowsUpdatesResult> InvokeAsync(GetManagedInstanceAvailableWindowsUpdatesArgs args, InvokeOptions? opts = null)
    public static Output<GetManagedInstanceAvailableWindowsUpdatesResult> Invoke(GetManagedInstanceAvailableWindowsUpdatesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetManagedInstanceAvailableWindowsUpdatesResult> getManagedInstanceAvailableWindowsUpdates(GetManagedInstanceAvailableWindowsUpdatesArgs args, InvokeOptions options)
public static Output<GetManagedInstanceAvailableWindowsUpdatesResult> getManagedInstanceAvailableWindowsUpdates(GetManagedInstanceAvailableWindowsUpdatesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagementHub/getManagedInstanceAvailableWindowsUpdates:getManagedInstanceAvailableWindowsUpdates
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ManagedInstance stringId 
- The OCID of the managed instance.
- ClassificationTypes List<string>
- A filter to return only packages that match the given update classification type.
- 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.
- DisplayName stringContains 
- A filter to return resources that may partially match the given display name.
- Filters
List<GetManaged Instance Available Windows Updates Filter> 
- IsInstallable string
- Indicates if the update can be installed by the OS Management Hub service.
- 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'
- ManagedInstance stringId 
- The OCID of the managed instance.
- ClassificationTypes []string
- A filter to return only packages that match the given update classification type.
- 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.
- DisplayName stringContains 
- A filter to return resources that may partially match the given display name.
- Filters
[]GetManaged Instance Available Windows Updates Filter 
- IsInstallable string
- Indicates if the update can be installed by the OS Management Hub service.
- 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'
- managedInstance StringId 
- The OCID of the managed instance.
- classificationTypes List<String>
- A filter to return only packages that match the given update classification type.
- 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.
- displayName StringContains 
- A filter to return resources that may partially match the given display name.
- filters
List<GetManaged Instance Available Windows Updates Filter> 
- isInstallable String
- Indicates if the update can be installed by the OS Management Hub service.
- 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'
- managedInstance stringId 
- The OCID of the managed instance.
- classificationTypes string[]
- A filter to return only packages that match the given update classification type.
- 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.
- displayName stringContains 
- A filter to return resources that may partially match the given display name.
- filters
GetManaged Instance Available Windows Updates Filter[] 
- isInstallable string
- Indicates if the update can be installed by the OS Management Hub service.
- 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_ strid 
- The OCID of the managed instance.
- classification_types Sequence[str]
- A filter to return only packages that match the given update classification type.
- 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_ strcontains 
- A filter to return resources that may partially match the given display name.
- filters
Sequence[GetManaged Instance Available Windows Updates Filter] 
- is_installable str
- Indicates if the update can be installed by the OS Management Hub service.
- 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'
- managedInstance StringId 
- The OCID of the managed instance.
- classificationTypes List<String>
- A filter to return only packages that match the given update classification type.
- 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.
- displayName StringContains 
- A filter to return resources that may partially match the given display name.
- filters List<Property Map>
- isInstallable String
- Indicates if the update can be installed by the OS Management Hub service.
- 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'
getManagedInstanceAvailableWindowsUpdates Result
The following output properties are available:
- AvailableWindows List<GetUpdate Collections Managed Instance Available Windows Updates Available Windows Update Collection> 
- The list of available_windows_update_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedInstance stringId 
- ClassificationTypes List<string>
- CompartmentId string
- DisplayName string
- DisplayName stringContains 
- Filters
List<GetManaged Instance Available Windows Updates Filter> 
- IsInstallable string
- Names List<string>
- Name of the Windows update.
- AvailableWindows []GetUpdate Collections Managed Instance Available Windows Updates Available Windows Update Collection 
- The list of available_windows_update_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedInstance stringId 
- ClassificationTypes []string
- CompartmentId string
- DisplayName string
- DisplayName stringContains 
- Filters
[]GetManaged Instance Available Windows Updates Filter 
- IsInstallable string
- Names []string
- Name of the Windows update.
- availableWindows List<GetUpdate Collections Managed Instance Available Windows Updates Available Windows Update Collection> 
- The list of available_windows_update_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstance StringId 
- classificationTypes List<String>
- compartmentId String
- displayName String
- displayName StringContains 
- filters
List<GetManaged Instance Available Windows Updates Filter> 
- isInstallable String
- names List<String>
- Name of the Windows update.
- availableWindows GetUpdate Collections Managed Instance Available Windows Updates Available Windows Update Collection[] 
- The list of available_windows_update_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- managedInstance stringId 
- classificationTypes string[]
- compartmentId string
- displayName string
- displayName stringContains 
- filters
GetManaged Instance Available Windows Updates Filter[] 
- isInstallable string
- names string[]
- Name of the Windows update.
- available_windows_ Sequence[Getupdate_ collections Managed Instance Available Windows Updates Available Windows Update Collection] 
- The list of available_windows_update_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_instance_ strid 
- classification_types Sequence[str]
- compartment_id str
- display_name str
- display_name_ strcontains 
- filters
Sequence[GetManaged Instance Available Windows Updates Filter] 
- is_installable str
- names Sequence[str]
- Name of the Windows update.
- availableWindows List<Property Map>Update Collections 
- The list of available_windows_update_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- managedInstance StringId 
- classificationTypes List<String>
- compartmentId String
- displayName String
- displayName StringContains 
- filters List<Property Map>
- isInstallable String
- names List<String>
- Name of the Windows update.
Supporting Types
GetManagedInstanceAvailableWindowsUpdatesAvailableWindowsUpdateCollection         
- Items
List<GetManaged Instance Available Windows Updates Available Windows Update Collection Item> 
- List of available Windows updates.
- Items
[]GetManaged Instance Available Windows Updates Available Windows Update Collection Item 
- List of available Windows updates.
- items
List<GetManaged Instance Available Windows Updates Available Windows Update Collection Item> 
- List of available Windows updates.
- items
GetManaged Instance Available Windows Updates Available Windows Update Collection Item[] 
- List of available Windows updates.
- items
Sequence[GetManaged Instance Available Windows Updates Available Windows Update Collection Item] 
- List of available Windows updates.
- items List<Property Map>
- List of available Windows updates.
GetManagedInstanceAvailableWindowsUpdatesAvailableWindowsUpdateCollectionItem          
- Installable string
- Indicates whether the update can be installed using the service.
- IsReboot boolRequired For Installation 
- Indicates whether a reboot is required to complete the installation of this update.
- Name 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 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 string
- The type of Windows update.
- Installable string
- Indicates whether the update can be installed using the service.
- IsReboot boolRequired For Installation 
- Indicates whether a reboot is required to complete the installation of this update.
- Name 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 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 string
- The type of Windows update.
- installable String
- Indicates whether the update can be installed using the service.
- isReboot BooleanRequired For Installation 
- Indicates whether a reboot is required to complete the installation of this update.
- name 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 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 String
- The type of Windows update.
- installable string
- Indicates whether the update can be installed using the service.
- isReboot booleanRequired For Installation 
- Indicates whether a reboot is required to complete the installation of this update.
- name 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 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 string
- The type of Windows update.
- installable str
- Indicates whether the update can be installed using the service.
- is_reboot_ boolrequired_ for_ installation 
- Indicates whether a reboot is required to complete the installation of this update.
- name 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 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 str
- The type of Windows update.
- installable String
- Indicates whether the update can be installed using the service.
- isReboot BooleanRequired For Installation 
- Indicates whether a reboot is required to complete the installation of this update.
- name 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 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 String
- The type of Windows update.
GetManagedInstanceAvailableWindowsUpdatesFilter      
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.