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

oci.OsManagementHub.getWindowsUpdate

Explore with Pulumi AI

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

    This data source provides details about a specific Windows Update resource in Oracle Cloud Infrastructure Os Management Hub service.

    Returns a Windows Update object.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testWindowsUpdate = oci.OsManagementHub.getWindowsUpdate({
        windowsUpdateId: testWindowsUpdateOciOsManagementHubWindowsUpdate.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_windows_update = oci.OsManagementHub.get_windows_update(windows_update_id=test_windows_update_oci_os_management_hub_windows_update["id"])
    
    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.GetWindowsUpdate(ctx, &osmanagementhub.GetWindowsUpdateArgs{
    			WindowsUpdateId: testWindowsUpdateOciOsManagementHubWindowsUpdate.Id,
    		}, 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 testWindowsUpdate = Oci.OsManagementHub.GetWindowsUpdate.Invoke(new()
        {
            WindowsUpdateId = testWindowsUpdateOciOsManagementHubWindowsUpdate.Id,
        });
    
    });
    
    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.GetWindowsUpdateArgs;
    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 testWindowsUpdate = OsManagementHubFunctions.getWindowsUpdate(GetWindowsUpdateArgs.builder()
                .windowsUpdateId(testWindowsUpdateOciOsManagementHubWindowsUpdate.id())
                .build());
    
        }
    }
    
    variables:
      testWindowsUpdate:
        fn::invoke:
          Function: oci:OsManagementHub:getWindowsUpdate
          Arguments:
            windowsUpdateId: ${testWindowsUpdateOciOsManagementHubWindowsUpdate.id}
    

    Using getWindowsUpdate

    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 getWindowsUpdate(args: GetWindowsUpdateArgs, opts?: InvokeOptions): Promise<GetWindowsUpdateResult>
    function getWindowsUpdateOutput(args: GetWindowsUpdateOutputArgs, opts?: InvokeOptions): Output<GetWindowsUpdateResult>
    def get_windows_update(windows_update_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetWindowsUpdateResult
    def get_windows_update_output(windows_update_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetWindowsUpdateResult]
    func GetWindowsUpdate(ctx *Context, args *GetWindowsUpdateArgs, opts ...InvokeOption) (*GetWindowsUpdateResult, error)
    func GetWindowsUpdateOutput(ctx *Context, args *GetWindowsUpdateOutputArgs, opts ...InvokeOption) GetWindowsUpdateResultOutput

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

    public static class GetWindowsUpdate 
    {
        public static Task<GetWindowsUpdateResult> InvokeAsync(GetWindowsUpdateArgs args, InvokeOptions? opts = null)
        public static Output<GetWindowsUpdateResult> Invoke(GetWindowsUpdateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWindowsUpdateResult> getWindowsUpdate(GetWindowsUpdateArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getWindowsUpdate:getWindowsUpdate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    WindowsUpdateId string
    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'
    WindowsUpdateId string
    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'
    windowsUpdateId String
    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'
    windowsUpdateId string
    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'
    windows_update_id str
    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'
    windowsUpdateId String
    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'

    getWindowsUpdate Result

    The following output properties are available:

    Description string
    Description of the update.
    Id string
    The provider-assigned unique ID for this managed resource.
    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
    Name of the Windows update.
    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.
    WindowsUpdateId string
    Description string
    Description of the update.
    Id string
    The provider-assigned unique ID for this managed resource.
    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
    Name of the Windows update.
    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.
    WindowsUpdateId string
    description String
    Description of the update.
    id String
    The provider-assigned unique ID for this managed resource.
    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
    Name of the Windows update.
    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.
    windowsUpdateId String
    description string
    Description of the update.
    id string
    The provider-assigned unique ID for this managed resource.
    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
    Name of the Windows update.
    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.
    windowsUpdateId string
    description str
    Description of the update.
    id str
    The provider-assigned unique ID for this managed resource.
    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
    Name of the Windows update.
    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.
    windows_update_id str
    description String
    Description of the update.
    id String
    The provider-assigned unique ID for this managed resource.
    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
    Name of the Windows update.
    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.
    windowsUpdateId String

    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