Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getManagementAgentPluginCount

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testManagementAgentPluginCount = Output.Create(Oci.ManagementAgent.GetManagementAgentPluginCount.InvokeAsync(new Oci.ManagementAgent.GetManagementAgentPluginCountArgs
        {
            CompartmentId = @var.Compartment_id,
            GroupBy = @var.Management_agent_plugin_count_group_by,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
			GroupBy:       _var.Management_agent_plugin_count_group_by,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_management_agent_plugin_count = oci.ManagementAgent.get_management_agent_plugin_count(compartment_id=var["compartment_id"],
    group_by=var["management_agent_plugin_count_group_by"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testManagementAgentPluginCount = oci.ManagementAgent.getManagementAgentPluginCount({
    compartmentId: _var.compartment_id,
    groupBy: _var.management_agent_plugin_count_group_by,
});

Coming soon!

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>
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]
func GetManagementAgentPluginCount(ctx *Context, args *GetManagementAgentPluginCountArgs, opts ...InvokeOption) (*GetManagementAgentPluginCountResult, error)
func GetManagementAgentPluginCountOutput(ctx *Context, args *GetManagementAgentPluginCountOutputArgs, opts ...InvokeOption) GetManagementAgentPluginCountResultOutput

> 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)
}
public static CompletableFuture<GetManagementAgentPluginCountResult> getManagementAgentPluginCount(GetManagementAgentPluginCountArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:ManagementAgent/getManagementAgentPluginCount:getManagementAgentPluginCount
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment to which a request will be scoped.

GroupBy string

The field by which to group Management Agent Plugins

CompartmentId string

The OCID of the compartment to which a request will be scoped.

GroupBy string

The field by which to group Management Agent Plugins

compartmentId String

The OCID of the compartment to which a request will be scoped.

groupBy String

The field by which to group Management Agent Plugins

compartmentId string

The OCID of the compartment to which a request will be scoped.

groupBy string

The field by which to group Management Agent Plugins

compartment_id str

The OCID of the compartment to which a request will be scoped.

group_by str

The field by which to group Management Agent Plugins

compartmentId String

The OCID of the compartment to which a request will be scoped.

groupBy 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 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 int

The number of Management Agent Plugins in this group

Dimensions List<GetManagementAgentPluginCountItemDimension>

The Aggregation of Management Agent Plugin Dimensions

Count int

The number of Management Agent Plugins in this group

Dimensions []GetManagementAgentPluginCountItemDimension

The Aggregation of Management Agent Plugin Dimensions

count Integer

The number of Management Agent Plugins in this group

dimensions List<GetPluginCountItemDimension>

The Aggregation of Management Agent Plugin Dimensions

count number

The number of Management Agent Plugins in this group

dimensions GetManagementAgentPluginCountItemDimension[]

The Aggregation of Management Agent Plugin Dimensions

count int

The number of Management Agent Plugins in this group

dimensions GetManagementAgentPluginCountItemDimension]

The Aggregation of Management Agent Plugin Dimensions

count Number

The number of Management Agent Plugins in this group

dimensions List<Property Map>

The Aggregation of Management Agent Plugin Dimensions

GetManagementAgentPluginCountItemDimension

PluginDisplayName string

Management Agent Plugin Display Name

PluginName string

Management Agent Plugin Name

PluginDisplayName string

Management Agent Plugin Display Name

PluginName string

Management Agent Plugin Name

pluginDisplayName String

Management Agent Plugin Display Name

pluginName String

Management Agent Plugin Name

pluginDisplayName string

Management Agent Plugin Display Name

pluginName string

Management Agent Plugin Name

plugin_display_name str

Management Agent Plugin Display Name

plugin_name str

Management Agent Plugin Name

pluginDisplayName String

Management Agent Plugin Display Name

pluginName String

Management Agent Plugin Name

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.