Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi
oci.FleetAppsManagement.getComplianceRecordCounts
Explore with Pulumi AI
This data source provides the list of Compliance Record Counts in Oracle Cloud Infrastructure Fleet Apps Management service.
Retrieve aggregated summary information of ComplianceRecords within a Tenancy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testComplianceRecordCounts = oci.FleetAppsManagement.getComplianceRecordCounts({
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_compliance_record_counts = oci.FleetAppsManagement.get_compliance_record_counts(compartment_id=compartment_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.GetComplianceRecordCounts(ctx, &fleetappsmanagement.GetComplianceRecordCountsArgs{
CompartmentId: pulumi.StringRef(compartmentId),
}, 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 testComplianceRecordCounts = Oci.FleetAppsManagement.GetComplianceRecordCounts.Invoke(new()
{
CompartmentId = compartmentId,
});
});
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.GetComplianceRecordCountsArgs;
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 testComplianceRecordCounts = FleetAppsManagementFunctions.getComplianceRecordCounts(GetComplianceRecordCountsArgs.builder()
.compartmentId(compartmentId)
.build());
}
}
variables:
testComplianceRecordCounts:
fn::invoke:
function: oci:FleetAppsManagement:getComplianceRecordCounts
arguments:
compartmentId: ${compartmentId}
Using getComplianceRecordCounts
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 getComplianceRecordCounts(args: GetComplianceRecordCountsArgs, opts?: InvokeOptions): Promise<GetComplianceRecordCountsResult>
function getComplianceRecordCountsOutput(args: GetComplianceRecordCountsOutputArgs, opts?: InvokeOptions): Output<GetComplianceRecordCountsResult>
def get_compliance_record_counts(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_fleetappsmanagement.GetComplianceRecordCountsFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetComplianceRecordCountsResult
def get_compliance_record_counts_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_fleetappsmanagement.GetComplianceRecordCountsFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetComplianceRecordCountsResult]
func GetComplianceRecordCounts(ctx *Context, args *GetComplianceRecordCountsArgs, opts ...InvokeOption) (*GetComplianceRecordCountsResult, error)
func GetComplianceRecordCountsOutput(ctx *Context, args *GetComplianceRecordCountsOutputArgs, opts ...InvokeOption) GetComplianceRecordCountsResultOutput
> Note: This function is named GetComplianceRecordCounts
in the Go SDK.
public static class GetComplianceRecordCounts
{
public static Task<GetComplianceRecordCountsResult> InvokeAsync(GetComplianceRecordCountsArgs args, InvokeOptions? opts = null)
public static Output<GetComplianceRecordCountsResult> Invoke(GetComplianceRecordCountsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetComplianceRecordCountsResult> getComplianceRecordCounts(GetComplianceRecordCountsArgs args, InvokeOptions options)
public static Output<GetComplianceRecordCountsResult> getComplianceRecordCounts(GetComplianceRecordCountsArgs args, InvokeOptions options)
fn::invoke:
function: oci:FleetAppsManagement/getComplianceRecordCounts:getComplianceRecordCounts
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Filters
List<Get
Compliance Record Counts Filter>
- Compartment
Id string - The ID of the compartment in which to list resources.
- Filters
[]Get
Compliance Record Counts Filter
- compartment
Id String - The ID of the compartment in which to list resources.
- filters
List<Get
Compliance Record Counts Filter>
- compartment
Id string - The ID of the compartment in which to list resources.
- filters
Get
Compliance Record Counts Filter[]
- compartment_
id str - The ID of the compartment in which to list resources.
- filters
Sequence[fleetappsmanagement.
Get Compliance Record Counts Filter]
- compartment
Id String - The ID of the compartment in which to list resources.
- filters List<Property Map>
getComplianceRecordCounts Result
The following output properties are available:
- Compliance
Record List<GetAggregation Collections Compliance Record Counts Compliance Record Aggregation Collection> - The list of compliance_record_aggregation_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id string - Filters
List<Get
Compliance Record Counts Filter>
- Compliance
Record []GetAggregation Collections Compliance Record Counts Compliance Record Aggregation Collection - The list of compliance_record_aggregation_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id string - Filters
[]Get
Compliance Record Counts Filter
- compliance
Record List<GetAggregation Collections Compliance Record Counts Compliance Record Aggregation Collection> - The list of compliance_record_aggregation_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id String - filters
List<Get
Compliance Record Counts Filter>
- compliance
Record GetAggregation Collections Compliance Record Counts Compliance Record Aggregation Collection[] - The list of compliance_record_aggregation_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- compartment
Id string - filters
Get
Compliance Record Counts Filter[]
- compliance_
record_ Sequence[fleetappsmanagement.aggregation_ collections Get Compliance Record Counts Compliance Record Aggregation Collection] - The list of compliance_record_aggregation_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- compartment_
id str - filters
Sequence[fleetappsmanagement.
Get Compliance Record Counts Filter]
- compliance
Record List<Property Map>Aggregation Collections - The list of compliance_record_aggregation_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id String - filters List<Property Map>
Supporting Types
GetComplianceRecordCountsComplianceRecordAggregationCollection
- Items
List<Get
Compliance Record Counts Compliance Record Aggregation Collection Item> - List of ComplianceRecordAggregation objects.
- Items
[]Get
Compliance Record Counts Compliance Record Aggregation Collection Item - List of ComplianceRecordAggregation objects.
- items
List<Get
Compliance Record Counts Compliance Record Aggregation Collection Item> - List of ComplianceRecordAggregation objects.
- items
Get
Compliance Record Counts Compliance Record Aggregation Collection Item[] - List of ComplianceRecordAggregation objects.
- items
Sequence[fleetappsmanagement.
Get Compliance Record Counts Compliance Record Aggregation Collection Item] - List of ComplianceRecordAggregation objects.
- items List<Property Map>
- List of ComplianceRecordAggregation objects.
GetComplianceRecordCountsComplianceRecordAggregationCollectionItem
- Compliance
Record intCount Count - count of ComplianceRecord in a Tenancy.
- Dimensions
List<Get
Compliance Record Counts Compliance Record Aggregation Collection Item Dimension> - Aggregated summary information for ComplianceRecord
- Compliance
Record intCount Count - count of ComplianceRecord in a Tenancy.
- Dimensions
[]Get
Compliance Record Counts Compliance Record Aggregation Collection Item Dimension - Aggregated summary information for ComplianceRecord
- compliance
Record IntegerCount Count - count of ComplianceRecord in a Tenancy.
- dimensions
List<Get
Compliance Record Counts Compliance Record Aggregation Collection Item Dimension> - Aggregated summary information for ComplianceRecord
- compliance
Record numberCount Count - count of ComplianceRecord in a Tenancy.
- dimensions
Get
Compliance Record Counts Compliance Record Aggregation Collection Item Dimension[] - Aggregated summary information for ComplianceRecord
- compliance_
record_ intcount_ count - count of ComplianceRecord in a Tenancy.
- dimensions
Sequence[fleetappsmanagement.
Get Compliance Record Counts Compliance Record Aggregation Collection Item Dimension] - Aggregated summary information for ComplianceRecord
- compliance
Record NumberCount Count - count of ComplianceRecord in a Tenancy.
- dimensions List<Property Map>
- Aggregated summary information for ComplianceRecord
GetComplianceRecordCountsComplianceRecordAggregationCollectionItemDimension
- Compliance
Level string - Level at which the compliance is calculated.
- Compliance
State string - Last known compliance state.
- Compliance
Level string - Level at which the compliance is calculated.
- Compliance
State string - Last known compliance state.
- compliance
Level String - Level at which the compliance is calculated.
- compliance
State String - Last known compliance state.
- compliance
Level string - Level at which the compliance is calculated.
- compliance
State string - Last known compliance state.
- compliance_
level str - Level at which the compliance is calculated.
- compliance_
state str - Last known compliance state.
- compliance
Level String - Level at which the compliance is calculated.
- compliance
State String - Last known compliance state.
GetComplianceRecordCountsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.