Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.OsManagementHub.getWindowsUpdates
Explore with Pulumi AI
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:
- Compartment
Id 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
List<Get
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 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
[]Get
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 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
List<Get
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 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
Get
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 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
Sequence[osmanagementhub.
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 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 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:
- 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
GetWindowsUpdatesWindowsUpdateCollectionItem
- Description string
- Description of the update.
- Installable string
- Indicates whether the update can be installed using the service.
- Installation
Requirements List<string> - 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 List<string>Ids - 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'
- Size
In stringBytes - size of the package in bytes
- Update
Id 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 string - The type of Windows update.
- Description string
- Description of the update.
- Installable string
- Indicates whether the update can be installed using the service.
- Installation
Requirements []string - 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 []stringIds - 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'
- Size
In stringBytes - size of the package in bytes
- Update
Id 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 string - The type of Windows update.
- description String
- Description of the update.
- installable String
- Indicates whether the update can be installed using the service.
- installation
Requirements List<String> - List of requirements for installing the update on the managed instance.
- is
Reboot BooleanRequired For Installation - Indicates whether a reboot is required to complete the installation of this update.
- kb
Article List<String>Ids - 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'
- size
In StringBytes - size of the package in bytes
- update
Id 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 String - The type of Windows update.
- description string
- Description of the update.
- installable string
- Indicates whether the update can be installed using the service.
- installation
Requirements string[] - List of requirements for installing the update on the managed instance.
- is
Reboot booleanRequired For Installation - Indicates whether a reboot is required to complete the installation of this update.
- kb
Article string[]Ids - 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'
- size
In stringBytes - size of the package in bytes
- update
Id 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 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_ 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
- 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_ 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.
- description String
- Description of the update.
- installable String
- Indicates whether the update can be installed using the service.
- installation
Requirements List<String> - List of requirements for installing the update on the managed instance.
- is
Reboot BooleanRequired For Installation - Indicates whether a reboot is required to complete the installation of this update.
- kb
Article List<String>Ids - 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'
- size
In StringBytes - size of the package in bytes
- update
Id 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 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi