1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getManagedEntityCounts
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.FleetAppsManagement.getManagedEntityCounts

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

    This data source provides the list of Managed Entity Counts in Oracle Cloud Infrastructure Fleet Apps Management service.

    Retrieve aggregated summary information of Managed Entities within a Tenancy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedEntityCounts = oci.FleetAppsManagement.getManagedEntityCounts({
        compartmentId: compartmentId,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_entity_counts = oci.FleetAppsManagement.get_managed_entity_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.GetManagedEntityCounts(ctx, &fleetappsmanagement.GetManagedEntityCountsArgs{
    			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 testManagedEntityCounts = Oci.FleetAppsManagement.GetManagedEntityCounts.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.GetManagedEntityCountsArgs;
    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 testManagedEntityCounts = FleetAppsManagementFunctions.getManagedEntityCounts(GetManagedEntityCountsArgs.builder()
                .compartmentId(compartmentId)
                .build());
    
        }
    }
    
    variables:
      testManagedEntityCounts:
        fn::invoke:
          function: oci:FleetAppsManagement:getManagedEntityCounts
          arguments:
            compartmentId: ${compartmentId}
    

    Using getManagedEntityCounts

    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 getManagedEntityCounts(args: GetManagedEntityCountsArgs, opts?: InvokeOptions): Promise<GetManagedEntityCountsResult>
    function getManagedEntityCountsOutput(args: GetManagedEntityCountsOutputArgs, opts?: InvokeOptions): Output<GetManagedEntityCountsResult>
    def get_managed_entity_counts(compartment_id: Optional[str] = None,
                                  filters: Optional[Sequence[_fleetappsmanagement.GetManagedEntityCountsFilter]] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetManagedEntityCountsResult
    def get_managed_entity_counts_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[_fleetappsmanagement.GetManagedEntityCountsFilterArgs]]]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetManagedEntityCountsResult]
    func GetManagedEntityCounts(ctx *Context, args *GetManagedEntityCountsArgs, opts ...InvokeOption) (*GetManagedEntityCountsResult, error)
    func GetManagedEntityCountsOutput(ctx *Context, args *GetManagedEntityCountsOutputArgs, opts ...InvokeOption) GetManagedEntityCountsResultOutput

    > Note: This function is named GetManagedEntityCounts in the Go SDK.

    public static class GetManagedEntityCounts 
    {
        public static Task<GetManagedEntityCountsResult> InvokeAsync(GetManagedEntityCountsArgs args, InvokeOptions? opts = null)
        public static Output<GetManagedEntityCountsResult> Invoke(GetManagedEntityCountsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagedEntityCountsResult> getManagedEntityCounts(GetManagedEntityCountsArgs args, InvokeOptions options)
    public static Output<GetManagedEntityCountsResult> getManagedEntityCounts(GetManagedEntityCountsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:FleetAppsManagement/getManagedEntityCounts:getManagedEntityCounts
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getManagedEntityCounts Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedEntityAggregationCollections List<GetManagedEntityCountsManagedEntityAggregationCollection>
    The list of managed_entity_aggregation_collection.
    CompartmentId string
    Filters List<GetManagedEntityCountsFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedEntityAggregationCollections []GetManagedEntityCountsManagedEntityAggregationCollection
    The list of managed_entity_aggregation_collection.
    CompartmentId string
    Filters []GetManagedEntityCountsFilter
    id String
    The provider-assigned unique ID for this managed resource.
    managedEntityAggregationCollections List<GetManagedEntityCountsManagedEntityAggregationCollection>
    The list of managed_entity_aggregation_collection.
    compartmentId String
    filters List<GetManagedEntityCountsFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    managedEntityAggregationCollections GetManagedEntityCountsManagedEntityAggregationCollection[]
    The list of managed_entity_aggregation_collection.
    compartmentId string
    filters GetManagedEntityCountsFilter[]
    id String
    The provider-assigned unique ID for this managed resource.
    managedEntityAggregationCollections List<Property Map>
    The list of managed_entity_aggregation_collection.
    compartmentId String
    filters List<Property Map>

    Supporting Types

    GetManagedEntityCountsFilter

    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

    GetManagedEntityCountsManagedEntityAggregationCollection

    items List<Property Map>
    List of ManagedEntityAggregation objects.

    GetManagedEntityCountsManagedEntityAggregationCollectionItem

    Dimensions List<GetManagedEntityCountsManagedEntityAggregationCollectionItemDimension>
    Aggregated summary information for ComplianceRecord
    ManagedEntityCountCount int
    count of Managed Entities in a Tenancy.
    Dimensions []GetManagedEntityCountsManagedEntityAggregationCollectionItemDimension
    Aggregated summary information for ComplianceRecord
    ManagedEntityCountCount int
    count of Managed Entities in a Tenancy.
    dimensions List<GetManagedEntityCountsManagedEntityAggregationCollectionItemDimension>
    Aggregated summary information for ComplianceRecord
    managedEntityCountCount Integer
    count of Managed Entities in a Tenancy.
    dimensions GetManagedEntityCountsManagedEntityAggregationCollectionItemDimension[]
    Aggregated summary information for ComplianceRecord
    managedEntityCountCount number
    count of Managed Entities in a Tenancy.
    dimensions Sequence[fleetappsmanagement.GetManagedEntityCountsManagedEntityAggregationCollectionItemDimension]
    Aggregated summary information for ComplianceRecord
    managed_entity_count_count int
    count of Managed Entities in a Tenancy.
    dimensions List<Property Map>
    Aggregated summary information for ComplianceRecord
    managedEntityCountCount Number
    count of Managed Entities in a Tenancy.

    GetManagedEntityCountsManagedEntityAggregationCollectionItemDimension

    Entity string
    Level at which the compliance is calculated.
    Entity string
    Level at which the compliance is calculated.
    entity String
    Level at which the compliance is calculated.
    entity string
    Level at which the compliance is calculated.
    entity str
    Level at which the compliance is calculated.
    entity String
    Level at which the compliance is calculated.

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