Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi
oci.OsManagementHub.getManagedInstanceInstalledWindowsUpdates
Explore with Pulumi AI
This data source provides the list of Managed Instance Installed Windows Updates in Oracle Cloud Infrastructure Os Management Hub service.
Returns a list of Windows updates that have been installed on the specified managed instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstanceInstalledWindowsUpdates = oci.OsManagementHub.getManagedInstanceInstalledWindowsUpdates({
managedInstanceId: testManagedInstance.id,
compartmentId: compartmentId,
displayName: managedInstanceInstalledWindowsUpdateDisplayName,
displayNameContains: managedInstanceInstalledWindowsUpdateDisplayNameContains,
names: managedInstanceInstalledWindowsUpdateName,
});
import pulumi
import pulumi_oci as oci
test_managed_instance_installed_windows_updates = oci.OsManagementHub.get_managed_instance_installed_windows_updates(managed_instance_id=test_managed_instance["id"],
compartment_id=compartment_id,
display_name=managed_instance_installed_windows_update_display_name,
display_name_contains=managed_instance_installed_windows_update_display_name_contains,
names=managed_instance_installed_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.GetManagedInstanceInstalledWindowsUpdates(ctx, &osmanagementhub.GetManagedInstanceInstalledWindowsUpdatesArgs{
ManagedInstanceId: testManagedInstance.Id,
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(managedInstanceInstalledWindowsUpdateDisplayName),
DisplayNameContains: pulumi.StringRef(managedInstanceInstalledWindowsUpdateDisplayNameContains),
Names: managedInstanceInstalledWindowsUpdateName,
}, 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 testManagedInstanceInstalledWindowsUpdates = Oci.OsManagementHub.GetManagedInstanceInstalledWindowsUpdates.Invoke(new()
{
ManagedInstanceId = testManagedInstance.Id,
CompartmentId = compartmentId,
DisplayName = managedInstanceInstalledWindowsUpdateDisplayName,
DisplayNameContains = managedInstanceInstalledWindowsUpdateDisplayNameContains,
Names = managedInstanceInstalledWindowsUpdateName,
});
});
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.GetManagedInstanceInstalledWindowsUpdatesArgs;
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 testManagedInstanceInstalledWindowsUpdates = OsManagementHubFunctions.getManagedInstanceInstalledWindowsUpdates(GetManagedInstanceInstalledWindowsUpdatesArgs.builder()
.managedInstanceId(testManagedInstance.id())
.compartmentId(compartmentId)
.displayName(managedInstanceInstalledWindowsUpdateDisplayName)
.displayNameContains(managedInstanceInstalledWindowsUpdateDisplayNameContains)
.names(managedInstanceInstalledWindowsUpdateName)
.build());
}
}
variables:
testManagedInstanceInstalledWindowsUpdates:
fn::invoke:
Function: oci:OsManagementHub:getManagedInstanceInstalledWindowsUpdates
Arguments:
managedInstanceId: ${testManagedInstance.id}
compartmentId: ${compartmentId}
displayName: ${managedInstanceInstalledWindowsUpdateDisplayName}
displayNameContains: ${managedInstanceInstalledWindowsUpdateDisplayNameContains}
names: ${managedInstanceInstalledWindowsUpdateName}
Using getManagedInstanceInstalledWindowsUpdates
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 getManagedInstanceInstalledWindowsUpdates(args: GetManagedInstanceInstalledWindowsUpdatesArgs, opts?: InvokeOptions): Promise<GetManagedInstanceInstalledWindowsUpdatesResult>
function getManagedInstanceInstalledWindowsUpdatesOutput(args: GetManagedInstanceInstalledWindowsUpdatesOutputArgs, opts?: InvokeOptions): Output<GetManagedInstanceInstalledWindowsUpdatesResult>
def get_managed_instance_installed_windows_updates(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
display_name_contains: Optional[str] = None,
filters: Optional[Sequence[_osmanagementhub.GetManagedInstanceInstalledWindowsUpdatesFilter]] = None,
managed_instance_id: Optional[str] = None,
names: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetManagedInstanceInstalledWindowsUpdatesResult
def get_managed_instance_installed_windows_updates_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
display_name_contains: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_osmanagementhub.GetManagedInstanceInstalledWindowsUpdatesFilterArgs]]]] = None,
managed_instance_id: Optional[pulumi.Input[str]] = None,
names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetManagedInstanceInstalledWindowsUpdatesResult]
func GetManagedInstanceInstalledWindowsUpdates(ctx *Context, args *GetManagedInstanceInstalledWindowsUpdatesArgs, opts ...InvokeOption) (*GetManagedInstanceInstalledWindowsUpdatesResult, error)
func GetManagedInstanceInstalledWindowsUpdatesOutput(ctx *Context, args *GetManagedInstanceInstalledWindowsUpdatesOutputArgs, opts ...InvokeOption) GetManagedInstanceInstalledWindowsUpdatesResultOutput
> Note: This function is named GetManagedInstanceInstalledWindowsUpdates
in the Go SDK.
public static class GetManagedInstanceInstalledWindowsUpdates
{
public static Task<GetManagedInstanceInstalledWindowsUpdatesResult> InvokeAsync(GetManagedInstanceInstalledWindowsUpdatesArgs args, InvokeOptions? opts = null)
public static Output<GetManagedInstanceInstalledWindowsUpdatesResult> Invoke(GetManagedInstanceInstalledWindowsUpdatesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetManagedInstanceInstalledWindowsUpdatesResult> getManagedInstanceInstalledWindowsUpdates(GetManagedInstanceInstalledWindowsUpdatesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:OsManagementHub/getManagedInstanceInstalledWindowsUpdates:getManagedInstanceInstalledWindowsUpdates
arguments:
# arguments dictionary
The following arguments are supported:
- Managed
Instance stringId - The OCID of the managed instance.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Display
Name string - A filter to return resources that match the given user-friendly name.
- Display
Name stringContains - A filter to return resources that may partially match the given display name.
- Filters
List<Get
Managed Instance Installed 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'
- Managed
Instance stringId - The OCID of the managed instance.
- Compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- Display
Name string - A filter to return resources that match the given user-friendly name.
- Display
Name stringContains - A filter to return resources that may partially match the given display name.
- Filters
[]Get
Managed Instance Installed 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'
- managed
Instance StringId - The OCID of the managed instance.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name String - A filter to return resources that match the given user-friendly name.
- display
Name StringContains - A filter to return resources that may partially match the given display name.
- filters
List<Get
Managed Instance Installed 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'
- managed
Instance stringId - The OCID of the managed instance.
- compartment
Id string - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name string - A filter to return resources that match the given user-friendly name.
- display
Name stringContains - A filter to return resources that may partially match the given display name.
- filters
Get
Managed Instance Installed 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'
- managed_
instance_ strid - The OCID of the managed instance.
- compartment_
id str - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display_
name str - A filter to return resources that match the given user-friendly name.
- display_
name_ strcontains - A filter to return resources that may partially match the given display name.
- filters
Sequence[osmanagementhub.
Get Managed Instance Installed 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'
- managed
Instance StringId - The OCID of the managed instance.
- compartment
Id String - The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
- display
Name String - A filter to return resources that match the given user-friendly name.
- 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'
getManagedInstanceInstalledWindowsUpdates Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Installed
Windows List<GetUpdate Collections Managed Instance Installed Windows Updates Installed Windows Update Collection> - The list of installed_windows_update_collection.
- Managed
Instance stringId - Compartment
Id string - Display
Name string - Display
Name stringContains - Filters
List<Get
Managed Instance Installed Windows Updates Filter> - Names List<string>
- Name of the Windows update.
- Id string
- The provider-assigned unique ID for this managed resource.
- Installed
Windows []GetUpdate Collections Managed Instance Installed Windows Updates Installed Windows Update Collection - The list of installed_windows_update_collection.
- Managed
Instance stringId - Compartment
Id string - Display
Name string - Display
Name stringContains - Filters
[]Get
Managed Instance Installed Windows Updates Filter - Names []string
- Name of the Windows update.
- id String
- The provider-assigned unique ID for this managed resource.
- installed
Windows List<GetUpdate Collections Managed Instance Installed Windows Updates Installed Windows Update Collection> - The list of installed_windows_update_collection.
- managed
Instance StringId - compartment
Id String - display
Name String - display
Name StringContains - filters
List<Get
Managed Instance Installed Windows Updates Filter> - names List<String>
- Name of the Windows update.
- id string
- The provider-assigned unique ID for this managed resource.
- installed
Windows GetUpdate Collections Managed Instance Installed Windows Updates Installed Windows Update Collection[] - The list of installed_windows_update_collection.
- managed
Instance stringId - compartment
Id string - display
Name string - display
Name stringContains - filters
Get
Managed Instance Installed Windows Updates Filter[] - names string[]
- Name of the Windows update.
- id str
- The provider-assigned unique ID for this managed resource.
- installed_
windows_ Sequence[osmanagementhub.update_ collections Get Managed Instance Installed Windows Updates Installed Windows Update Collection] - The list of installed_windows_update_collection.
- managed_
instance_ strid - compartment_
id str - display_
name str - display_
name_ strcontains - filters
Sequence[osmanagementhub.
Get Managed Instance Installed Windows Updates Filter] - names Sequence[str]
- Name of the Windows update.
- id String
- The provider-assigned unique ID for this managed resource.
- installed
Windows List<Property Map>Update Collections - The list of installed_windows_update_collection.
- managed
Instance StringId - compartment
Id String - display
Name String - display
Name StringContains - filters List<Property Map>
- names List<String>
- Name of the Windows update.
Supporting Types
GetManagedInstanceInstalledWindowsUpdatesFilter
GetManagedInstanceInstalledWindowsUpdatesInstalledWindowsUpdateCollection
- Items
List<Get
Managed Instance Installed Windows Updates Installed Windows Update Collection Item> - List of installed Windows updates.
- Items
[]Get
Managed Instance Installed Windows Updates Installed Windows Update Collection Item - List of installed Windows updates.
- items
List<Get
Managed Instance Installed Windows Updates Installed Windows Update Collection Item> - List of installed Windows updates.
- items
Get
Managed Instance Installed Windows Updates Installed Windows Update Collection Item[] - List of installed Windows updates.
- items
Sequence[osmanagementhub.
Get Managed Instance Installed Windows Updates Installed Windows Update Collection Item] - List of installed Windows updates.
- items List<Property Map>
- List of installed Windows updates.
GetManagedInstanceInstalledWindowsUpdatesInstalledWindowsUpdateCollectionItem
- 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'
- 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.
- 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'
- 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.
- 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'
- 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.
- 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'
- 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.
- 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'
- 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.
- 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'
- 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.