Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi
oci.OsManagementHub.getWindowsUpdates
Explore with Pulumi AI
This data source provides the list of Windows Updates in Oracle Cloud Infrastructure Os Management Hub service.
Lists Windows updates that have been reported to the service.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testWindowsUpdates = oci.OsManagementHub.getWindowsUpdates({
compartmentId: compartmentId,
classificationTypes: windowsUpdateClassificationType,
displayNameContains: windowsUpdateDisplayNameContains,
names: windowsUpdateName,
});
import pulumi
import pulumi_oci as oci
test_windows_updates = oci.OsManagementHub.get_windows_updates(compartment_id=compartment_id,
classification_types=windows_update_classification_type,
display_name_contains=windows_update_display_name_contains,
names=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.GetWindowsUpdates(ctx, &osmanagementhub.GetWindowsUpdatesArgs{
CompartmentId: compartmentId,
ClassificationTypes: windowsUpdateClassificationType,
DisplayNameContains: pulumi.StringRef(windowsUpdateDisplayNameContains),
Names: windowsUpdateName,
}, 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 testWindowsUpdates = Oci.OsManagementHub.GetWindowsUpdates.Invoke(new()
{
CompartmentId = compartmentId,
ClassificationTypes = windowsUpdateClassificationType,
DisplayNameContains = windowsUpdateDisplayNameContains,
Names = windowsUpdateName,
});
});
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.GetWindowsUpdatesArgs;
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 testWindowsUpdates = OsManagementHubFunctions.getWindowsUpdates(GetWindowsUpdatesArgs.builder()
.compartmentId(compartmentId)
.classificationTypes(windowsUpdateClassificationType)
.displayNameContains(windowsUpdateDisplayNameContains)
.names(windowsUpdateName)
.build());
}
}
variables:
testWindowsUpdates:
fn::invoke:
function: oci:OsManagementHub:getWindowsUpdates
arguments:
compartmentId: ${compartmentId}
classificationTypes: ${windowsUpdateClassificationType}
displayNameContains: ${windowsUpdateDisplayNameContains}
names: ${windowsUpdateName}
Using getWindowsUpdates
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 getWindowsUpdates(args: GetWindowsUpdatesArgs, opts?: InvokeOptions): Promise<GetWindowsUpdatesResult>
function getWindowsUpdatesOutput(args: GetWindowsUpdatesOutputArgs, opts?: InvokeOptions): Output<GetWindowsUpdatesResult>
def get_windows_updates(classification_types: Optional[Sequence[str]] = None,
compartment_id: Optional[str] = None,
display_name_contains: Optional[str] = None,
filters: Optional[Sequence[_osmanagementhub.GetWindowsUpdatesFilter]] = None,
names: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetWindowsUpdatesResult
def get_windows_updates_output(classification_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
display_name_contains: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetWindowsUpdatesFilterArgs]]]] = None,
names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWindowsUpdatesResult]
func GetWindowsUpdates(ctx *Context, args *GetWindowsUpdatesArgs, opts ...InvokeOption) (*GetWindowsUpdatesResult, error)
func GetWindowsUpdatesOutput(ctx *Context, args *GetWindowsUpdatesOutputArgs, opts ...InvokeOption) GetWindowsUpdatesResultOutput
> Note: This function is named GetWindowsUpdates
in the Go SDK.
public static class GetWindowsUpdates
{
public static Task<GetWindowsUpdatesResult> InvokeAsync(GetWindowsUpdatesArgs args, InvokeOptions? opts = null)
public static Output<GetWindowsUpdatesResult> Invoke(GetWindowsUpdatesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWindowsUpdatesResult> getWindowsUpdates(GetWindowsUpdatesArgs args, InvokeOptions options)
public static Output<GetWindowsUpdatesResult> getWindowsUpdates(GetWindowsUpdatesArgs args, InvokeOptions options)
fn::invoke:
function: oci:OsManagementHub/getWindowsUpdates:getWindowsUpdates
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- Classification
Types List<string> - A filter to return only packages that match the given update classification type.
- Display
Name stringContains - A filter to return resources that may partially match the given display name.
- Filters
Changes to this property will trigger replacement.
Windows Updates Filter> - 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'
- Compartment
Id This property is required. string - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- Classification
Types []string - A filter to return only packages that match the given update classification type.
- Display
Name stringContains - A filter to return resources that may partially match the given display name.
- Filters
Changes to this property will trigger replacement.
Windows Updates Filter - 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'
- compartment
Id This property is required. String - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- classification
Types List<String> - A filter to return only packages that match the given update classification type.
- display
Name StringContains - A filter to return resources that may partially match the given display name.
- filters
Changes to this property will trigger replacement.
Windows Updates Filter> - 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'
- compartment
Id This property is required. string - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- classification
Types string[] - A filter to return only packages that match the given update classification type.
- display
Name stringContains - A filter to return resources that may partially match the given display name.
- filters
Changes to this property will trigger replacement.
Windows Updates Filter[] - 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'
- compartment_
id This property is required. str - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- classification_
types Sequence[str] - A filter to return only packages that match the given update classification type.
- display_
name_ strcontains - A filter to return resources that may partially match the given display name.
- filters
Changes to this property will trigger replacement.
Get Windows Updates Filter] - 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'
- compartment
Id This property is required. String - The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
- classification
Types List<String> - A filter to return only packages that match the given update classification type.
- display
Name StringContains - A filter to return resources that may partially match the given display name.
- filters
Changes to this property will trigger replacement.
- 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'
getWindowsUpdates Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Windows
Update List<GetCollections Windows Updates Windows Update Collection> - The list of windows_update_collection.
- Classification
Types List<string> - Display
Name stringContains - Filters
List<Get
Windows Updates Filter> - Names List<string>
- Name of the Windows update.
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Windows
Update []GetCollections Windows Updates Windows Update Collection - The list of windows_update_collection.
- Classification
Types []string - Display
Name stringContains - Filters
[]Get
Windows Updates Filter - Names []string
- Name of the Windows update.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- windows
Update List<GetCollections Windows Updates Windows Update Collection> - The list of windows_update_collection.
- classification
Types List<String> - display
Name StringContains - filters
List<Get
Windows Updates Filter> - names List<String>
- Name of the Windows update.
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- windows
Update GetCollections Windows Updates Windows Update Collection[] - The list of windows_update_collection.
- classification
Types string[] - display
Name stringContains - filters
Get
Windows Updates Filter[] - names string[]
- Name of the Windows update.
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- windows_
update_ Sequence[osmanagementhub.collections Get Windows Updates Windows Update Collection] - The list of windows_update_collection.
- classification_
types Sequence[str] - display_
name_ strcontains - filters
Sequence[osmanagementhub.
Get Windows Updates Filter] - names Sequence[str]
- Name of the Windows update.
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- windows
Update List<Property Map>Collections - The list of windows_update_collection.
- classification
Types List<String> - display
Name StringContains - filters List<Property Map>
- names List<String>
- Name of the Windows update.
Supporting Types
GetWindowsUpdatesFilter
GetWindowsUpdatesWindowsUpdateCollection
- Items
This property is required. List<GetWindows Updates Windows Update Collection Item>
- Items
This property is required. []GetWindows Updates Windows Update Collection Item
- items
This property is required. List<GetWindows Updates Windows Update Collection Item>
- items
This property is required. GetWindows Updates Windows Update Collection Item[]
- items
This property is required. Sequence[osmanagementhub.Get Windows Updates Windows Update Collection Item]
- items
This property is required. List<Property Map>
GetWindowsUpdatesWindowsUpdateCollectionItem
- Description
This property is required. string - Description of the update.
- Installable
This property is required. string - Indicates whether the update can be installed using the service.
- Installation
Requirements This property is required. List<string> - List of requirements for installing the update on the managed instance.
- Is
Reboot Required For Installation This property is required. bool - Indicates whether a reboot is required to complete the installation of this update.
- Kb
Article Ids This property is required. List<string> - List of the Microsoft Knowledge Base Article Ids related to this 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'
- Size
In Bytes This property is required. string - size of the package in bytes
- Update
Id 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'
- Update
Type This property is required. string - The type of Windows update.
- Description
This property is required. string - Description of the update.
- Installable
This property is required. string - Indicates whether the update can be installed using the service.
- Installation
Requirements This property is required. []string - List of requirements for installing the update on the managed instance.
- Is
Reboot Required For Installation This property is required. bool - Indicates whether a reboot is required to complete the installation of this update.
- Kb
Article Ids This property is required. []string - List of the Microsoft Knowledge Base Article Ids related to this 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'
- Size
In Bytes This property is required. string - size of the package in bytes
- Update
Id 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'
- Update
Type This property is required. string - The type of Windows update.
- description
This property is required. String - Description of the update.
- installable
This property is required. String - Indicates whether the update can be installed using the service.
- installation
Requirements This property is required. List<String> - List of requirements for installing the update on the managed instance.
- is
Reboot Required For Installation This property is required. Boolean - Indicates whether a reboot is required to complete the installation of this update.
- kb
Article Ids This property is required. List<String> - List of the Microsoft Knowledge Base Article Ids related to this 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'
- size
In Bytes This property is required. String - size of the package in bytes
- update
Id 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'
- update
Type This property is required. String - The type of Windows update.
- description
This property is required. string - Description of the update.
- installable
This property is required. string - Indicates whether the update can be installed using the service.
- installation
Requirements This property is required. string[] - List of requirements for installing the update on the managed instance.
- is
Reboot Required For Installation This property is required. boolean - Indicates whether a reboot is required to complete the installation of this update.
- kb
Article Ids This property is required. string[] - List of the Microsoft Knowledge Base Article Ids related to this 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'
- size
In Bytes This property is required. string - size of the package in bytes
- update
Id 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'
- update
Type This property is required. string - The type of Windows update.
- description
This property is required. str - Description of the update.
- installable
This property is required. str - Indicates whether the update can be installed using the service.
- installation_
requirements This property is required. Sequence[str] - List of requirements for installing the update on the managed instance.
- is_
reboot_ required_ for_ installation This property is required. bool - Indicates whether a reboot is required to complete the installation of this update.
- kb_
article_ ids This property is required. Sequence[str] - List of the Microsoft Knowledge Base Article Ids related to this 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'
- size_
in_ bytes This property is required. str - size of the package in bytes
- 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.
- description
This property is required. String - Description of the update.
- installable
This property is required. String - Indicates whether the update can be installed using the service.
- installation
Requirements This property is required. List<String> - List of requirements for installing the update on the managed instance.
- is
Reboot Required For Installation This property is required. Boolean - Indicates whether a reboot is required to complete the installation of this update.
- kb
Article Ids This property is required. List<String> - List of the Microsoft Knowledge Base Article Ids related to this 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'
- size
In Bytes This property is required. String - size of the package in bytes
- update
Id 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'
- update
Type 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.