Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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 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:
- Compliance
Report stringId - compliance report identifier
- Fleet
Id string - unique Fleet identifier
- Compliance
Report stringId - compliance report identifier
- Fleet
Id string - unique Fleet identifier
- compliance
Report StringId - compliance report identifier
- fleet
Id String - unique Fleet identifier
- compliance
Report stringId - compliance report identifier
- fleet
Id string - unique Fleet identifier
- compliance_
report_ strid - compliance report identifier
- fleet_
id str - unique Fleet identifier
- compliance
Report StringId - compliance report identifier
- fleet
Id String - unique Fleet identifier
getFleetComplianceReport Result
The following output properties are available:
- Compliance
Report stringId - Compliance
State string - Last known compliance state of target.
- Fleet
Id string - The fleet OCID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resources
List<Get
Fleet Compliance Report Resource> - Resources assocaited with the Fleet.
- Compliance
Report stringId - Compliance
State string - Last known compliance state of target.
- Fleet
Id string - The fleet OCID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resources
[]Get
Fleet Compliance Report Resource - Resources assocaited with the Fleet.
- compliance
Report StringId - compliance
State String - Last known compliance state of target.
- fleet
Id String - The fleet OCID.
- id String
- The provider-assigned unique ID for this managed resource.
- resources
List<Get
Fleet Compliance Report Resource> - Resources assocaited with the Fleet.
- compliance
Report stringId - compliance
State string - Last known compliance state of target.
- fleet
Id string - The fleet OCID.
- id string
- The provider-assigned unique ID for this managed resource.
- resources
Get
Fleet Compliance Report Resource[] - Resources assocaited with the Fleet.
- compliance_
report_ strid - 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.
Get Fleet Compliance Report Resource] - Resources assocaited with the Fleet.
- compliance
Report StringId - compliance
State String - Last known compliance state of target.
- fleet
Id 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.
- Compliance
State string - Last known compliance state of target.
- Products
List<Get
Fleet Compliance Report Resource Product> - Products assocaited with the Fleet.Only products belonging to managed targets will be shown.
- Resource
Id string - The OCID to identify the resource.
- Resource
Name string - Display name of the resource.
- Resource
Region string - Region the resource belongs to.
- Resource
Type string - Type of the resource.
- Tenancy
Id string - TenancyId of the resource.
- Tenancy
Name string - Tenancy the resource belongs to.
- Compartment string
- Compartment the resource belongs to.
- Compliance
State string - Last known compliance state of target.
- Products
[]Get
Fleet Compliance Report Resource Product - Products assocaited with the Fleet.Only products belonging to managed targets will be shown.
- Resource
Id string - The OCID to identify the resource.
- Resource
Name string - Display name of the resource.
- Resource
Region string - Region the resource belongs to.
- Resource
Type string - Type of the resource.
- Tenancy
Id string - TenancyId of the resource.
- Tenancy
Name string - Tenancy the resource belongs to.
- compartment String
- Compartment the resource belongs to.
- compliance
State String - Last known compliance state of target.
- products
List<Get
Fleet Compliance Report Resource Product> - Products assocaited with the Fleet.Only products belonging to managed targets will be shown.
- resource
Id String - The OCID to identify the resource.
- resource
Name String - Display name of the resource.
- resource
Region String - Region the resource belongs to.
- resource
Type String - Type of the resource.
- tenancy
Id String - TenancyId of the resource.
- tenancy
Name String - Tenancy the resource belongs to.
- compartment string
- Compartment the resource belongs to.
- compliance
State string - Last known compliance state of target.
- products
Get
Fleet Compliance Report Resource Product[] - Products assocaited with the Fleet.Only products belonging to managed targets will be shown.
- resource
Id string - The OCID to identify the resource.
- resource
Name string - Display name of the resource.
- resource
Region string - Region the resource belongs to.
- resource
Type string - Type of the resource.
- tenancy
Id string - TenancyId of the resource.
- tenancy
Name 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.
Get Fleet Compliance Report Resource Product] - 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.
- compliance
State 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.
- resource
Id String - The OCID to identify the resource.
- resource
Name String - Display name of the resource.
- resource
Region String - Region the resource belongs to.
- resource
Type String - Type of the resource.
- tenancy
Id String - TenancyId of the resource.
- tenancy
Name String - Tenancy the resource belongs to.
GetFleetComplianceReportResourceProduct
- Product
Name string - Product Name
- Targets
List<Get
Fleet Compliance Report Resource Product Target> - Managed Targets associated with the Product.
- Product
Name string - Product Name
- Targets
[]Get
Fleet Compliance Report Resource Product Target - Managed Targets associated with the Product.
- product
Name String - Product Name
- targets
List<Get
Fleet Compliance Report Resource Product Target> - Managed Targets associated with the Product.
- product
Name string - Product Name
- targets
Get
Fleet Compliance Report Resource Product Target[] - Managed Targets associated with the Product.
- product_
name str - Product Name
- targets
Sequence[fleetappsmanagement.
Get Fleet Compliance Report Resource Product Target] - Managed Targets associated with the Product.
- product
Name String - Product Name
- targets List<Property Map>
- Managed Targets associated with the Product.
GetFleetComplianceReportResourceProductTarget
- Compliance
State string - Last known compliance state of target.
- Installed
Patches List<GetFleet Compliance Report Resource Product Target Installed Patch> - Installed Patches for the Target.
- Recommended
Patches List<GetFleet Compliance Report Resource Product Target Recommended Patch> - Recommended Patches for the Target.
- Target
Id string - Target Identifier.
- Target
Name string - Target Name.
- Version string
- Current version.
- Compliance
State string - Last known compliance state of target.
- Installed
Patches []GetFleet Compliance Report Resource Product Target Installed Patch - Installed Patches for the Target.
- Recommended
Patches []GetFleet Compliance Report Resource Product Target Recommended Patch - Recommended Patches for the Target.
- Target
Id string - Target Identifier.
- Target
Name string - Target Name.
- Version string
- Current version.
- compliance
State String - Last known compliance state of target.
- installed
Patches List<GetFleet Compliance Report Resource Product Target Installed Patch> - Installed Patches for the Target.
- recommended
Patches List<GetFleet Compliance Report Resource Product Target Recommended Patch> - Recommended Patches for the Target.
- target
Id String - Target Identifier.
- target
Name String - Target Name.
- version String
- Current version.
- compliance
State string - Last known compliance state of target.
- installed
Patches GetFleet Compliance Report Resource Product Target Installed Patch[] - Installed Patches for the Target.
- recommended
Patches GetFleet Compliance Report Resource Product Target Recommended Patch[] - Recommended Patches for the Target.
- target
Id string - Target Identifier.
- target
Name string - Target Name.
- version string
- Current version.
- compliance_
state str - Last known compliance state of target.
- installed_
patches Sequence[fleetappsmanagement.Get Fleet Compliance Report Resource Product Target Installed Patch] - Installed Patches for the Target.
- recommended_
patches Sequence[fleetappsmanagement.Get Fleet Compliance Report Resource Product Target Recommended Patch] - Recommended Patches for the Target.
- target_
id str - Target Identifier.
- target_
name str - Target Name.
- version str
- Current version.
- compliance
State String - Last known compliance state of target.
- installed
Patches List<Property Map> - Installed Patches for the Target.
- recommended
Patches List<Property Map> - Recommended Patches for the Target.
- target
Id String - Target Identifier.
- target
Name String - Target Name.
- version String
- Current version.
GetFleetComplianceReportResourceProductTargetInstalledPatch
- Patch
Description string - The OCID of the work request to start the analysis.
- Patch
Name string - The OCID to identify this analysis results.
- Patch
Type string - Type of patch.
- Time
Applied string - Time the patch was applied
- Time
Released string - Date on which patch was released.
- Patch
Description string - The OCID of the work request to start the analysis.
- Patch
Name string - The OCID to identify this analysis results.
- Patch
Type string - Type of patch.
- Time
Applied string - Time the patch was applied
- Time
Released string - Date on which patch was released.
- patch
Description String - The OCID of the work request to start the analysis.
- patch
Name String - The OCID to identify this analysis results.
- patch
Type String - Type of patch.
- time
Applied String - Time the patch was applied
- time
Released String - Date on which patch was released.
- patch
Description string - The OCID of the work request to start the analysis.
- patch
Name string - The OCID to identify this analysis results.
- patch
Type string - Type of patch.
- time
Applied string - Time the patch was applied
- time
Released 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.
- patch
Description String - The OCID of the work request to start the analysis.
- patch
Name String - The OCID to identify this analysis results.
- patch
Type String - Type of patch.
- time
Applied String - Time the patch was applied
- time
Released String - Date on which patch was released.
GetFleetComplianceReportResourceProductTargetRecommendedPatch
- Patch
Description string - The OCID of the work request to start the analysis.
- Patch
Name string - The OCID to identify this analysis results.
- Patch
Type string - Type of patch.
- Time
Applied string - Time the patch was applied
- Time
Released string - Date on which patch was released.
- Patch
Description string - The OCID of the work request to start the analysis.
- Patch
Name string - The OCID to identify this analysis results.
- Patch
Type string - Type of patch.
- Time
Applied string - Time the patch was applied
- Time
Released string - Date on which patch was released.
- patch
Description String - The OCID of the work request to start the analysis.
- patch
Name String - The OCID to identify this analysis results.
- patch
Type String - Type of patch.
- time
Applied String - Time the patch was applied
- time
Released String - Date on which patch was released.
- patch
Description string - The OCID of the work request to start the analysis.
- patch
Name string - The OCID to identify this analysis results.
- patch
Type string - Type of patch.
- time
Applied string - Time the patch was applied
- time
Released 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.
- patch
Description String - The OCID of the work request to start the analysis.
- patch
Name String - The OCID to identify this analysis results.
- patch
Type String - Type of patch.
- time
Applied String - Time the patch was applied
- time
Released 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.