Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.FleetAppsManagement.getFleetComplianceReport
Explore with Pulumi AI
This data source provides details about a specific Fleet Compliance Report resource in Oracle Cloud Infrastructure Fleet Apps Management service.
Retrieve compliance report for a fleet.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFleetComplianceReport = oci.FleetAppsManagement.getFleetComplianceReport({
    complianceReportId: testReport.id,
    fleetId: testFleet.id,
});
import pulumi
import pulumi_oci as oci
test_fleet_compliance_report = oci.FleetAppsManagement.get_fleet_compliance_report(compliance_report_id=test_report["id"],
    fleet_id=test_fleet["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/fleetappsmanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fleetappsmanagement.GetFleetComplianceReport(ctx, &fleetappsmanagement.GetFleetComplianceReportArgs{
			ComplianceReportId: testReport.Id,
			FleetId:            testFleet.Id,
		}, 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 testFleetComplianceReport = Oci.FleetAppsManagement.GetFleetComplianceReport.Invoke(new()
    {
        ComplianceReportId = testReport.Id,
        FleetId = testFleet.Id,
    });
});
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.GetFleetComplianceReportArgs;
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 testFleetComplianceReport = FleetAppsManagementFunctions.getFleetComplianceReport(GetFleetComplianceReportArgs.builder()
            .complianceReportId(testReport.id())
            .fleetId(testFleet.id())
            .build());
    }
}
variables:
  testFleetComplianceReport:
    fn::invoke:
      function: oci:FleetAppsManagement:getFleetComplianceReport
      arguments:
        complianceReportId: ${testReport.id}
        fleetId: ${testFleet.id}
