1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getFleetComplianceReport
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.FleetAppsManagement.getFleetComplianceReport

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Fleet Compliance Report resource in Oracle Cloud Infrastructure Fleet Apps Management service.

    Retrieve compiane 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:FleetAppsManagement/getFleetComplianceReport:getFleetComplianceReport
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ComplianceReportId string
    compliance report identifier
    FleetId string
    unique Fleet identifier
    ComplianceReportId string
    compliance report identifier
    FleetId string
    unique Fleet identifier
    complianceReportId String
    compliance report identifier
    fleetId String
    unique Fleet identifier
    complianceReportId string
    compliance report identifier
    fleetId string
    unique Fleet identifier
    compliance_report_id str
    compliance report identifier
    fleet_id str
    unique Fleet identifier
    complianceReportId String
    compliance report identifier
    fleetId String
    unique Fleet identifier

    getFleetComplianceReport Result

    The following output properties are available:

    ComplianceReportId string
    ComplianceState string
    Last known compliance state of target.
    FleetId string
    The fleet OCID.
    Id string
    The provider-assigned unique ID for this managed resource.
    Resources List<GetFleetComplianceReportResource>
    Resources assocaited with the Fleet.
    ComplianceReportId string
    ComplianceState string
    Last known compliance state of target.
    FleetId string
    The fleet OCID.
    Id string
    The provider-assigned unique ID for this managed resource.
    Resources []GetFleetComplianceReportResource
    Resources assocaited with the Fleet.
    complianceReportId String
    complianceState String
    Last known compliance state of target.
    fleetId String
    The fleet OCID.
    id String
    The provider-assigned unique ID for this managed resource.
    resources List<GetFleetComplianceReportResource>
    Resources assocaited with the Fleet.
    complianceReportId string
    complianceState string
    Last known compliance state of target.
    fleetId string
    The fleet OCID.
    id string
    The provider-assigned unique ID for this managed resource.
    resources GetFleetComplianceReportResource[]
    Resources assocaited with the Fleet.
    compliance_report_id str
    compliance_state str
    Last known compliance state of target.
    fleet_id str
    The fleet OCID.
    id str
    The provider-assigned unique ID for this managed resource.
    resources Sequence[fleetappsmanagement.GetFleetComplianceReportResource]
    Resources assocaited with the Fleet.
    complianceReportId String
    complianceState String
    Last known compliance state of target.
    fleetId String
    The fleet OCID.
    id String
    The provider-assigned unique ID for this managed resource.
    resources List<Property Map>
    Resources assocaited with the Fleet.

    Supporting Types

    GetFleetComplianceReportResource

    Compartment string
    Compartment the resource belongs to.
    ComplianceState string
    Last known compliance state of target.
    Products List<GetFleetComplianceReportResourceProduct>
    Products assocaited with the Fleet.Only 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
    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
    Last known compliance state of target.
    Products []GetFleetComplianceReportResourceProduct
    Products assocaited with the Fleet.Only 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
    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
    Last known compliance state of target.
    products List<GetFleetComplianceReportResourceProduct>
    Products assocaited with the Fleet.Only 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
    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
    Last known compliance state of target.
    products GetFleetComplianceReportResourceProduct[]
    Products assocaited with the Fleet.Only 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
    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
    Last known compliance state of target.
    products Sequence[fleetappsmanagement.GetFleetComplianceReportResourceProduct]
    Products assocaited with the Fleet.Only 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
    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
    Last known compliance state of target.
    products List<Property Map>
    Products assocaited with the Fleet.Only 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
    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<GetFleetComplianceReportResourceProductTarget>
    Managed Targets associated with the Product.
    ProductName string
    Product Name
    Targets []GetFleetComplianceReportResourceProductTarget
    Managed Targets associated with the Product.
    productName String
    Product Name
    targets List<GetFleetComplianceReportResourceProductTarget>
    Managed Targets associated with the Product.
    productName string
    Product Name
    targets GetFleetComplianceReportResourceProductTarget[]
    Managed Targets associated with the Product.
    productName String
    Product Name
    targets List<Property Map>
    Managed Targets associated with the Product.

    GetFleetComplianceReportResourceProductTarget

    ComplianceState string
    Last known compliance state of target.
    InstalledPatches List<GetFleetComplianceReportResourceProductTargetInstalledPatch>
    Installed Patches for the Target.
    RecommendedPatches List<GetFleetComplianceReportResourceProductTargetRecommendedPatch>
    Recommended Patches for the Target.
    TargetId string
    Target Identifier.
    TargetName string
    Target Name.
    Version string
    Current version.
    ComplianceState string
    Last known compliance state of target.
    InstalledPatches []GetFleetComplianceReportResourceProductTargetInstalledPatch
    Installed Patches for the Target.
    RecommendedPatches []GetFleetComplianceReportResourceProductTargetRecommendedPatch
    Recommended Patches for the Target.
    TargetId string
    Target Identifier.
    TargetName string
    Target Name.
    Version string
    Current version.
    complianceState String
    Last known compliance state of target.
    installedPatches List<GetFleetComplianceReportResourceProductTargetInstalledPatch>
    Installed Patches for the Target.
    recommendedPatches List<GetFleetComplianceReportResourceProductTargetRecommendedPatch>
    Recommended Patches for the Target.
    targetId String
    Target Identifier.
    targetName String
    Target Name.
    version String
    Current version.
    complianceState string
    Last known compliance state of target.
    installedPatches GetFleetComplianceReportResourceProductTargetInstalledPatch[]
    Installed Patches for the Target.
    recommendedPatches GetFleetComplianceReportResourceProductTargetRecommendedPatch[]
    Recommended Patches for the Target.
    targetId string
    Target Identifier.
    targetName string
    Target Name.
    version string
    Current version.
    complianceState String
    Last known compliance state of target.
    installedPatches List<Property Map>
    Installed Patches for the Target.
    recommendedPatches List<Property Map>
    Recommended Patches for the Target.
    targetId String
    Target Identifier.
    targetName String
    Target Name.
    version String
    Current version.

    GetFleetComplianceReportResourceProductTargetInstalledPatch

    PatchDescription string
    The OCID of the work request to start the analysis.
    PatchName string
    The OCID to identify this analysis results.
    PatchType string
    Type of patch.
    TimeApplied string
    Time the patch was applied
    TimeReleased string
    Date on which patch was released.
    PatchDescription string
    The OCID of the work request to start the analysis.
    PatchName string
    The OCID to identify this analysis results.
    PatchType string
    Type of patch.
    TimeApplied string
    Time the patch was applied
    TimeReleased string
    Date on which patch was released.
    patchDescription String
    The OCID of the work request to start the analysis.
    patchName String
    The OCID to identify this analysis results.
    patchType String
    Type of patch.
    timeApplied String
    Time the patch was applied
    timeReleased String
    Date on which patch was released.
    patchDescription string
    The OCID of the work request to start the analysis.
    patchName string
    The OCID to identify this analysis results.
    patchType string
    Type of patch.
    timeApplied string
    Time the patch was applied
    timeReleased string
    Date on which patch was released.
    patch_description str
    The OCID of the work request to start the analysis.
    patch_name str
    The OCID to identify this analysis results.
    patch_type str
    Type of patch.
    time_applied str
    Time the patch was applied
    time_released str
    Date on which patch was released.
    patchDescription String
    The OCID of the work request to start the analysis.
    patchName String
    The OCID to identify this analysis results.
    patchType String
    Type of patch.
    timeApplied String
    Time the patch was applied
    timeReleased String
    Date on which patch was released.

    GetFleetComplianceReportResourceProductTargetRecommendedPatch

    PatchDescription string
    The OCID of the work request to start the analysis.
    PatchName string
    The OCID to identify this analysis results.
    PatchType string
    Type of patch.
    TimeApplied string
    Time the patch was applied
    TimeReleased string
    Date on which patch was released.
    PatchDescription string
    The OCID of the work request to start the analysis.
    PatchName string
    The OCID to identify this analysis results.
    PatchType string
    Type of patch.
    TimeApplied string
    Time the patch was applied
    TimeReleased string
    Date on which patch was released.
    patchDescription String
    The OCID of the work request to start the analysis.
    patchName String
    The OCID to identify this analysis results.
    patchType String
    Type of patch.
    timeApplied String
    Time the patch was applied
    timeReleased String
    Date on which patch was released.
    patchDescription string
    The OCID of the work request to start the analysis.
    patchName string
    The OCID to identify this analysis results.
    patchType string
    Type of patch.
    timeApplied string
    Time the patch was applied
    timeReleased string
    Date on which patch was released.
    patch_description str
    The OCID of the work request to start the analysis.
    patch_name str
    The OCID to identify this analysis results.
    patch_type str
    Type of patch.
    time_applied str
    Time the patch was applied
    time_released str
    Date on which patch was released.
    patchDescription String
    The OCID of the work request to start the analysis.
    patchName String
    The OCID to identify this analysis results.
    patchType String
    Type of patch.
    timeApplied String
    Time the patch was applied
    timeReleased String
    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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi