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

oci.ManagementAgent.getManagementAgentPluginCount

Explore with Pulumi AI

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

This data source provides details about a specific Management Agent Plugin Count resource in Oracle Cloud Infrastructure Management Agent service.

Gets count of the inventory of management agent plugins for a given compartment id and group by parameter. Supported groupBy parameter: pluginName

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testManagementAgentPluginCount = oci.ManagementAgent.getManagementAgentPluginCount({
    compartmentId: compartmentId,
    groupBy: managementAgentPluginCountGroupBy,
});
Copy
import pulumi
import pulumi_oci as oci

test_management_agent_plugin_count = oci.ManagementAgent.get_management_agent_plugin_count(compartment_id=compartment_id,
    group_by=management_agent_plugin_count_group_by)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/managementagent"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := managementagent.GetManagementAgentPluginCount(ctx, &managementagent.GetManagementAgentPluginCountArgs{
			CompartmentId: compartmentId,
			GroupBy:       managementAgentPluginCountGroupBy,
		}, 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 testManagementAgentPluginCount = Oci.ManagementAgent.GetManagementAgentPluginCount.Invoke(new()
    {
        CompartmentId = compartmentId,
        GroupBy = managementAgentPluginCountGroupBy,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ManagementAgent.ManagementAgentFunctions;
import com.pulumi.oci.ManagementAgent.inputs.GetManagementAgentPluginCountArgs;
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 testManagementAgentPluginCount = ManagementAgentFunctions.getManagementAgentPluginCount(GetManagementAgentPluginCountArgs.builder()
            .compartmentId(compartmentId)
            .groupBy(managementAgentPluginCountGroupBy)
            .build());

    }
}
Copy
variables:
  testManagementAgentPluginCount:
    fn::invoke:
      function: oci:ManagementAgent:getManagementAgentPluginCount
      arguments:
        compartmentId: ${compartmentId}
        groupBy: ${managementAgentPluginCountGroupBy}
Copy

Using getManagementAgentPluginCount

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 getManagementAgentPluginCount(args: GetManagementAgentPluginCountArgs, opts?: InvokeOptions): Promise<GetManagementAgentPluginCountResult>
function getManagementAgentPluginCountOutput(args: GetManagementAgentPluginCountOutputArgs, opts?: InvokeOptions): Output<GetManagementAgentPluginCountResult>
Copy
def get_management_agent_plugin_count(compartment_id: Optional[str] = None,
                                      group_by: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetManagementAgentPluginCountResult
def get_management_agent_plugin_count_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                      group_by: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetManagementAgentPluginCountResult]
Copy
func GetManagementAgentPluginCount(ctx *Context, args *GetManagementAgentPluginCountArgs, opts ...InvokeOption) (*GetManagementAgentPluginCountResult, error)
func GetManagementAgentPluginCountOutput(ctx *Context, args *GetManagementAgentPluginCountOutputArgs, opts ...InvokeOption) GetManagementAgentPluginCountResultOutput
Copy

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

public static class GetManagementAgentPluginCount 
{
    public static Task<GetManagementAgentPluginCountResult> InvokeAsync(GetManagementAgentPluginCountArgs args, InvokeOptions? opts = null)
    public static Output<GetManagementAgentPluginCountResult> Invoke(GetManagementAgentPluginCountInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetManagementAgentPluginCountResult> getManagementAgentPluginCount(GetManagementAgentPluginCountArgs args, InvokeOptions options)
public static Output<GetManagementAgentPluginCountResult> getManagementAgentPluginCount(GetManagementAgentPluginCountArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ManagementAgent/getManagementAgentPluginCount:getManagementAgentPluginCount
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment to which a request will be scoped.
GroupBy This property is required. string
The field by which to group Management Agent Plugins
CompartmentId This property is required. string
The OCID of the compartment to which a request will be scoped.
GroupBy This property is required. string
The field by which to group Management Agent Plugins
compartmentId This property is required. String
The OCID of the compartment to which a request will be scoped.
groupBy This property is required. String
The field by which to group Management Agent Plugins
compartmentId This property is required. string
The OCID of the compartment to which a request will be scoped.
groupBy This property is required. string
The field by which to group Management Agent Plugins
compartment_id This property is required. str
The OCID of the compartment to which a request will be scoped.
group_by This property is required. str
The field by which to group Management Agent Plugins
compartmentId This property is required. String
The OCID of the compartment to which a request will be scoped.
groupBy This property is required. String
The field by which to group Management Agent Plugins

getManagementAgentPluginCount Result

The following output properties are available:

CompartmentId string
GroupBy string
Id string
The provider-assigned unique ID for this managed resource.
Items List<GetManagementAgentPluginCountItem>
List in which each item describes an aggregation of Managment Agent Plugins
CompartmentId string
GroupBy string
Id string
The provider-assigned unique ID for this managed resource.
Items []GetManagementAgentPluginCountItem
List in which each item describes an aggregation of Managment Agent Plugins
compartmentId String
groupBy String
id String
The provider-assigned unique ID for this managed resource.
items List<GetPluginCountItem>
List in which each item describes an aggregation of Managment Agent Plugins
compartmentId string
groupBy string
id string
The provider-assigned unique ID for this managed resource.
items GetManagementAgentPluginCountItem[]
List in which each item describes an aggregation of Managment Agent Plugins
compartment_id str
group_by str
id str
The provider-assigned unique ID for this managed resource.
items Sequence[managementagent.GetManagementAgentPluginCountItem]
List in which each item describes an aggregation of Managment Agent Plugins
compartmentId String
groupBy String
id String
The provider-assigned unique ID for this managed resource.
items List<Property Map>
List in which each item describes an aggregation of Managment Agent Plugins

Supporting Types

GetManagementAgentPluginCountItem

Count This property is required. int
The number of Management Agent Plugins in this group
Dimensions This property is required. List<GetManagementAgentPluginCountItemDimension>
The Aggregation of Management Agent Plugin Dimensions
Count This property is required. int
The number of Management Agent Plugins in this group
Dimensions This property is required. []GetManagementAgentPluginCountItemDimension
The Aggregation of Management Agent Plugin Dimensions
count This property is required. Integer
The number of Management Agent Plugins in this group
dimensions This property is required. List<GetPluginCountItemDimension>
The Aggregation of Management Agent Plugin Dimensions
count This property is required. number
The number of Management Agent Plugins in this group
dimensions This property is required. GetManagementAgentPluginCountItemDimension[]
The Aggregation of Management Agent Plugin Dimensions
count This property is required. int
The number of Management Agent Plugins in this group
dimensions This property is required. Sequence[managementagent.GetManagementAgentPluginCountItemDimension]
The Aggregation of Management Agent Plugin Dimensions
count This property is required. Number
The number of Management Agent Plugins in this group
dimensions This property is required. List<Property Map>
The Aggregation of Management Agent Plugin Dimensions

GetManagementAgentPluginCountItemDimension

PluginDisplayName This property is required. string
Management Agent Plugin Display Name
PluginName This property is required. string
Management Agent Plugin Name
PluginDisplayName This property is required. string
Management Agent Plugin Display Name
PluginName This property is required. string
Management Agent Plugin Name
pluginDisplayName This property is required. String
Management Agent Plugin Display Name
pluginName This property is required. String
Management Agent Plugin Name
pluginDisplayName This property is required. string
Management Agent Plugin Display Name
pluginName This property is required. string
Management Agent Plugin Name
plugin_display_name This property is required. str
Management Agent Plugin Display Name
plugin_name This property is required. str
Management Agent Plugin Name
pluginDisplayName This property is required. String
Management Agent Plugin Display Name
pluginName This property is required. String
Management Agent Plugin Name

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