Using getFleetComplianceReport
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 getFleetComplianceReport(args: GetFleetComplianceReportArgs, opts?: InvokeOptions): Promise<GetFleetComplianceReportResult>
function getFleetComplianceReportOutput(args: GetFleetComplianceReportOutputArgs, opts?: InvokeOptions): Output<GetFleetComplianceReportResult>def get_fleet_compliance_report(compliance_report_id: Optional[str] = None,
                                fleet_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetFleetComplianceReportResult
def get_fleet_compliance_report_output(compliance_report_id: Optional[pulumi.Input[str]] = None,
                                fleet_id: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetFleetComplianceReportResult]func GetFleetComplianceReport(ctx *Context, args *GetFleetComplianceReportArgs, opts ...InvokeOption) (*GetFleetComplianceReportResult, error)
func GetFleetComplianceReportOutput(ctx *Context, args *GetFleetComplianceReportOutputArgs, opts ...InvokeOption) GetFleetComplianceReportResultOutput> Note: This function is named GetFleetComplianceReport in the Go SDK.
public static class GetFleetComplianceReport 
{
    public static Task<GetFleetComplianceReportResult> InvokeAsync(GetFleetComplianceReportArgs args, InvokeOptions? opts = null)
    public static Output<GetFleetComplianceReportResult> Invoke(GetFleetComplianceReportInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFleetComplianceReportResult> getFleetComplianceReport(GetFleetComplianceReportArgs args, InvokeOptions options)
public static Output<GetFleetComplianceReportResult> getFleetComplianceReport(GetFleetComplianceReportArgs args, InvokeOptions options)
fn::invoke:
  function: oci:FleetAppsManagement/getFleetComplianceReport:getFleetComplianceReport
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ComplianceReport stringId 
- compliance report identifier.
- FleetId string
- Unique Fleet identifier.
- ComplianceReport stringId 
- compliance report identifier.
- FleetId string
- Unique Fleet identifier.
- complianceReport StringId 
- compliance report identifier.
- fleetId String
- Unique Fleet identifier.
- complianceReport stringId 
- compliance report identifier.
- fleetId string
- Unique Fleet identifier.
- compliance_report_ strid 
- compliance report identifier.
- fleet_id str
- Unique Fleet identifier.
- complianceReport StringId 
- compliance report identifier.
- fleetId String
- Unique Fleet identifier.
getFleetComplianceReport Result
The following output properties are available:
- ComplianceReport stringId 
- ComplianceState string
- The last known compliance state of the target.
- FleetId string
- The fleet OCID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resources
List<GetFleet Compliance Report Resource> 
- Resources associated with the Fleet.
- ComplianceReport stringId 
- ComplianceState string
- The last known compliance state of the target.
- FleetId string
- The fleet OCID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resources
[]GetFleet Compliance Report Resource 
- Resources associated with the Fleet.
- complianceReport StringId 
- complianceState String
- The last known compliance state of the target.
- fleetId String
- The fleet OCID.
- id String
- The provider-assigned unique ID for this managed resource.
- resources
List<GetFleet Compliance Report Resource> 
- Resources associated with the Fleet.
- complianceReport stringId 
- complianceState string
- The last known compliance state of the target.
- fleetId string
- The fleet OCID.
- id string
- The provider-assigned unique ID for this managed resource.
- resources
GetFleet Compliance Report Resource[] 
- Resources associated with the Fleet.
- compliance_report_ strid 
- compliance_state str
- The last known compliance state of the target.
- fleet_id str
- The fleet OCID.
- id str
- The provider-assigned unique ID for this managed resource.
- resources
Sequence[GetFleet Compliance Report Resource] 
- Resources associated with the Fleet.
- complianceReport StringId 
- complianceState String
- The last known compliance state of the target.
- fleetId String
- The fleet OCID.
- id String
- The provider-assigned unique ID for this managed resource.
- resources List<Property Map>
- Resources associated with the Fleet.
Supporting Types
GetFleetComplianceReportResource    
- Compartment string
- Compartment the resource belongs to.
- ComplianceState string
- The last known compliance state of the target.
- Products
List<GetFleet Compliance Report Resource Product> 
- Products associated with the Fleet. Only the products belonging to managed targets will be shown.
- ResourceId string
- The OCID to identify the resource.
- ResourceName string
- Display name of the resource.
- ResourceRegion string
- The region the resource belongs to.
- ResourceType string
- Type of the resource.
- TenancyId string
- TenancyId of the resource.
- TenancyName string
- Tenancy the resource belongs to.
- Compartment string
- Compartment the resource belongs to.
- ComplianceState string
- The last known compliance state of the target.
- Products
[]GetFleet Compliance Report Resource Product 
- Products associated with the Fleet. Only the products belonging to managed targets will be shown.
- ResourceId string
- The OCID to identify the resource.
- ResourceName string
- Display name of the resource.
- ResourceRegion string
- The region the resource belongs to.
- ResourceType string
- Type of the resource.
- TenancyId string
- TenancyId of the resource.
- TenancyName string
- Tenancy the resource belongs to.
- compartment String
- Compartment the resource belongs to.
- complianceState String
- The last known compliance state of the target.
- products
List<GetFleet Compliance Report Resource Product> 
- Products associated with the Fleet. Only the products belonging to managed targets will be shown.
- resourceId String
- The OCID to identify the resource.
- resourceName String
- Display name of the resource.
- resourceRegion String
- The region the resource belongs to.
- resourceType String
- Type of the resource.
- tenancyId String
- TenancyId of the resource.
- tenancyName String
- Tenancy the resource belongs to.
- compartment string
- Compartment the resource belongs to.
- complianceState string
- The last known compliance state of the target.
- products
GetFleet Compliance Report Resource Product[] 
- Products associated with the Fleet. Only the products belonging to managed targets will be shown.
- resourceId string
- The OCID to identify the resource.
- resourceName string
- Display name of the resource.
- resourceRegion string
- The region the resource belongs to.
- resourceType string
- Type of the resource.
- tenancyId string
- TenancyId of the resource.
- tenancyName string
- Tenancy the resource belongs to.
- compartment str
- Compartment the resource belongs to.
- compliance_state str
- The last known compliance state of the target.
- products
Sequence[GetFleet Compliance Report Resource Product] 
- Products associated with the Fleet. Only the products belonging to managed targets will be shown.
- resource_id str
- The OCID to identify the resource.
- resource_name str
- Display name of the resource.
- resource_region str
- The region the resource belongs to.
- resource_type str
- Type of the resource.
- tenancy_id str
- TenancyId of the resource.
- tenancy_name str
- Tenancy the resource belongs to.
- compartment String
- Compartment the resource belongs to.
- complianceState String
- The last known compliance state of the target.
- products List<Property Map>
- Products associated with the Fleet. Only the products belonging to managed targets will be shown.
- resourceId String
- The OCID to identify the resource.
- resourceName String
- Display name of the resource.
- resourceRegion String
- The region the resource belongs to.
- resourceType String
- Type of the resource.
- tenancyId String
- TenancyId of the resource.
- tenancyName String
- Tenancy the resource belongs to.
GetFleetComplianceReportResourceProduct     
- ProductName string
- Product Name.
- Targets
List<GetFleet Compliance Report Resource Product Target> 
- Managed Targets associated with the Product.
- ProductName string
- Product Name.
- Targets
[]GetFleet Compliance Report Resource Product Target 
- Managed Targets associated with the Product.
- productName String
- Product Name.
- targets
List<GetFleet Compliance Report Resource Product Target> 
- Managed Targets associated with the Product.
- productName string
- Product Name.
- targets
GetFleet Compliance Report Resource Product Target[] 
- Managed Targets associated with the Product.
- product_name str
- Product Name.
- targets
Sequence[GetFleet Compliance Report Resource Product Target] 
- Managed Targets associated with the Product.
- productName String
- Product Name.
- targets List<Property Map>
- Managed Targets associated with the Product.
GetFleetComplianceReportResourceProductTarget      
- ComplianceState string
- The last known compliance state of the target.
- InstalledPatches List<GetFleet Compliance Report Resource Product Target Installed Patch> 
- Installed Patches for the Target.
- RecommendedPatches List<GetFleet Compliance Report Resource Product Target Recommended Patch> 
- Recommended Patches for the Target.
- TargetId string
- Target Identifier.Can be the target name if a separate ID is not available.
- TargetName string
- Target Name.
- Version string
- Current version of the target.
- ComplianceState string
- The last known compliance state of the target.
- InstalledPatches []GetFleet Compliance Report Resource Product Target Installed Patch 
- Installed Patches for the Target.
- RecommendedPatches []GetFleet Compliance Report Resource Product Target Recommended Patch 
- Recommended Patches for the Target.
- TargetId string
- Target Identifier.Can be the target name if a separate ID is not available.
- TargetName string
- Target Name.
- Version string
- Current version of the target.
- complianceState String
- The last known compliance state of the target.
- installedPatches List<GetFleet Compliance Report Resource Product Target Installed Patch> 
- Installed Patches for the Target.
- recommendedPatches List<GetFleet Compliance Report Resource Product Target Recommended Patch> 
- Recommended Patches for the Target.
- targetId String
- Target Identifier.Can be the target name if a separate ID is not available.
- targetName String
- Target Name.
- version String
- Current version of the target.
- complianceState string
- The last known compliance state of the target.
- installedPatches GetFleet Compliance Report Resource Product Target Installed Patch[] 
- Installed Patches for the Target.
- recommendedPatches GetFleet Compliance Report Resource Product Target Recommended Patch[] 
- Recommended Patches for the Target.
- targetId string
- Target Identifier.Can be the target name if a separate ID is not available.
- targetName string
- Target Name.
- version string
- Current version of the target.
- compliance_state str
- The last known compliance state of the target.
- installed_patches Sequence[GetFleet Compliance Report Resource Product Target Installed Patch] 
- Installed Patches for the Target.
- recommended_patches Sequence[GetFleet Compliance Report Resource Product Target Recommended Patch] 
- Recommended Patches for the Target.
- target_id str
- Target Identifier.Can be the target name if a separate ID is not available.
- target_name str
- Target Name.
- version str
- Current version of the target.
- complianceState String
- The last known compliance state of the target.
- installedPatches List<Property Map>
- Installed Patches for the Target.
- recommendedPatches List<Property Map>
- Recommended Patches for the Target.
- targetId String
- Target Identifier.Can be the target name if a separate ID is not available.
- targetName String
- Target Name.
- version String
- Current version of the target.
GetFleetComplianceReportResourceProductTargetInstalledPatch        
- PatchDescription string
- Patch description.
- PatchName string
- Patch name.
- PatchType string
- Type of patch.
- TimeApplied string
- Time the patch was applied.
- TimeReleased string
- The date on which patch was released.
- PatchDescription string
- Patch description.
- PatchName string
- Patch name.
- PatchType string
- Type of patch.
- TimeApplied string
- Time the patch was applied.
- TimeReleased string
- The date on which patch was released.
- patchDescription String
- Patch description.
- patchName String
- Patch name.
- patchType String
- Type of patch.
- timeApplied String
- Time the patch was applied.
- timeReleased String
- The date on which patch was released.
- patchDescription string
- Patch description.
- patchName string
- Patch name.
- patchType string
- Type of patch.
- timeApplied string
- Time the patch was applied.
- timeReleased string
- The date on which patch was released.
- patch_description str
- Patch description.
- patch_name str
- Patch name.
- patch_type str
- Type of patch.
- time_applied str
- Time the patch was applied.
- time_released str
- The date on which patch was released.
- patchDescription String
- Patch description.
- patchName String
- Patch name.
- patchType String
- Type of patch.
- timeApplied String
- Time the patch was applied.
- timeReleased String
- The date on which patch was released.
GetFleetComplianceReportResourceProductTargetRecommendedPatch        
- PatchDescription string
- Patch description.
- PatchName string
- Patch name.
- PatchType string
- Type of patch.
- TimeApplied string
- Time the patch was applied.
- TimeReleased string
- The date on which patch was released.
- PatchDescription string
- Patch description.
- PatchName string
- Patch name.
- PatchType string
- Type of patch.
- TimeApplied string
- Time the patch was applied.
- TimeReleased string
- The date on which patch was released.
- patchDescription String
- Patch description.
- patchName String
- Patch name.
- patchType String
- Type of patch.
- timeApplied String
- Time the patch was applied.
- timeReleased String
- The date on which patch was released.
- patchDescription string
- Patch description.
- patchName string
- Patch name.
- patchType string
- Type of patch.
- timeApplied string
- Time the patch was applied.
- timeReleased string
- The date on which patch was released.
- patch_description str
- Patch description.
- patch_name str
- Patch name.
- patch_type str
- Type of patch.
- time_applied str
- Time the patch was applied.
- time_released str
- The date on which patch was released.
- patchDescription String
- Patch description.
- patchName String
- Patch name.
- patchType String
- Type of patch.
- timeApplied String
- Time the patch was applied.
- timeReleased String
- The date on which patch was released.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.