import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source provides details about a specific Management Agent Count resource in Oracle Cloud Infrastructure Management Agent service. * * Gets count of the inventory of agents for a given compartment id, group by, and isPluginDeployed parameters. * Supported groupBy parameters: availabilityStatus, platformType, version * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagementAgentCount = oci.managementagent.getManagementAgentCount({ * compartmentId: compartmentId, * groupBies: managementAgentCountGroupBy, * hasPlugins: managementAgentCountHasPlugins === "true", * installType: managementAgentCountInstallType, * }); * ``` */ export declare function getManagementAgentCount(args: GetManagementAgentCountArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getManagementAgentCount. */ export interface GetManagementAgentCountArgs { /** * The OCID of the compartment to which a request will be scoped. */ compartmentId: string; /** * The field by which to group Management Agents. Currently, only one groupBy dimension is supported at a time. */ groupBies: string[]; /** * When set to true then agents that have at least one plugin deployed will be returned. When set to false only agents that have no plugins deployed will be returned. */ hasPlugins?: boolean; /** * A filter to return either agents or gateway types depending upon install type selected by user. By default both install type will be returned. */ installType?: string; } /** * A collection of values returned by getManagementAgentCount. */ export interface GetManagementAgentCountResult { readonly compartmentId: string; readonly groupBies: string[]; /** * Whether or not a managementAgent has at least one plugin */ readonly hasPlugins?: boolean; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The install type, either AGENT or GATEWAY */ readonly installType?: string; /** * List in which each item describes an aggregation of Managment Agents */ readonly items: outputs.ManagementAgent.GetManagementAgentCountItem[]; } /** * This data source provides details about a specific Management Agent Count resource in Oracle Cloud Infrastructure Management Agent service. * * Gets count of the inventory of agents for a given compartment id, group by, and isPluginDeployed parameters. * Supported groupBy parameters: availabilityStatus, platformType, version * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagementAgentCount = oci.managementagent.getManagementAgentCount({ * compartmentId: compartmentId, * groupBies: managementAgentCountGroupBy, * hasPlugins: managementAgentCountHasPlugins === "true", * installType: managementAgentCountInstallType, * }); * ``` */ export declare function getManagementAgentCountOutput(args: GetManagementAgentCountOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getManagementAgentCount. */ export interface GetManagementAgentCountOutputArgs { /** * The OCID of the compartment to which a request will be scoped. */ compartmentId: pulumi.Input; /** * The field by which to group Management Agents. Currently, only one groupBy dimension is supported at a time. */ groupBies: pulumi.Input[]>; /** * When set to true then agents that have at least one plugin deployed will be returned. When set to false only agents that have no plugins deployed will be returned. */ hasPlugins?: pulumi.Input; /** * A filter to return either agents or gateway types depending upon install type selected by user. By default both install type will be returned. */ installType?: pulumi.Input; } //# sourceMappingURL=getManagementAgentCount.d.ts.map