1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getManagedEntityCounts
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.FleetAppsManagement.getManagedEntityCounts

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 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,
});
Copy
import pulumi
import pulumi_oci as oci

test_managed_entity_counts = oci.FleetAppsManagement.get_managed_entity_counts(compartment_id=compartment_id)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testManagedEntityCounts:
    fn::invoke:
      function: oci:FleetAppsManagement:getManagedEntityCounts
      arguments:
        compartmentId: ${compartmentId}
Copy

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>
Copy
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]
Copy
func GetManagedEntityCounts(ctx *Context, args *GetManagedEntityCountsArgs, opts ...InvokeOption) (*GetManagedEntityCountsResult, error)
func GetManagedEntityCountsOutput(ctx *Context, args *GetManagedEntityCountsOutputArgs, opts ...InvokeOption) GetManagedEntityCountsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetManagedEntityCountsResult> getManagedEntityCounts(GetManagedEntityCountsArgs args, InvokeOptions options)
public static Output<GetManagedEntityCountsResult> getManagedEntityCounts(GetManagedEntityCountsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:FleetAppsManagement/getManagedEntityCounts:getManagedEntityCounts
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId string
The ID of the compartment in which to list resources.
Filters Changes to this property will trigger replacement. List<GetManagedEntityCountsFilter>
CompartmentId string
The ID of the compartment in which to list resources.
Filters Changes to this property will trigger replacement. []GetManagedEntityCountsFilter
compartmentId String
The ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. List<GetManagedEntityCountsFilter>
compartmentId string
The ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. GetManagedEntityCountsFilter[]
compartment_id str
The ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. Sequence[fleetappsmanagement.GetManagedEntityCountsFilter]
compartmentId String
The ID of the compartment in which to list resources.
filters Changes to this property will trigger replacement. 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 This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetManagedEntityCountsManagedEntityAggregationCollection

Items This property is required. List<GetManagedEntityCountsManagedEntityAggregationCollectionItem>
List of ManagedEntityAggregation objects.
Items This property is required. []GetManagedEntityCountsManagedEntityAggregationCollectionItem
List of ManagedEntityAggregation objects.
items This property is required. List<GetManagedEntityCountsManagedEntityAggregationCollectionItem>
List of ManagedEntityAggregation objects.
items This property is required. GetManagedEntityCountsManagedEntityAggregationCollectionItem[]
List of ManagedEntityAggregation objects.
items This property is required. Sequence[fleetappsmanagement.GetManagedEntityCountsManagedEntityAggregationCollectionItem]
List of ManagedEntityAggregation objects.
items This property is required. List<Property Map>
List of ManagedEntityAggregation objects.

GetManagedEntityCountsManagedEntityAggregationCollectionItem

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

GetManagedEntityCountsManagedEntityAggregationCollectionItemDimension

Entity This property is required. string
Level at which the compliance is calculated.
Entity This property is required. string
Level at which the compliance is calculated.
entity This property is required. String
Level at which the compliance is calculated.
entity This property is required. string
Level at which the compliance is calculated.
entity This property is required. str
Level at which the compliance is calculated.
entity This property is required. 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.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi