1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getComplianceRecordCounts
Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi

oci.FleetAppsManagement.getComplianceRecordCounts

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi

    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:

    CompartmentId string
    The ID of the compartment in which to list resources.
    Filters List<GetComplianceRecordCountsFilter>
    CompartmentId string
    The ID of the compartment in which to list resources.
    Filters []GetComplianceRecordCountsFilter
    compartmentId String
    The ID of the compartment in which to list resources.
    filters List<GetComplianceRecordCountsFilter>
    compartmentId string
    The ID of the compartment in which to list resources.
    filters GetComplianceRecordCountsFilter[]
    compartment_id str
    The ID of the compartment in which to list resources.
    filters Sequence[fleetappsmanagement.GetComplianceRecordCountsFilter]
    compartmentId String
    The ID of the compartment in which to list resources.
    filters List<Property Map>

    getComplianceRecordCounts Result

    The following output properties are available:

    ComplianceRecordAggregationCollections List<GetComplianceRecordCountsComplianceRecordAggregationCollection>
    The list of compliance_record_aggregation_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    CompartmentId string
    Filters List<GetComplianceRecordCountsFilter>
    ComplianceRecordAggregationCollections []GetComplianceRecordCountsComplianceRecordAggregationCollection
    The list of compliance_record_aggregation_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    CompartmentId string
    Filters []GetComplianceRecordCountsFilter
    complianceRecordAggregationCollections List<GetComplianceRecordCountsComplianceRecordAggregationCollection>
    The list of compliance_record_aggregation_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    compartmentId String
    filters List<GetComplianceRecordCountsFilter>
    complianceRecordAggregationCollections GetComplianceRecordCountsComplianceRecordAggregationCollection[]
    The list of compliance_record_aggregation_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    compartmentId string
    filters GetComplianceRecordCountsFilter[]
    complianceRecordAggregationCollections List<Property Map>
    The list of compliance_record_aggregation_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    compartmentId String
    filters List<Property Map>

    Supporting Types

    GetComplianceRecordCountsComplianceRecordAggregationCollection

    items List<Property Map>
    List of ComplianceRecordAggregation objects.

    GetComplianceRecordCountsComplianceRecordAggregationCollectionItem

    ComplianceRecordCountCount int
    count of ComplianceRecord in a Tenancy.
    Dimensions List<GetComplianceRecordCountsComplianceRecordAggregationCollectionItemDimension>
    Aggregated summary information for ComplianceRecord
    ComplianceRecordCountCount int
    count of ComplianceRecord in a Tenancy.
    Dimensions []GetComplianceRecordCountsComplianceRecordAggregationCollectionItemDimension
    Aggregated summary information for ComplianceRecord
    complianceRecordCountCount Integer
    count of ComplianceRecord in a Tenancy.
    dimensions List<GetComplianceRecordCountsComplianceRecordAggregationCollectionItemDimension>
    Aggregated summary information for ComplianceRecord
    complianceRecordCountCount number
    count of ComplianceRecord in a Tenancy.
    dimensions GetComplianceRecordCountsComplianceRecordAggregationCollectionItemDimension[]
    Aggregated summary information for ComplianceRecord
    complianceRecordCountCount Number
    count of ComplianceRecord in a Tenancy.
    dimensions List<Property Map>
    Aggregated summary information for ComplianceRecord

    GetComplianceRecordCountsComplianceRecordAggregationCollectionItemDimension

    ComplianceLevel string
    Level at which the compliance is calculated.
    ComplianceState string
    Last known compliance state.
    ComplianceLevel string
    Level at which the compliance is calculated.
    ComplianceState string
    Last known compliance state.
    complianceLevel String
    Level at which the compliance is calculated.
    complianceState String
    Last known compliance state.
    complianceLevel string
    Level at which the compliance is calculated.
    complianceState string
    Last known compliance state.
    compliance_level str
    Level at which the compliance is calculated.
    compliance_state str
    Last known compliance state.
    complianceLevel String
    Level at which the compliance is calculated.
    complianceState String
    Last known compliance state.

    GetComplianceRecordCountsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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.27.0 published on Thursday, Mar 20, 2025 by Pulumi