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

oci.ComputeInstanceAgent.getInstanceAgentPlugins

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 Instance Agent Plugins in Oracle Cloud Infrastructure Compute Instance Agent service.

    The API to get one or more plugin information.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testInstanceAgentPlugins = oci.ComputeInstanceAgent.getInstanceAgentPlugins({
        instanceagentId: testInstanceagent.id,
        name: instanceAgentPluginName,
        status: instanceAgentPluginStatus,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_instance_agent_plugins = oci.ComputeInstanceAgent.get_instance_agent_plugins(instanceagent_id=test_instanceagent["id"],
        name=instance_agent_plugin_name,
        status=instance_agent_plugin_status)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/ComputeInstanceAgent"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ComputeInstanceAgent.GetInstanceAgentPlugins(ctx, &computeinstanceagent.GetInstanceAgentPluginsArgs{
    			InstanceagentId: testInstanceagent.Id,
    			Name:            pulumi.StringRef(instanceAgentPluginName),
    			Status:          pulumi.StringRef(instanceAgentPluginStatus),
    		}, 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 testInstanceAgentPlugins = Oci.ComputeInstanceAgent.GetInstanceAgentPlugins.Invoke(new()
        {
            InstanceagentId = testInstanceagent.Id,
            Name = instanceAgentPluginName,
            Status = instanceAgentPluginStatus,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ComputeInstanceAgent.ComputeInstanceAgentFunctions;
    import com.pulumi.oci.ComputeInstanceAgent.inputs.GetInstanceAgentPluginsArgs;
    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 testInstanceAgentPlugins = ComputeInstanceAgentFunctions.getInstanceAgentPlugins(GetInstanceAgentPluginsArgs.builder()
                .instanceagentId(testInstanceagent.id())
                .name(instanceAgentPluginName)
                .status(instanceAgentPluginStatus)
                .build());
    
        }
    }
    
    variables:
      testInstanceAgentPlugins:
        fn::invoke:
          Function: oci:ComputeInstanceAgent:getInstanceAgentPlugins
          Arguments:
            instanceagentId: ${testInstanceagent.id}
            name: ${instanceAgentPluginName}
            status: ${instanceAgentPluginStatus}
    

    Using getInstanceAgentPlugins

    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 getInstanceAgentPlugins(args: GetInstanceAgentPluginsArgs, opts?: InvokeOptions): Promise<GetInstanceAgentPluginsResult>
    function getInstanceAgentPluginsOutput(args: GetInstanceAgentPluginsOutputArgs, opts?: InvokeOptions): Output<GetInstanceAgentPluginsResult>
    def get_instance_agent_plugins(compartment_id: Optional[str] = None,
                                   filters: Optional[Sequence[_computeinstanceagent.GetInstanceAgentPluginsFilter]] = None,
                                   instanceagent_id: Optional[str] = None,
                                   name: Optional[str] = None,
                                   status: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetInstanceAgentPluginsResult
    def get_instance_agent_plugins_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                   filters: Optional[pulumi.Input[Sequence[pulumi.Input[_computeinstanceagent.GetInstanceAgentPluginsFilterArgs]]]] = None,
                                   instanceagent_id: Optional[pulumi.Input[str]] = None,
                                   name: Optional[pulumi.Input[str]] = None,
                                   status: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetInstanceAgentPluginsResult]
    func GetInstanceAgentPlugins(ctx *Context, args *GetInstanceAgentPluginsArgs, opts ...InvokeOption) (*GetInstanceAgentPluginsResult, error)
    func GetInstanceAgentPluginsOutput(ctx *Context, args *GetInstanceAgentPluginsOutputArgs, opts ...InvokeOption) GetInstanceAgentPluginsResultOutput

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

    public static class GetInstanceAgentPlugins 
    {
        public static Task<GetInstanceAgentPluginsResult> InvokeAsync(GetInstanceAgentPluginsArgs args, InvokeOptions? opts = null)
        public static Output<GetInstanceAgentPluginsResult> Invoke(GetInstanceAgentPluginsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInstanceAgentPluginsResult> getInstanceAgentPlugins(GetInstanceAgentPluginsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ComputeInstanceAgent/getInstanceAgentPlugins:getInstanceAgentPlugins
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    InstanceagentId string
    The OCID of the instance.
    Filters List<GetInstanceAgentPluginsFilter>
    Name string
    The plugin name
    Status string
    The plugin status
    CompartmentId string
    InstanceagentId string
    The OCID of the instance.
    Filters []GetInstanceAgentPluginsFilter
    Name string
    The plugin name
    Status string
    The plugin status
    compartmentId String
    instanceagentId String
    The OCID of the instance.
    filters List<GetInstanceAgentPluginsFilter>
    name String
    The plugin name
    status String
    The plugin status
    compartmentId string
    instanceagentId string
    The OCID of the instance.
    filters GetInstanceAgentPluginsFilter[]
    name string
    The plugin name
    status string
    The plugin status
    compartment_id str
    instanceagent_id str
    The OCID of the instance.
    filters Sequence[computeinstanceagent.GetInstanceAgentPluginsFilter]
    name str
    The plugin name
    status str
    The plugin status
    compartmentId String
    instanceagentId String
    The OCID of the instance.
    filters List<Property Map>
    name String
    The plugin name
    status String
    The plugin status

    getInstanceAgentPlugins Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceAgentPlugins List<GetInstanceAgentPluginsInstanceAgentPlugin>
    The list of instance_agent_plugins.
    InstanceagentId string
    Filters List<GetInstanceAgentPluginsFilter>
    Name string
    The plugin name
    Status string
    The plugin status Specified the plugin state on the instance * RUNNING - The plugin is in running state * STOPPED - The plugin is in stopped state * NOT_SUPPORTED - The plugin is not supported on this platform * INVALID - The plugin state is not recognizable by the service
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceAgentPlugins []GetInstanceAgentPluginsInstanceAgentPlugin
    The list of instance_agent_plugins.
    InstanceagentId string
    Filters []GetInstanceAgentPluginsFilter
    Name string
    The plugin name
    Status string
    The plugin status Specified the plugin state on the instance * RUNNING - The plugin is in running state * STOPPED - The plugin is in stopped state * NOT_SUPPORTED - The plugin is not supported on this platform * INVALID - The plugin state is not recognizable by the service
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    instanceAgentPlugins List<GetInstanceAgentPluginsInstanceAgentPlugin>
    The list of instance_agent_plugins.
    instanceagentId String
    filters List<GetInstanceAgentPluginsFilter>
    name String
    The plugin name
    status String
    The plugin status Specified the plugin state on the instance * RUNNING - The plugin is in running state * STOPPED - The plugin is in stopped state * NOT_SUPPORTED - The plugin is not supported on this platform * INVALID - The plugin state is not recognizable by the service
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    instanceAgentPlugins GetInstanceAgentPluginsInstanceAgentPlugin[]
    The list of instance_agent_plugins.
    instanceagentId string
    filters GetInstanceAgentPluginsFilter[]
    name string
    The plugin name
    status string
    The plugin status Specified the plugin state on the instance * RUNNING - The plugin is in running state * STOPPED - The plugin is in stopped state * NOT_SUPPORTED - The plugin is not supported on this platform * INVALID - The plugin state is not recognizable by the service
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    instance_agent_plugins Sequence[computeinstanceagent.GetInstanceAgentPluginsInstanceAgentPlugin]
    The list of instance_agent_plugins.
    instanceagent_id str
    filters Sequence[computeinstanceagent.GetInstanceAgentPluginsFilter]
    name str
    The plugin name
    status str
    The plugin status Specified the plugin state on the instance * RUNNING - The plugin is in running state * STOPPED - The plugin is in stopped state * NOT_SUPPORTED - The plugin is not supported on this platform * INVALID - The plugin state is not recognizable by the service
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    instanceAgentPlugins List<Property Map>
    The list of instance_agent_plugins.
    instanceagentId String
    filters List<Property Map>
    name String
    The plugin name
    status String
    The plugin status Specified the plugin state on the instance * RUNNING - The plugin is in running state * STOPPED - The plugin is in stopped state * NOT_SUPPORTED - The plugin is not supported on this platform * INVALID - The plugin state is not recognizable by the service

    Supporting Types

    GetInstanceAgentPluginsFilter

    Name string
    The plugin name
    Values List<string>
    Regex bool
    Name string
    The plugin name
    Values []string
    Regex bool
    name String
    The plugin name
    values List<String>
    regex Boolean
    name string
    The plugin name
    values string[]
    regex boolean
    name str
    The plugin name
    values Sequence[str]
    regex bool
    name String
    The plugin name
    values List<String>
    regex Boolean

    GetInstanceAgentPluginsInstanceAgentPlugin

    Message string
    The optional message from the agent plugin
    Name string
    The plugin name
    Status string
    The plugin status
    TimeLastUpdatedUtc string
    The last update time of the plugin in UTC
    Message string
    The optional message from the agent plugin
    Name string
    The plugin name
    Status string
    The plugin status
    TimeLastUpdatedUtc string
    The last update time of the plugin in UTC
    message String
    The optional message from the agent plugin
    name String
    The plugin name
    status String
    The plugin status
    timeLastUpdatedUtc String
    The last update time of the plugin in UTC
    message string
    The optional message from the agent plugin
    name string
    The plugin name
    status string
    The plugin status
    timeLastUpdatedUtc string
    The last update time of the plugin in UTC
    message str
    The optional message from the agent plugin
    name str
    The plugin name
    status str
    The plugin status
    time_last_updated_utc str
    The last update time of the plugin in UTC
    message String
    The optional message from the agent plugin
    name String
    The plugin name
    status String
    The plugin status
    timeLastUpdatedUtc String
    The last update time of the plugin in UTC

    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