1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getFleetComplianceReport
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.FleetAppsManagement.getFleetComplianceReport

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testFleetComplianceReport:
    fn::invoke:
      function: oci:FleetAppsManagement:getFleetComplianceReport
      arguments:
        complianceReportId: ${testReport.id}
        fleetId: ${testFleet.id}
Copy

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>
Copy
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]
Copy
func GetFleetComplianceReport(ctx *Context, args *GetFleetComplianceReportArgs, opts ...InvokeOption) (*GetFleetComplianceReportResult, error)
func GetFleetComplianceReportOutput(ctx *Context, args *GetFleetComplianceReportOutputArgs, opts ...InvokeOption) GetFleetComplianceReportResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetFleetComplianceReportResult> getFleetComplianceReport(GetFleetComplianceReportArgs args, InvokeOptions options)
public static Output<GetFleetComplianceReportResult> getFleetComplianceReport(GetFleetComplianceReportArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:FleetAppsManagement/getFleetComplianceReport:getFleetComplianceReport
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ComplianceReportId This property is required. string
compliance report identifier.
FleetId This property is required. string
Unique Fleet identifier.
ComplianceReportId This property is required. string
compliance report identifier.
FleetId This property is required. string
Unique Fleet identifier.
complianceReportId This property is required. String
compliance report identifier.
fleetId This property is required. String
Unique Fleet identifier.
complianceReportId This property is required. string
compliance report identifier.
fleetId This property is required. string
Unique Fleet identifier.
compliance_report_id This property is required. str
compliance report identifier.
fleet_id This property is required. str
Unique Fleet identifier.
complianceReportId This property is required. String
compliance report identifier.
fleetId This property is required. String
Unique Fleet identifier.

getFleetComplianceReport Result

The following output properties are available:

ComplianceReportId string
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<GetFleetComplianceReportResource>
Resources associated with the Fleet.
ComplianceReportId string
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 []GetFleetComplianceReportResource
Resources associated with the Fleet.
complianceReportId String
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<GetFleetComplianceReportResource>
Resources associated with the Fleet.
complianceReportId string
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 GetFleetComplianceReportResource[]
Resources associated with the Fleet.
compliance_report_id str
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[fleetappsmanagement.GetFleetComplianceReportResource]
Resources associated with the Fleet.
complianceReportId String
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 This property is required. string
Compartment the resource belongs to.
ComplianceState This property is required. string
The last known compliance state of the target.
Products This property is required. List<GetFleetComplianceReportResourceProduct>
Products associated with the Fleet. Only the products belonging to managed targets will be shown.
ResourceId This property is required. string
The OCID to identify the resource.
ResourceName This property is required. string
Display name of the resource.
ResourceRegion This property is required. string
The region the resource belongs to.
ResourceType This property is required. string
Type of the resource.
TenancyId This property is required. string
TenancyId of the resource.
TenancyName This property is required. string
Tenancy the resource belongs to.
Compartment This property is required. string
Compartment the resource belongs to.
ComplianceState This property is required. string
The last known compliance state of the target.
Products This property is required. []GetFleetComplianceReportResourceProduct
Products associated with the Fleet. Only the products belonging to managed targets will be shown.
ResourceId This property is required. string
The OCID to identify the resource.
ResourceName This property is required. string
Display name of the resource.
ResourceRegion This property is required. string
The region the resource belongs to.
ResourceType This property is required. string
Type of the resource.
TenancyId This property is required. string
TenancyId of the resource.
TenancyName This property is required. string
Tenancy the resource belongs to.
compartment This property is required. String
Compartment the resource belongs to.
complianceState This property is required. String
The last known compliance state of the target.
products This property is required. List<GetFleetComplianceReportResourceProduct>
Products associated with the Fleet. Only the products belonging to managed targets will be shown.
resourceId This property is required. String
The OCID to identify the resource.
resourceName This property is required. String
Display name of the resource.
resourceRegion This property is required. String
The region the resource belongs to.
resourceType This property is required. String
Type of the resource.
tenancyId This property is required. String
TenancyId of the resource.
tenancyName This property is required. String
Tenancy the resource belongs to.
compartment This property is required. string
Compartment the resource belongs to.
complianceState This property is required. string
The last known compliance state of the target.
products This property is required. GetFleetComplianceReportResourceProduct[]
Products associated with the Fleet. Only the products belonging to managed targets will be shown.
resourceId This property is required. string
The OCID to identify the resource.
resourceName This property is required. string
Display name of the resource.
resourceRegion This property is required. string
The region the resource belongs to.
resourceType This property is required. string
Type of the resource.
tenancyId This property is required. string
TenancyId of the resource.
tenancyName This property is required. string
Tenancy the resource belongs to.
compartment This property is required. str
Compartment the resource belongs to.
compliance_state This property is required. str
The last known compliance state of the target.
products This property is required. Sequence[fleetappsmanagement.GetFleetComplianceReportResourceProduct]
Products associated with the Fleet. Only the products belonging to managed targets will be shown.
resource_id This property is required. str
The OCID to identify the resource.
resource_name This property is required. str
Display name of the resource.
resource_region This property is required. str
The region the resource belongs to.
resource_type This property is required. str
Type of the resource.
tenancy_id This property is required. str
TenancyId of the resource.
tenancy_name This property is required. str
Tenancy the resource belongs to.
compartment This property is required. String
Compartment the resource belongs to.
complianceState This property is required. String
The last known compliance state of the target.
products This property is required. List<Property Map>
Products associated with the Fleet. Only the products belonging to managed targets will be shown.
resourceId This property is required. String
The OCID to identify the resource.
resourceName This property is required. String
Display name of the resource.
resourceRegion This property is required. String
The region the resource belongs to.
resourceType This property is required. String
Type of the resource.
tenancyId This property is required. String
TenancyId of the resource.
tenancyName This property is required. String
Tenancy the resource belongs to.

GetFleetComplianceReportResourceProduct

ProductName This property is required. string
Product Name.
Targets This property is required. List<GetFleetComplianceReportResourceProductTarget>
Managed Targets associated with the Product.
ProductName This property is required. string
Product Name.
Targets This property is required. []GetFleetComplianceReportResourceProductTarget
Managed Targets associated with the Product.
productName This property is required. String
Product Name.
targets This property is required. List<GetFleetComplianceReportResourceProductTarget>
Managed Targets associated with the Product.
productName This property is required. string
Product Name.
targets This property is required. GetFleetComplianceReportResourceProductTarget[]
Managed Targets associated with the Product.
product_name This property is required. str
Product Name.
targets This property is required. Sequence[fleetappsmanagement.GetFleetComplianceReportResourceProductTarget]
Managed Targets associated with the Product.
productName This property is required. String
Product Name.
targets This property is required. List<Property Map>
Managed Targets associated with the Product.

GetFleetComplianceReportResourceProductTarget

ComplianceState This property is required. string
The last known compliance state of the target.
InstalledPatches This property is required. List<GetFleetComplianceReportResourceProductTargetInstalledPatch>
Installed Patches for the Target.
RecommendedPatches This property is required. List<GetFleetComplianceReportResourceProductTargetRecommendedPatch>
Recommended Patches for the Target.
TargetId This property is required. string
Target Identifier.Can be the target name if a separate ID is not available.
TargetName This property is required. string
Target Name.
Version This property is required. string
Current version of the target.
ComplianceState This property is required. string
The last known compliance state of the target.
InstalledPatches This property is required. []GetFleetComplianceReportResourceProductTargetInstalledPatch
Installed Patches for the Target.
RecommendedPatches This property is required. []GetFleetComplianceReportResourceProductTargetRecommendedPatch
Recommended Patches for the Target.
TargetId This property is required. string
Target Identifier.Can be the target name if a separate ID is not available.
TargetName This property is required. string
Target Name.
Version This property is required. string
Current version of the target.
complianceState This property is required. String
The last known compliance state of the target.
installedPatches This property is required. List<GetFleetComplianceReportResourceProductTargetInstalledPatch>
Installed Patches for the Target.
recommendedPatches This property is required. List<GetFleetComplianceReportResourceProductTargetRecommendedPatch>
Recommended Patches for the Target.
targetId This property is required. String
Target Identifier.Can be the target name if a separate ID is not available.
targetName This property is required. String
Target Name.
version This property is required. String
Current version of the target.
complianceState This property is required. string
The last known compliance state of the target.
installedPatches This property is required. GetFleetComplianceReportResourceProductTargetInstalledPatch[]
Installed Patches for the Target.
recommendedPatches This property is required. GetFleetComplianceReportResourceProductTargetRecommendedPatch[]
Recommended Patches for the Target.
targetId This property is required. string
Target Identifier.Can be the target name if a separate ID is not available.
targetName This property is required. string
Target Name.
version This property is required. string
Current version of the target.
compliance_state This property is required. str
The last known compliance state of the target.
installed_patches This property is required. Sequence[fleetappsmanagement.GetFleetComplianceReportResourceProductTargetInstalledPatch]
Installed Patches for the Target.
recommended_patches This property is required. Sequence[fleetappsmanagement.GetFleetComplianceReportResourceProductTargetRecommendedPatch]
Recommended Patches for the Target.
target_id This property is required. str
Target Identifier.Can be the target name if a separate ID is not available.
target_name This property is required. str
Target Name.
version This property is required. str
Current version of the target.
complianceState This property is required. String
The last known compliance state of the target.
installedPatches This property is required. List<Property Map>
Installed Patches for the Target.
recommendedPatches This property is required. List<Property Map>
Recommended Patches for the Target.
targetId This property is required. String
Target Identifier.Can be the target name if a separate ID is not available.
targetName This property is required. String
Target Name.
version This property is required. String
Current version of the target.

GetFleetComplianceReportResourceProductTargetInstalledPatch

PatchDescription This property is required. string
Patch description.
PatchName This property is required. string
Patch name.
PatchType This property is required. string
Type of patch.
TimeApplied This property is required. string
Time the patch was applied.
TimeReleased This property is required. string
The date on which patch was released.
PatchDescription This property is required. string
Patch description.
PatchName This property is required. string
Patch name.
PatchType This property is required. string
Type of patch.
TimeApplied This property is required. string
Time the patch was applied.
TimeReleased This property is required. string
The date on which patch was released.
patchDescription This property is required. String
Patch description.
patchName This property is required. String
Patch name.
patchType This property is required. String
Type of patch.
timeApplied This property is required. String
Time the patch was applied.
timeReleased This property is required. String
The date on which patch was released.
patchDescription This property is required. string
Patch description.
patchName This property is required. string
Patch name.
patchType This property is required. string
Type of patch.
timeApplied This property is required. string
Time the patch was applied.
timeReleased This property is required. string
The date on which patch was released.
patch_description This property is required. str
Patch description.
patch_name This property is required. str
Patch name.
patch_type This property is required. str
Type of patch.
time_applied This property is required. str
Time the patch was applied.
time_released This property is required. str
The date on which patch was released.
patchDescription This property is required. String
Patch description.
patchName This property is required. String
Patch name.
patchType This property is required. String
Type of patch.
timeApplied This property is required. String
Time the patch was applied.
timeReleased This property is required. String
The date on which patch was released.

GetFleetComplianceReportResourceProductTargetRecommendedPatch

PatchDescription This property is required. string
Patch description.
PatchName This property is required. string
Patch name.
PatchType This property is required. string
Type of patch.
TimeApplied This property is required. string
Time the patch was applied.
TimeReleased This property is required. string
The date on which patch was released.
PatchDescription This property is required. string
Patch description.
PatchName This property is required. string
Patch name.
PatchType This property is required. string
Type of patch.
TimeApplied This property is required. string
Time the patch was applied.
TimeReleased This property is required. string
The date on which patch was released.
patchDescription This property is required. String
Patch description.
patchName This property is required. String
Patch name.
patchType This property is required. String
Type of patch.
timeApplied This property is required. String
Time the patch was applied.
timeReleased This property is required. String
The date on which patch was released.
patchDescription This property is required. string
Patch description.
patchName This property is required. string
Patch name.
patchType This property is required. string
Type of patch.
timeApplied This property is required. string
Time the patch was applied.
timeReleased This property is required. string
The date on which patch was released.
patch_description This property is required. str
Patch description.
patch_name This property is required. str
Patch name.
patch_type This property is required. str
Type of patch.
time_applied This property is required. str
Time the patch was applied.
time_released This property is required. str
The date on which patch was released.
patchDescription This property is required. String
Patch description.
patchName This property is required. String
Patch name.
patchType This property is required. String
Type of patch.
timeApplied This property is required. String
Time the patch was applied.
timeReleased This property is required. 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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi