1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getInstalledPatches
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi

    This data source provides the list of Installed Patches in Oracle Cloud Infrastructure Fleet Apps Management service.

    Gets a list of installed patches for the specified target. CompartmentId should be the compartment OCID of the resource (Containing the target).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testInstalledPatches = oci.FleetAppsManagement.getInstalledPatches({
        compartmentId: compartmentId,
        targetId: fleetTargetId,
        targetName: fleetTargetName,
        patchLevel: installedPatchPatchLevel,
        patchType: installedPatchPatchType,
        severity: installedPatchSeverity,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_installed_patches = oci.FleetAppsManagement.get_installed_patches(compartment_id=compartment_id,
        target_id=fleet_target_id,
        target_name=fleet_target_name,
        patch_level=installed_patch_patch_level,
        patch_type=installed_patch_patch_type,
        severity=installed_patch_severity)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/fleetappsmanagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := fleetappsmanagement.GetInstalledPatches(ctx, &fleetappsmanagement.GetInstalledPatchesArgs{
    			CompartmentId: compartmentId,
    			TargetId:      pulumi.StringRef(fleetTargetId),
    			TargetName:    pulumi.StringRef(fleetTargetName),
    			PatchLevel:    pulumi.StringRef(installedPatchPatchLevel),
    			PatchType:     pulumi.StringRef(installedPatchPatchType),
    			Severity:      pulumi.StringRef(installedPatchSeverity),
    		}, 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 testInstalledPatches = Oci.FleetAppsManagement.GetInstalledPatches.Invoke(new()
        {
            CompartmentId = compartmentId,
            TargetId = fleetTargetId,
            TargetName = fleetTargetName,
            PatchLevel = installedPatchPatchLevel,
            PatchType = installedPatchPatchType,
            Severity = installedPatchSeverity,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.FleetAppsManagement.FleetAppsManagementFunctions;
    import com.pulumi.oci.FleetAppsManagement.inputs.GetInstalledPatchesArgs;
    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 testInstalledPatches = FleetAppsManagementFunctions.getInstalledPatches(GetInstalledPatchesArgs.builder()
                .compartmentId(compartmentId)
                .targetId(fleetTargetId)
                .targetName(fleetTargetName)
                .patchLevel(installedPatchPatchLevel)
                .patchType(installedPatchPatchType)
                .severity(installedPatchSeverity)
                .build());
    
        }
    }
    
    variables:
      testInstalledPatches:
        fn::invoke:
          function: oci:FleetAppsManagement:getInstalledPatches
          arguments:
            compartmentId: ${compartmentId}
            targetId: ${fleetTargetId}
            targetName: ${fleetTargetName}
            patchLevel: ${installedPatchPatchLevel}
            patchType: ${installedPatchPatchType}
            severity: ${installedPatchSeverity}
    

    Using getInstalledPatches

    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 getInstalledPatches(args: GetInstalledPatchesArgs, opts?: InvokeOptions): Promise<GetInstalledPatchesResult>
    function getInstalledPatchesOutput(args: GetInstalledPatchesOutputArgs, opts?: InvokeOptions): Output<GetInstalledPatchesResult>
    def get_installed_patches(compartment_id: Optional[str] = None,
                              filters: Optional[Sequence[GetInstalledPatchesFilter]] = None,
                              patch_level: Optional[str] = None,
                              patch_type: Optional[str] = None,
                              severity: Optional[str] = None,
                              target_id: Optional[str] = None,
                              target_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetInstalledPatchesResult
    def get_installed_patches_output(compartment_id: Optional[pulumi.Input[str]] = None,
                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetInstalledPatchesFilterArgs]]]] = None,
                              patch_level: Optional[pulumi.Input[str]] = None,
                              patch_type: Optional[pulumi.Input[str]] = None,
                              severity: Optional[pulumi.Input[str]] = None,
                              target_id: Optional[pulumi.Input[str]] = None,
                              target_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetInstalledPatchesResult]
    func GetInstalledPatches(ctx *Context, args *GetInstalledPatchesArgs, opts ...InvokeOption) (*GetInstalledPatchesResult, error)
    func GetInstalledPatchesOutput(ctx *Context, args *GetInstalledPatchesOutputArgs, opts ...InvokeOption) GetInstalledPatchesResultOutput

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

    public static class GetInstalledPatches 
    {
        public static Task<GetInstalledPatchesResult> InvokeAsync(GetInstalledPatchesArgs args, InvokeOptions? opts = null)
        public static Output<GetInstalledPatchesResult> Invoke(GetInstalledPatchesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInstalledPatchesResult> getInstalledPatches(GetInstalledPatchesArgs args, InvokeOptions options)
    public static Output<GetInstalledPatchesResult> getInstalledPatches(GetInstalledPatchesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:FleetAppsManagement/getInstalledPatches:getInstalledPatches
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    Filters List<GetInstalledPatchesFilter>
    PatchLevel string
    Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
    PatchType string
    Patch type.
    Severity string
    Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
    TargetId string
    Target identifier.
    TargetName string
    Target name.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    Filters []GetInstalledPatchesFilter
    PatchLevel string
    Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
    PatchType string
    Patch type.
    Severity string
    Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
    TargetId string
    Target identifier.
    TargetName string
    Target name.
    compartmentId String
    The OCID of the compartment in which to list resources.
    filters List<GetInstalledPatchesFilter>
    patchLevel String
    Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
    patchType String
    Patch type.
    severity String
    Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
    targetId String
    Target identifier.
    targetName String
    Target name.
    compartmentId string
    The OCID of the compartment in which to list resources.
    filters GetInstalledPatchesFilter[]
    patchLevel string
    Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
    patchType string
    Patch type.
    severity string
    Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
    targetId string
    Target identifier.
    targetName string
    Target name.
    compartment_id str
    The OCID of the compartment in which to list resources.
    filters Sequence[GetInstalledPatchesFilter]
    patch_level str
    Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
    patch_type str
    Patch type.
    severity str
    Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
    target_id str
    Target identifier.
    target_name str
    Target name.
    compartmentId String
    The OCID of the compartment in which to list resources.
    filters List<Property Map>
    patchLevel String
    Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
    patchType String
    Patch type.
    severity String
    Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
    targetId String
    Target identifier.
    targetName String
    Target name.

    getInstalledPatches Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstalledPatchCollections List<GetInstalledPatchesInstalledPatchCollection>
    The list of installed_patch_collection.
    Filters List<GetInstalledPatchesFilter>
    PatchLevel string
    Patch level.
    PatchType string
    Type of the patch.
    Severity string
    Patch severity.
    TargetId string
    TargetName string
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstalledPatchCollections []GetInstalledPatchesInstalledPatchCollection
    The list of installed_patch_collection.
    Filters []GetInstalledPatchesFilter
    PatchLevel string
    Patch level.
    PatchType string
    Type of the patch.
    Severity string
    Patch severity.
    TargetId string
    TargetName string
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    installedPatchCollections List<GetInstalledPatchesInstalledPatchCollection>
    The list of installed_patch_collection.
    filters List<GetInstalledPatchesFilter>
    patchLevel String
    Patch level.
    patchType String
    Type of the patch.
    severity String
    Patch severity.
    targetId String
    targetName String
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    installedPatchCollections GetInstalledPatchesInstalledPatchCollection[]
    The list of installed_patch_collection.
    filters GetInstalledPatchesFilter[]
    patchLevel string
    Patch level.
    patchType string
    Type of the patch.
    severity string
    Patch severity.
    targetId string
    targetName string
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    installed_patch_collections Sequence[GetInstalledPatchesInstalledPatchCollection]
    The list of installed_patch_collection.
    filters Sequence[GetInstalledPatchesFilter]
    patch_level str
    Patch level.
    patch_type str
    Type of the patch.
    severity str
    Patch severity.
    target_id str
    target_name str
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    installedPatchCollections List<Property Map>
    The list of installed_patch_collection.
    filters List<Property Map>
    patchLevel String
    Patch level.
    patchType String
    Type of the patch.
    severity String
    Patch severity.
    targetId String
    targetName String

    Supporting Types

    GetInstalledPatchesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetInstalledPatchesInstalledPatchCollection

    items List<Property Map>
    List of installed patches

    GetInstalledPatchesInstalledPatchCollectionItem

    PatchDescription string
    Description of the patch
    PatchId string
    The OCID of the patch.
    PatchLevel string
    Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
    PatchName string
    Name of the patch.
    PatchType string
    Patch type.
    Severity string
    Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
    TimeApplied string
    Date on which the patch was applied to the target.
    TimeReleased string
    Date on which the patch was released.
    PatchDescription string
    Description of the patch
    PatchId string
    The OCID of the patch.
    PatchLevel string
    Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
    PatchName string
    Name of the patch.
    PatchType string
    Patch type.
    Severity string
    Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
    TimeApplied string
    Date on which the patch was applied to the target.
    TimeReleased string
    Date on which the patch was released.
    patchDescription String
    Description of the patch
    patchId String
    The OCID of the patch.
    patchLevel String
    Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
    patchName String
    Name of the patch.
    patchType String
    Patch type.
    severity String
    Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
    timeApplied String
    Date on which the patch was applied to the target.
    timeReleased String
    Date on which the patch was released.
    patchDescription string
    Description of the patch
    patchId string
    The OCID of the patch.
    patchLevel string
    Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
    patchName string
    Name of the patch.
    patchType string
    Patch type.
    severity string
    Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
    timeApplied string
    Date on which the patch was applied to the target.
    timeReleased string
    Date on which the patch was released.
    patch_description str
    Description of the patch
    patch_id str
    The OCID of the patch.
    patch_level str
    Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
    patch_name str
    Name of the patch.
    patch_type str
    Patch type.
    severity str
    Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
    time_applied str
    Date on which the patch was applied to the target.
    time_released str
    Date on which the patch was released.
    patchDescription String
    Description of the patch
    patchId String
    The OCID of the patch.
    patchLevel String
    Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
    patchName String
    Name of the patch.
    patchType String
    Patch type.
    severity String
    Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
    timeApplied String
    Date on which the patch was applied to the target.
    timeReleased String
    Date on which the patch was released.

    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 v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate