1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ManagementAgent
  5. getManagementAgentPlugins
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.ManagementAgent.getManagementAgentPlugins

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides the list of Management Agent Plugins in Oracle Cloud Infrastructure Management Agent service.

    Returns a list of managementAgentPlugins.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagementAgentPlugins = oci.ManagementAgent.getManagementAgentPlugins({
        compartmentId: compartmentId,
        agentId: managementAgentId,
        displayName: managementAgentPluginDisplayName,
        platformTypes: managementAgentPluginPlatformType,
        state: managementAgentPluginState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_management_agent_plugins = oci.ManagementAgent.get_management_agent_plugins(compartment_id=compartment_id,
        agent_id=management_agent_id,
        display_name=management_agent_plugin_display_name,
        platform_types=management_agent_plugin_platform_type,
        state=management_agent_plugin_state)
    
    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.GetManagementAgentPlugins(ctx, &managementagent.GetManagementAgentPluginsArgs{
    			CompartmentId: compartmentId,
    			AgentId:       pulumi.StringRef(managementAgentId),
    			DisplayName:   pulumi.StringRef(managementAgentPluginDisplayName),
    			PlatformTypes: managementAgentPluginPlatformType,
    			State:         pulumi.StringRef(managementAgentPluginState),
    		}, 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 testManagementAgentPlugins = Oci.ManagementAgent.GetManagementAgentPlugins.Invoke(new()
        {
            CompartmentId = compartmentId,
            AgentId = managementAgentId,
            DisplayName = managementAgentPluginDisplayName,
            PlatformTypes = managementAgentPluginPlatformType,
            State = managementAgentPluginState,
        });
    
    });
    
    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.GetManagementAgentPluginsArgs;
    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 testManagementAgentPlugins = ManagementAgentFunctions.getManagementAgentPlugins(GetManagementAgentPluginsArgs.builder()
                .compartmentId(compartmentId)
                .agentId(managementAgentId)
                .displayName(managementAgentPluginDisplayName)
                .platformTypes(managementAgentPluginPlatformType)
                .state(managementAgentPluginState)
                .build());
    
        }
    }
    
    variables:
      testManagementAgentPlugins:
        fn::invoke:
          Function: oci:ManagementAgent:getManagementAgentPlugins
          Arguments:
            compartmentId: ${compartmentId}
            agentId: ${managementAgentId}
            displayName: ${managementAgentPluginDisplayName}
            platformTypes: ${managementAgentPluginPlatformType}
            state: ${managementAgentPluginState}
    

    Using getManagementAgentPlugins

    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 getManagementAgentPlugins(args: GetManagementAgentPluginsArgs, opts?: InvokeOptions): Promise<GetManagementAgentPluginsResult>
    function getManagementAgentPluginsOutput(args: GetManagementAgentPluginsOutputArgs, opts?: InvokeOptions): Output<GetManagementAgentPluginsResult>
    def get_management_agent_plugins(agent_id: Optional[str] = None,
                                     compartment_id: Optional[str] = None,
                                     display_name: Optional[str] = None,
                                     filters: Optional[Sequence[_managementagent.GetManagementAgentPluginsFilter]] = None,
                                     platform_types: Optional[Sequence[str]] = None,
                                     state: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetManagementAgentPluginsResult
    def get_management_agent_plugins_output(agent_id: Optional[pulumi.Input[str]] = None,
                                     compartment_id: Optional[pulumi.Input[str]] = None,
                                     display_name: Optional[pulumi.Input[str]] = None,
                                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[_managementagent.GetManagementAgentPluginsFilterArgs]]]] = None,
                                     platform_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                     state: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetManagementAgentPluginsResult]
    func GetManagementAgentPlugins(ctx *Context, args *GetManagementAgentPluginsArgs, opts ...InvokeOption) (*GetManagementAgentPluginsResult, error)
    func GetManagementAgentPluginsOutput(ctx *Context, args *GetManagementAgentPluginsOutputArgs, opts ...InvokeOption) GetManagementAgentPluginsResultOutput

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

    public static class GetManagementAgentPlugins 
    {
        public static Task<GetManagementAgentPluginsResult> InvokeAsync(GetManagementAgentPluginsArgs args, InvokeOptions? opts = null)
        public static Output<GetManagementAgentPluginsResult> Invoke(GetManagementAgentPluginsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetManagementAgentPluginsResult> getManagementAgentPlugins(GetManagementAgentPluginsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ManagementAgent/getManagementAgentPlugins:getManagementAgentPlugins
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment to which a request will be scoped.
    AgentId string
    The ManagementAgentID of the agent from which the Management Agents to be filtered.
    DisplayName string
    Filter to return only Management Agent Plugins having the particular display name.
    Filters List<GetManagementAgentPluginsFilter>
    PlatformTypes List<string>
    Array of PlatformTypes to return only results having the particular platform types. Example: ["LINUX"]
    State string
    Filter to return only Management Agents in the particular lifecycle state.
    CompartmentId string
    The OCID of the compartment to which a request will be scoped.
    AgentId string
    The ManagementAgentID of the agent from which the Management Agents to be filtered.
    DisplayName string
    Filter to return only Management Agent Plugins having the particular display name.
    Filters []GetManagementAgentPluginsFilter
    PlatformTypes []string
    Array of PlatformTypes to return only results having the particular platform types. Example: ["LINUX"]
    State string
    Filter to return only Management Agents in the particular lifecycle state.
    compartmentId String
    The OCID of the compartment to which a request will be scoped.
    agentId String
    The ManagementAgentID of the agent from which the Management Agents to be filtered.
    displayName String
    Filter to return only Management Agent Plugins having the particular display name.
    filters List<GetPluginsFilter>
    platformTypes List<String>
    Array of PlatformTypes to return only results having the particular platform types. Example: ["LINUX"]
    state String
    Filter to return only Management Agents in the particular lifecycle state.
    compartmentId string
    The OCID of the compartment to which a request will be scoped.
    agentId string
    The ManagementAgentID of the agent from which the Management Agents to be filtered.
    displayName string
    Filter to return only Management Agent Plugins having the particular display name.
    filters GetManagementAgentPluginsFilter[]
    platformTypes string[]
    Array of PlatformTypes to return only results having the particular platform types. Example: ["LINUX"]
    state string
    Filter to return only Management Agents in the particular lifecycle state.
    compartment_id str
    The OCID of the compartment to which a request will be scoped.
    agent_id str
    The ManagementAgentID of the agent from which the Management Agents to be filtered.
    display_name str
    Filter to return only Management Agent Plugins having the particular display name.
    filters Sequence[managementagent.GetManagementAgentPluginsFilter]
    platform_types Sequence[str]
    Array of PlatformTypes to return only results having the particular platform types. Example: ["LINUX"]
    state str
    Filter to return only Management Agents in the particular lifecycle state.
    compartmentId String
    The OCID of the compartment to which a request will be scoped.
    agentId String
    The ManagementAgentID of the agent from which the Management Agents to be filtered.
    displayName String
    Filter to return only Management Agent Plugins having the particular display name.
    filters List<Property Map>
    platformTypes List<String>
    Array of PlatformTypes to return only results having the particular platform types. Example: ["LINUX"]
    state String
    Filter to return only Management Agents in the particular lifecycle state.

    getManagementAgentPlugins Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagementAgentPlugins List<GetManagementAgentPluginsManagementAgentPlugin>
    The list of management_agent_plugins.
    AgentId string
    DisplayName string
    Management Agent Plugin Display Name
    Filters List<GetManagementAgentPluginsFilter>
    PlatformTypes List<string>
    State string
    The current state of Management Agent Plugin
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagementAgentPlugins []GetManagementAgentPluginsManagementAgentPlugin
    The list of management_agent_plugins.
    AgentId string
    DisplayName string
    Management Agent Plugin Display Name
    Filters []GetManagementAgentPluginsFilter
    PlatformTypes []string
    State string
    The current state of Management Agent Plugin
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    managementAgentPlugins List<GetPluginsPlugin>
    The list of management_agent_plugins.
    agentId String
    displayName String
    Management Agent Plugin Display Name
    filters List<GetPluginsFilter>
    platformTypes List<String>
    state String
    The current state of Management Agent Plugin
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    managementAgentPlugins GetManagementAgentPluginsManagementAgentPlugin[]
    The list of management_agent_plugins.
    agentId string
    displayName string
    Management Agent Plugin Display Name
    filters GetManagementAgentPluginsFilter[]
    platformTypes string[]
    state string
    The current state of Management Agent Plugin
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    management_agent_plugins Sequence[managementagent.GetManagementAgentPluginsManagementAgentPlugin]
    The list of management_agent_plugins.
    agent_id str
    display_name str
    Management Agent Plugin Display Name
    filters Sequence[managementagent.GetManagementAgentPluginsFilter]
    platform_types Sequence[str]
    state str
    The current state of Management Agent Plugin
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    managementAgentPlugins List<Property Map>
    The list of management_agent_plugins.
    agentId String
    displayName String
    Management Agent Plugin Display Name
    filters List<Property Map>
    platformTypes List<String>
    state String
    The current state of Management Agent Plugin

    Supporting Types

    GetManagementAgentPluginsFilter

    Name string
    Management Agent Plugin Name
    Values List<string>
    Regex bool
    Name string
    Management Agent Plugin Name
    Values []string
    Regex bool
    name String
    Management Agent Plugin Name
    values List<String>
    regex Boolean
    name string
    Management Agent Plugin Name
    values string[]
    regex boolean
    name str
    Management Agent Plugin Name
    values Sequence[str]
    regex bool
    name String
    Management Agent Plugin Name
    values List<String>
    regex Boolean

    GetManagementAgentPluginsManagementAgentPlugin

    Description string
    Management Agent Plugin description
    DisplayName string
    Filter to return only Management Agent Plugins having the particular display name.
    Id string
    Management Agent Plugin Id
    IsConsoleDeployable bool
    A flag to indicate whether a given plugin can be deployed from Agent Console UI or not.
    Name string
    Management Agent Plugin Name
    State string
    Filter to return only Management Agents in the particular lifecycle state.
    SupportedPlatformTypes List<string>
    Supported Platform Types
    Version int
    Management Agent Plugin Version
    Description string
    Management Agent Plugin description
    DisplayName string
    Filter to return only Management Agent Plugins having the particular display name.
    Id string
    Management Agent Plugin Id
    IsConsoleDeployable bool
    A flag to indicate whether a given plugin can be deployed from Agent Console UI or not.
    Name string
    Management Agent Plugin Name
    State string
    Filter to return only Management Agents in the particular lifecycle state.
    SupportedPlatformTypes []string
    Supported Platform Types
    Version int
    Management Agent Plugin Version
    description String
    Management Agent Plugin description
    displayName String
    Filter to return only Management Agent Plugins having the particular display name.
    id String
    Management Agent Plugin Id
    isConsoleDeployable Boolean
    A flag to indicate whether a given plugin can be deployed from Agent Console UI or not.
    name String
    Management Agent Plugin Name
    state String
    Filter to return only Management Agents in the particular lifecycle state.
    supportedPlatformTypes List<String>
    Supported Platform Types
    version Integer
    Management Agent Plugin Version
    description string
    Management Agent Plugin description
    displayName string
    Filter to return only Management Agent Plugins having the particular display name.
    id string
    Management Agent Plugin Id
    isConsoleDeployable boolean
    A flag to indicate whether a given plugin can be deployed from Agent Console UI or not.
    name string
    Management Agent Plugin Name
    state string
    Filter to return only Management Agents in the particular lifecycle state.
    supportedPlatformTypes string[]
    Supported Platform Types
    version number
    Management Agent Plugin Version
    description str
    Management Agent Plugin description
    display_name str
    Filter to return only Management Agent Plugins having the particular display name.
    id str
    Management Agent Plugin Id
    is_console_deployable bool
    A flag to indicate whether a given plugin can be deployed from Agent Console UI or not.
    name str
    Management Agent Plugin Name
    state str
    Filter to return only Management Agents in the particular lifecycle state.
    supported_platform_types Sequence[str]
    Supported Platform Types
    version int
    Management Agent Plugin Version
    description String
    Management Agent Plugin description
    displayName String
    Filter to return only Management Agent Plugins having the particular display name.
    id String
    Management Agent Plugin Id
    isConsoleDeployable Boolean
    A flag to indicate whether a given plugin can be deployed from Agent Console UI or not.
    name String
    Management Agent Plugin Name
    state String
    Filter to return only Management Agents in the particular lifecycle state.
    supportedPlatformTypes List<String>
    Supported Platform Types
    version Number
    Management Agent Plugin Version

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi