1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getRecommendedPatches
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 Recommended Patches in Oracle Cloud Infrastructure Fleet Apps Management service.

    Gets a list of recommended patches for the specified target.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRecommendedPatches = oci.FleetAppsManagement.getRecommendedPatches({
        compartmentId: compartmentId,
        targetId: fleetTargetId,
        targetName: fleetTargetName,
        patchId: testPatch.id,
        patchLevel: recommendedPatchPatchLevel,
        patchType: recommendedPatchPatchType,
        severity: recommendedPatchSeverity,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_recommended_patches = oci.FleetAppsManagement.get_recommended_patches(compartment_id=compartment_id,
        target_id=fleet_target_id,
        target_name=fleet_target_name,
        patch_id=test_patch["id"],
        patch_level=recommended_patch_patch_level,
        patch_type=recommended_patch_patch_type,
        severity=recommended_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.GetRecommendedPatches(ctx, &fleetappsmanagement.GetRecommendedPatchesArgs{
    			CompartmentId: compartmentId,
    			TargetId:      pulumi.StringRef(fleetTargetId),
    			TargetName:    pulumi.StringRef(fleetTargetName),
    			PatchId:       pulumi.StringRef(testPatch.Id),
    			PatchLevel:    pulumi.StringRef(recommendedPatchPatchLevel),
    			PatchType:     pulumi.StringRef(recommendedPatchPatchType),
    			Severity:      pulumi.StringRef(recommendedPatchSeverity),
    		}, 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 testRecommendedPatches = Oci.FleetAppsManagement.GetRecommendedPatches.Invoke(new()
        {
            CompartmentId = compartmentId,
            TargetId = fleetTargetId,
            TargetName = fleetTargetName,
            PatchId = testPatch.Id,
            PatchLevel = recommendedPatchPatchLevel,
            PatchType = recommendedPatchPatchType,
            Severity = recommendedPatchSeverity,
        });
    
    });
    
    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.GetRecommendedPatchesArgs;
    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 testRecommendedPatches = FleetAppsManagementFunctions.getRecommendedPatches(GetRecommendedPatchesArgs.builder()
                .compartmentId(compartmentId)
                .targetId(fleetTargetId)
                .targetName(fleetTargetName)
                .patchId(testPatch.id())
                .patchLevel(recommendedPatchPatchLevel)
                .patchType(recommendedPatchPatchType)
                .severity(recommendedPatchSeverity)
                .build());
    
        }
    }
    
    variables:
      testRecommendedPatches:
        fn::invoke:
          function: oci:FleetAppsManagement:getRecommendedPatches
          arguments:
            compartmentId: ${compartmentId}
            targetId: ${fleetTargetId}
            targetName: ${fleetTargetName}
            patchId: ${testPatch.id}
            patchLevel: ${recommendedPatchPatchLevel}
            patchType: ${recommendedPatchPatchType}
            severity: ${recommendedPatchSeverity}
    

    Using getRecommendedPatches

    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 getRecommendedPatches(args: GetRecommendedPatchesArgs, opts?: InvokeOptions): Promise<GetRecommendedPatchesResult>
    function getRecommendedPatchesOutput(args: GetRecommendedPatchesOutputArgs, opts?: InvokeOptions): Output<GetRecommendedPatchesResult>
    def get_recommended_patches(compartment_id: Optional[str] = None,
                                filters: Optional[Sequence[GetRecommendedPatchesFilter]] = None,
                                patch_id: Optional[str] = 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) -> GetRecommendedPatchesResult
    def get_recommended_patches_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetRecommendedPatchesFilterArgs]]]] = None,
                                patch_id: Optional[pulumi.Input[str]] = 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[GetRecommendedPatchesResult]
    func GetRecommendedPatches(ctx *Context, args *GetRecommendedPatchesArgs, opts ...InvokeOption) (*GetRecommendedPatchesResult, error)
    func GetRecommendedPatchesOutput(ctx *Context, args *GetRecommendedPatchesOutputArgs, opts ...InvokeOption) GetRecommendedPatchesResultOutput

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

    public static class GetRecommendedPatches 
    {
        public static Task<GetRecommendedPatchesResult> InvokeAsync(GetRecommendedPatchesArgs args, InvokeOptions? opts = null)
        public static Output<GetRecommendedPatchesResult> Invoke(GetRecommendedPatchesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRecommendedPatchesResult> getRecommendedPatches(GetRecommendedPatchesArgs args, InvokeOptions options)
    public static Output<GetRecommendedPatchesResult> getRecommendedPatches(GetRecommendedPatchesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:FleetAppsManagement/getRecommendedPatches:getRecommendedPatches
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    Filters List<GetRecommendedPatchesFilter>
    PatchId string
    Patch identifier.
    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
    Fleet target identifier.
    TargetName string
    Fleet target name.
    CompartmentId string
    The ID of the compartment in which to list resources.
    Filters []GetRecommendedPatchesFilter
    PatchId string
    Patch identifier.
    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
    Fleet target identifier.
    TargetName string
    Fleet target name.
    compartmentId String
    The ID of the compartment in which to list resources.
    filters List<GetRecommendedPatchesFilter>
    patchId String
    Patch identifier.
    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
    Fleet target identifier.
    targetName String
    Fleet target name.
    compartmentId string
    The ID of the compartment in which to list resources.
    filters GetRecommendedPatchesFilter[]
    patchId string
    Patch identifier.
    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
    Fleet target identifier.
    targetName string
    Fleet target name.
    compartment_id str
    The ID of the compartment in which to list resources.
    filters Sequence[GetRecommendedPatchesFilter]
    patch_id str
    Patch identifier.
    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
    Fleet target identifier.
    target_name str
    Fleet target name.
    compartmentId String
    The ID of the compartment in which to list resources.
    filters List<Property Map>
    patchId String
    Patch identifier.
    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
    Fleet target identifier.
    targetName String
    Fleet target name.

    getRecommendedPatches Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    RecommendedPatchCollections List<GetRecommendedPatchesRecommendedPatchCollection>
    The list of recommended_patch_collection.
    Filters List<GetRecommendedPatchesFilter>
    PatchId string
    The OCID of the patch.
    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.
    RecommendedPatchCollections []GetRecommendedPatchesRecommendedPatchCollection
    The list of recommended_patch_collection.
    Filters []GetRecommendedPatchesFilter
    PatchId string
    The OCID of the patch.
    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.
    recommendedPatchCollections List<GetRecommendedPatchesRecommendedPatchCollection>
    The list of recommended_patch_collection.
    filters List<GetRecommendedPatchesFilter>
    patchId String
    The OCID of the patch.
    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.
    recommendedPatchCollections GetRecommendedPatchesRecommendedPatchCollection[]
    The list of recommended_patch_collection.
    filters GetRecommendedPatchesFilter[]
    patchId string
    The OCID of the patch.
    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.
    recommended_patch_collections Sequence[GetRecommendedPatchesRecommendedPatchCollection]
    The list of recommended_patch_collection.
    filters Sequence[GetRecommendedPatchesFilter]
    patch_id str
    The OCID of the patch.
    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.
    recommendedPatchCollections List<Property Map>
    The list of recommended_patch_collection.
    filters List<Property Map>
    patchId String
    The OCID of the patch.
    patchLevel String
    Patch level
    patchType String
    Type of the patch.
    severity String
    Patch severity.
    targetId String
    targetName String

    Supporting Types

    GetRecommendedPatchesFilter

    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

    GetRecommendedPatchesRecommendedPatchCollection

    items List<Property Map>
    List of recommended patches

    GetRecommendedPatchesRecommendedPatchCollectionItem

    PatchDescription string
    Description of the patch
    PatchId string
    Patch identifier.
    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.
    TimeReleased string
    Date on which the patch was released.
    PatchDescription string
    Description of the patch
    PatchId string
    Patch identifier.
    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.
    TimeReleased string
    Date on which the patch was released.
    patchDescription String
    Description of the patch
    patchId String
    Patch identifier.
    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.
    timeReleased String
    Date on which the patch was released.
    patchDescription string
    Description of the patch
    patchId string
    Patch identifier.
    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.
    timeReleased string
    Date on which the patch was released.
    patch_description str
    Description of the patch
    patch_id str
    Patch identifier.
    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_released str
    Date on which the patch was released.
    patchDescription String
    Description of the patch
    patchId String
    Patch identifier.
    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.
    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