Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.FleetAppsManagement.getManagedEntityCounts
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- CompartmentId string
- The ID of the compartment in which to list resources.
- Filters
List<GetManaged Entity Counts Filter> 
- CompartmentId string
- The ID of the compartment in which to list resources.
- Filters
[]GetManaged Entity Counts Filter 
- compartmentId String
- The ID of the compartment in which to list resources.
- filters
List<GetManaged Entity Counts Filter> 
- compartmentId string
- The ID of the compartment in which to list resources.
- filters
GetManaged Entity Counts Filter[] 
- compartment_id str
- The ID of the compartment in which to list resources.
- filters
Sequence[fleetappsmanagement.Get Managed Entity Counts Filter] 
- 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.
- ManagedEntity List<GetAggregation Collections Managed Entity Counts Managed Entity Aggregation Collection> 
- The list of managed_entity_aggregation_collection.
- CompartmentId string
- Filters
List<GetManaged Entity Counts Filter> 
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedEntity []GetAggregation Collections Managed Entity Counts Managed Entity Aggregation Collection 
- The list of managed_entity_aggregation_collection.
- CompartmentId string
- Filters
[]GetManaged Entity Counts Filter 
- id String
- The provider-assigned unique ID for this managed resource.
- managedEntity List<GetAggregation Collections Managed Entity Counts Managed Entity Aggregation Collection> 
- The list of managed_entity_aggregation_collection.
- compartmentId String
- filters
List<GetManaged Entity Counts Filter> 
- id string
- The provider-assigned unique ID for this managed resource.
- managedEntity GetAggregation Collections Managed Entity Counts Managed Entity Aggregation Collection[] 
- The list of managed_entity_aggregation_collection.
- compartmentId string
- filters
GetManaged Entity Counts Filter[] 
- id str
- The provider-assigned unique ID for this managed resource.
- managed_entity_ Sequence[fleetappsmanagement.aggregation_ collections Get Managed Entity Counts Managed Entity Aggregation Collection] 
- The list of managed_entity_aggregation_collection.
- compartment_id str
- filters
Sequence[fleetappsmanagement.Get Managed Entity Counts Filter] 
- id String
- The provider-assigned unique ID for this managed resource.
- managedEntity List<Property Map>Aggregation Collections 
- The list of managed_entity_aggregation_collection.
- compartmentId String
- filters List<Property Map>
Supporting Types
GetManagedEntityCountsFilter    
GetManagedEntityCountsManagedEntityAggregationCollection       
- Items
List<GetManaged Entity Counts Managed Entity Aggregation Collection Item> 
- List of ManagedEntityAggregation objects.
- Items
[]GetManaged Entity Counts Managed Entity Aggregation Collection Item 
- List of ManagedEntityAggregation objects.
- items
List<GetManaged Entity Counts Managed Entity Aggregation Collection Item> 
- List of ManagedEntityAggregation objects.
- items
GetManaged Entity Counts Managed Entity Aggregation Collection Item[] 
- List of ManagedEntityAggregation objects.
- items
Sequence[fleetappsmanagement.Get Managed Entity Counts Managed Entity Aggregation Collection Item] 
- List of ManagedEntityAggregation objects.
- items List<Property Map>
- List of ManagedEntityAggregation objects.
GetManagedEntityCountsManagedEntityAggregationCollectionItem        
- Dimensions
List<GetManaged Entity Counts Managed Entity Aggregation Collection Item Dimension> 
- Aggregated summary information for ComplianceRecord
- ManagedEntity intCount Count 
- count of Managed Entities in a Tenancy.
- Dimensions
[]GetManaged Entity Counts Managed Entity Aggregation Collection Item Dimension 
- Aggregated summary information for ComplianceRecord
- ManagedEntity intCount Count 
- count of Managed Entities in a Tenancy.
- dimensions
List<GetManaged Entity Counts Managed Entity Aggregation Collection Item Dimension> 
- Aggregated summary information for ComplianceRecord
- managedEntity IntegerCount Count 
- count of Managed Entities in a Tenancy.
- dimensions
GetManaged Entity Counts Managed Entity Aggregation Collection Item Dimension[] 
- Aggregated summary information for ComplianceRecord
- managedEntity numberCount Count 
- count of Managed Entities in a Tenancy.
- dimensions
Sequence[fleetappsmanagement.Get Managed Entity Counts Managed Entity Aggregation Collection Item Dimension] 
- Aggregated summary information for ComplianceRecord
- managed_entity_ intcount_ count 
- count of Managed Entities in a Tenancy.
- dimensions List<Property Map>
- Aggregated summary information for ComplianceRecord
- managedEntity NumberCount Count 
- 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 ociTerraform Provider.