1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getWindowsUpdates
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.OsManagementHub.getWindowsUpdates

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    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/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getWindowsUpdates:getWindowsUpdates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
    ClassificationTypes List<string>
    A filter to return only packages that match the given update classification type.
    DisplayNameContains string
    A filter to return resources that may partially match the given display name.
    Filters List<GetWindowsUpdatesFilter>
    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'
    CompartmentId string
    The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
    ClassificationTypes []string
    A filter to return only packages that match the given update classification type.
    DisplayNameContains string
    A filter to return resources that may partially match the given display name.
    Filters []GetWindowsUpdatesFilter
    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'
    compartmentId String
    The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
    classificationTypes List<String>
    A filter to return only packages that match the given update classification type.
    displayNameContains String
    A filter to return resources that may partially match the given display name.
    filters List<GetWindowsUpdatesFilter>
    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'
    compartmentId string
    The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
    classificationTypes string[]
    A filter to return only packages that match the given update classification type.
    displayNameContains string
    A filter to return resources that may partially match the given display name.
    filters GetWindowsUpdatesFilter[]
    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 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_contains str
    A filter to return resources that may partially match the given display name.
    filters Sequence[osmanagementhub.GetWindowsUpdatesFilter]
    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'
    compartmentId String
    The OCID of the compartment. This parameter is required and returns only resources contained within the specified compartment.
    classificationTypes List<String>
    A filter to return only packages that match the given update classification type.
    displayNameContains String
    A filter to return resources that may partially match the given display name.
    filters 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'

    getWindowsUpdates Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    WindowsUpdateCollections List<GetWindowsUpdatesWindowsUpdateCollection>
    The list of windows_update_collection.
    ClassificationTypes List<string>
    DisplayNameContains string
    Filters List<GetWindowsUpdatesFilter>
    Names List<string>
    Name of the Windows update.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    WindowsUpdateCollections []GetWindowsUpdatesWindowsUpdateCollection
    The list of windows_update_collection.
    ClassificationTypes []string
    DisplayNameContains string
    Filters []GetWindowsUpdatesFilter
    Names []string
    Name of the Windows update.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    windowsUpdateCollections List<GetWindowsUpdatesWindowsUpdateCollection>
    The list of windows_update_collection.
    classificationTypes List<String>
    displayNameContains String
    filters List<GetWindowsUpdatesFilter>
    names List<String>
    Name of the Windows update.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    windowsUpdateCollections GetWindowsUpdatesWindowsUpdateCollection[]
    The list of windows_update_collection.
    classificationTypes string[]
    displayNameContains string
    filters GetWindowsUpdatesFilter[]
    names string[]
    Name of the Windows update.
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    windows_update_collections Sequence[osmanagementhub.GetWindowsUpdatesWindowsUpdateCollection]
    The list of windows_update_collection.
    classification_types Sequence[str]
    display_name_contains str
    filters Sequence[osmanagementhub.GetWindowsUpdatesFilter]
    names Sequence[str]
    Name of the Windows update.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    windowsUpdateCollections List<Property Map>
    The list of windows_update_collection.
    classificationTypes List<String>
    displayNameContains String
    filters List<Property Map>
    names List<String>
    Name of the Windows update.

    Supporting Types

    GetWindowsUpdatesFilter

    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'
    Values List<string>
    Regex bool
    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'
    Values []string
    Regex bool
    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'
    values List<String>
    regex Boolean
    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'
    values string[]
    regex boolean
    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'
    values Sequence[str]
    regex bool
    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'
    values List<String>
    regex Boolean

    GetWindowsUpdatesWindowsUpdateCollection

    GetWindowsUpdatesWindowsUpdateCollectionItem

    Description string
    Description of the update.
    Installable string
    Indicates whether the update can be installed using the service.
    InstallationRequirements List<string>
    List of requirements for installing the update on the managed instance.
    IsRebootRequiredForInstallation bool
    Indicates whether a reboot is required to complete the installation of this update.
    KbArticleIds List<string>
    List of the Microsoft Knowledge Base Article Ids related to this Windows 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'
    SizeInBytes string
    size of the package in bytes
    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.
    Description string
    Description of the update.
    Installable string
    Indicates whether the update can be installed using the service.
    InstallationRequirements []string
    List of requirements for installing the update on the managed instance.
    IsRebootRequiredForInstallation bool
    Indicates whether a reboot is required to complete the installation of this update.
    KbArticleIds []string
    List of the Microsoft Knowledge Base Article Ids related to this Windows 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'
    SizeInBytes string
    size of the package in bytes
    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.
    description String
    Description of the update.
    installable String
    Indicates whether the update can be installed using the service.
    installationRequirements List<String>
    List of requirements for installing the update on the managed instance.
    isRebootRequiredForInstallation Boolean
    Indicates whether a reboot is required to complete the installation of this update.
    kbArticleIds List<String>
    List of the Microsoft Knowledge Base Article Ids related to this Windows 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'
    sizeInBytes String
    size of the package in bytes
    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.
    description string
    Description of the update.
    installable string
    Indicates whether the update can be installed using the service.
    installationRequirements string[]
    List of requirements for installing the update on the managed instance.
    isRebootRequiredForInstallation boolean
    Indicates whether a reboot is required to complete the installation of this update.
    kbArticleIds string[]
    List of the Microsoft Knowledge Base Article Ids related to this Windows 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'
    sizeInBytes string
    size of the package in bytes
    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.
    description str
    Description of the update.
    installable str
    Indicates whether the update can be installed using the service.
    installation_requirements Sequence[str]
    List of requirements for installing the update on the managed instance.
    is_reboot_required_for_installation bool
    Indicates whether a reboot is required to complete the installation of this update.
    kb_article_ids Sequence[str]
    List of the Microsoft Knowledge Base Article Ids related to this Windows 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'
    size_in_bytes str
    size of the package in bytes
    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.
    description String
    Description of the update.
    installable String
    Indicates whether the update can be installed using the service.
    installationRequirements List<String>
    List of requirements for installing the update on the managed instance.
    isRebootRequiredForInstallation Boolean
    Indicates whether a reboot is required to complete the installation of this update.
    kbArticleIds List<String>
    List of the Microsoft Knowledge Base Article Ids related to this Windows 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'
    sizeInBytes String
    size of the package in bytes
    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.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi