Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
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 dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Filters
List<Get
Installed Patches Filter> - Patch
Level string - Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
- Patch
Type string - Patch type.
- Severity string
- Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
- Target
Id string - Target identifier.
- Target
Name string - Target name.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Filters
[]Get
Installed Patches Filter - Patch
Level string - Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
- Patch
Type string - Patch type.
- Severity string
- Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
- Target
Id string - Target identifier.
- Target
Name string - Target name.
- compartment
Id String - The OCID of the compartment in which to list resources.
- filters
List<Get
Installed Patches Filter> - patch
Level String - Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
- patch
Type String - Patch type.
- severity String
- Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
- target
Id String - Target identifier.
- target
Name String - Target name.
- compartment
Id string - The OCID of the compartment in which to list resources.
- filters
Get
Installed Patches Filter[] - patch
Level string - Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
- patch
Type string - Patch type.
- severity string
- Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
- target
Id string - Target identifier.
- target
Name string - Target name.
- compartment_
id str - The OCID of the compartment in which to list resources.
- filters
Sequence[Get
Installed Patches Filter] - 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.
- compartment
Id String - The OCID of the compartment in which to list resources.
- filters List<Property Map>
- patch
Level String - Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
- patch
Type String - Patch type.
- severity String
- Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
- target
Id String - Target identifier.
- target
Name String - Target name.
getInstalledPatches Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Installed
Patch List<GetCollections Installed Patches Installed Patch Collection> - The list of installed_patch_collection.
- Filters
List<Get
Installed Patches Filter> - Patch
Level string - Patch level.
- Patch
Type string - Type of the patch.
- Severity string
- Patch severity.
- Target
Id string - Target
Name string
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Installed
Patch []GetCollections Installed Patches Installed Patch Collection - The list of installed_patch_collection.
- Filters
[]Get
Installed Patches Filter - Patch
Level string - Patch level.
- Patch
Type string - Type of the patch.
- Severity string
- Patch severity.
- Target
Id string - Target
Name string
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- installed
Patch List<GetCollections Installed Patches Installed Patch Collection> - The list of installed_patch_collection.
- filters
List<Get
Installed Patches Filter> - patch
Level String - Patch level.
- patch
Type String - Type of the patch.
- severity String
- Patch severity.
- target
Id String - target
Name String
- compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- installed
Patch GetCollections Installed Patches Installed Patch Collection[] - The list of installed_patch_collection.
- filters
Get
Installed Patches Filter[] - patch
Level string - Patch level.
- patch
Type string - Type of the patch.
- severity string
- Patch severity.
- target
Id string - target
Name string
- compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- installed_
patch_ Sequence[Getcollections Installed Patches Installed Patch Collection] - The list of installed_patch_collection.
- filters
Sequence[Get
Installed Patches Filter] - patch_
level str - Patch level.
- patch_
type str - Type of the patch.
- severity str
- Patch severity.
- target_
id str - target_
name str
- compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- installed
Patch List<Property Map>Collections - The list of installed_patch_collection.
- filters List<Property Map>
- patch
Level String - Patch level.
- patch
Type String - Type of the patch.
- severity String
- Patch severity.
- target
Id String - target
Name String
Supporting Types
GetInstalledPatchesFilter
GetInstalledPatchesInstalledPatchCollection
- Items
List<Get
Installed Patches Installed Patch Collection Item> - List of installed patches
- Items
[]Get
Installed Patches Installed Patch Collection Item - List of installed patches
- items
List<Get
Installed Patches Installed Patch Collection Item> - List of installed patches
- items
Get
Installed Patches Installed Patch Collection Item[] - List of installed patches
- items
Sequence[Get
Installed Patches Installed Patch Collection Item] - List of installed patches
- items List<Property Map>
- List of installed patches
GetInstalledPatchesInstalledPatchCollectionItem
- Patch
Description string - Description of the patch
- Patch
Id string - The OCID of the patch.
- Patch
Level string - Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
- Patch
Name string - Name of the patch.
- Patch
Type string - Patch type.
- Severity string
- Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
- Time
Applied string - Date on which the patch was applied to the target.
- Time
Released string - Date on which the patch was released.
- Patch
Description string - Description of the patch
- Patch
Id string - The OCID of the patch.
- Patch
Level string - Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
- Patch
Name string - Name of the patch.
- Patch
Type string - Patch type.
- Severity string
- Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
- Time
Applied string - Date on which the patch was applied to the target.
- Time
Released string - Date on which the patch was released.
- patch
Description String - Description of the patch
- patch
Id String - The OCID of the patch.
- patch
Level String - Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
- patch
Name String - Name of the patch.
- patch
Type String - Patch type.
- severity String
- Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
- time
Applied String - Date on which the patch was applied to the target.
- time
Released String - Date on which the patch was released.
- patch
Description string - Description of the patch
- patch
Id string - The OCID of the patch.
- patch
Level string - Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
- patch
Name string - Name of the patch.
- patch
Type string - Patch type.
- severity string
- Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
- time
Applied string - Date on which the patch was applied to the target.
- time
Released 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.
- patch
Description String - Description of the patch
- patch
Id String - The OCID of the patch.
- patch
Level String - Patch level with values like LATEST, LATEST_MINUS_ONE, LATEST_MIUS_TWO etc.,.
- patch
Name String - Name of the patch.
- patch
Type String - Patch type.
- severity String
- Patch severity with values like CRITICAL, HIGH, MEDIUM and LOW.
- time
Applied String - Date on which the patch was applied to the target.
- time
Released 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
ociTerraform Provider.
Oracle Cloud Infrastructure v3.11.1 published on Friday, Nov 14, 2025 by Pulumi
