Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.OsManagementHub.getWindowsUpdate
Explore with Pulumi AI
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/v2/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)
public static Output<GetWindowsUpdateResult> getWindowsUpdate(GetWindowsUpdateArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagementHub/getWindowsUpdate:getWindowsUpdate
  arguments:
    # arguments dictionaryThe following arguments are supported:
- WindowsUpdate stringId 
- 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'
- WindowsUpdate stringId 
- 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'
- windowsUpdate StringId 
- 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'
- windowsUpdate stringId 
- 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_ strid 
- 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'
- windowsUpdate StringId 
- 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.
- IsReboot boolRequired For Installation 
- Indicates whether a reboot is required to complete the installation of this update.
- KbArticle List<string>Ids 
- List of the Microsoft Knowledge Base Article Ids related to this Windows Update.
- Name string
- Name of the Windows update.
- SizeIn stringBytes 
- 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.
- WindowsUpdate stringId 
- 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.
- IsReboot boolRequired For Installation 
- Indicates whether a reboot is required to complete the installation of this update.
- KbArticle []stringIds 
- List of the Microsoft Knowledge Base Article Ids related to this Windows Update.
- Name string
- Name of the Windows update.
- SizeIn stringBytes 
- 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.
- WindowsUpdate stringId 
- 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.
- isReboot BooleanRequired For Installation 
- Indicates whether a reboot is required to complete the installation of this update.
- kbArticle List<String>Ids 
- List of the Microsoft Knowledge Base Article Ids related to this Windows Update.
- name String
- Name of the Windows update.
- sizeIn StringBytes 
- 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.
- windowsUpdate StringId 
- 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.
- isReboot booleanRequired For Installation 
- Indicates whether a reboot is required to complete the installation of this update.
- kbArticle string[]Ids 
- List of the Microsoft Knowledge Base Article Ids related to this Windows Update.
- name string
- Name of the Windows update.
- sizeIn stringBytes 
- 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.
- windowsUpdate stringId 
- 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_ boolrequired_ for_ installation 
- Indicates whether a reboot is required to complete the installation of this update.
- kb_article_ Sequence[str]ids 
- List of the Microsoft Knowledge Base Article Ids related to this Windows Update.
- name str
- Name of the Windows update.
- size_in_ strbytes 
- 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_ strid 
- 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.
- isReboot BooleanRequired For Installation 
- Indicates whether a reboot is required to complete the installation of this update.
- kbArticle List<String>Ids 
- List of the Microsoft Knowledge Base Article Ids related to this Windows Update.
- name String
- Name of the Windows update.
- sizeIn StringBytes 
- 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.
- windowsUpdate StringId 
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.