1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. ComputeInstanceAgent
  6. getInstanceAgentPlugin
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v4.22.0
published on Wednesday, Aug 26, 2026 by Pulumi

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

    Gets information about a specific Oracle Cloud Agent plugin on a compute instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testInstanceAgentPlugin = oci.computeinstanceagent.getInstanceAgentPlugin({
        compartmentId: compartmentId,
        instanceagentId: instanceagent.id,
        pluginName: instanceAgentPluginPluginName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_instance_agent_plugin = oci.computeinstanceagent.get_instance_agent_plugin(compartment_id=compartment_id,
        instanceagent_id=instanceagent["id"],
        plugin_name=instance_agent_plugin_plugin_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/computeinstanceagent"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := computeinstanceagent.GetInstanceAgentPlugin(ctx, &computeinstanceagent.GetInstanceAgentPluginArgs{
    			CompartmentId:   compartmentId,
    			InstanceagentId: instanceagent.Id,
    			PluginName:      instanceAgentPluginPluginName,
    		}, 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 testInstanceAgentPlugin = Oci.ComputeInstanceAgent.GetInstanceAgentPlugin.Invoke(new()
        {
            CompartmentId = compartmentId,
            InstanceagentId = instanceagent.Id,
            PluginName = instanceAgentPluginPluginName,
        });
    
    });
    
    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.GetInstanceAgentPluginArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testInstanceAgentPlugin = ComputeInstanceAgentFunctions.getInstanceAgentPlugin(GetInstanceAgentPluginArgs.builder()
                .compartmentId(compartmentId)
                .instanceagentId(instanceagent.id())
                .pluginName(instanceAgentPluginPluginName)
                .build());
    
        }
    }
    
    variables:
      testInstanceAgentPlugin:
        fn::invoke:
          function: oci:ComputeInstanceAgent:getInstanceAgentPlugin
          arguments:
            compartmentId: ${compartmentId}
            instanceagentId: ${instanceagent.id}
            pluginName: ${instanceAgentPluginPluginName}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_computeinstanceagent_getinstanceagentplugin" "testInstanceAgentPlugin" {
      compartment_id   = compartmentId
      instanceagent_id = instanceagent.id
      plugin_name      = instanceAgentPluginPluginName
    }
    

    Using getInstanceAgentPlugin

    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 getInstanceAgentPlugin(args: GetInstanceAgentPluginArgs, opts?: InvokeOptions): Promise<GetInstanceAgentPluginResult>
    function getInstanceAgentPluginOutput(args: GetInstanceAgentPluginOutputArgs, opts?: InvokeOutputOptions): Output<GetInstanceAgentPluginResult>
    def get_instance_agent_plugin(compartment_id: Optional[str] = None,
                                  instanceagent_id: Optional[str] = None,
                                  plugin_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetInstanceAgentPluginResult
    def get_instance_agent_plugin_output(compartment_id: pulumi.Input[Optional[str]] = None,
                                  instanceagent_id: pulumi.Input[Optional[str]] = None,
                                  plugin_name: pulumi.Input[Optional[str]] = None,
                                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetInstanceAgentPluginResult]
    func GetInstanceAgentPlugin(ctx *Context, args *GetInstanceAgentPluginArgs, opts ...InvokeOption) (*GetInstanceAgentPluginResult, error)
    func GetInstanceAgentPluginOutput(ctx *Context, args *GetInstanceAgentPluginOutputArgs, opts ...InvokeOption) GetInstanceAgentPluginResultOutput

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

    public static class GetInstanceAgentPlugin 
    {
        public static Task<GetInstanceAgentPluginResult> InvokeAsync(GetInstanceAgentPluginArgs args, InvokeOptions? opts = null)
        public static Output<GetInstanceAgentPluginResult> Invoke(GetInstanceAgentPluginInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetInstanceAgentPluginResult> Invoke(GetInstanceAgentPluginInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetInstanceAgentPluginResult> getInstanceAgentPlugin(GetInstanceAgentPluginArgs args, InvokeOptions options)
    public static Output<GetInstanceAgentPluginResult> getInstanceAgentPlugin(GetInstanceAgentPluginArgs args, InvokeOptions options)
    public static Output<GetInstanceAgentPluginResult> getInstanceAgentPlugin(GetInstanceAgentPluginArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: oci:ComputeInstanceAgent/getInstanceAgentPlugin:getInstanceAgentPlugin
      arguments:
        # arguments dictionary
    data "oci_compute_instance_agent_get_instance_agent_plugin" "name" {
        # arguments
    }

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which the instance resides
    InstanceagentId string
    The OCID of the instance.
    PluginName string
    The name of the plugin.
    CompartmentId string
    The ID of the compartment in which the instance resides
    InstanceagentId string
    The OCID of the instance.
    PluginName string
    The name of the plugin.
    compartment_id string
    The ID of the compartment in which the instance resides
    instanceagent_id string
    The OCID of the instance.
    plugin_name string
    The name of the plugin.
    compartmentId String
    The ID of the compartment in which the instance resides
    instanceagentId String
    The OCID of the instance.
    pluginName String
    The name of the plugin.
    compartmentId string
    The ID of the compartment in which the instance resides
    instanceagentId string
    The OCID of the instance.
    pluginName string
    The name of the plugin.
    compartment_id str
    The ID of the compartment in which the instance resides
    instanceagent_id str
    The OCID of the instance.
    plugin_name str
    The name of the plugin.
    compartmentId String
    The ID of the compartment in which the instance resides
    instanceagentId String
    The OCID of the instance.
    pluginName String
    The name of the plugin.

    getInstanceAgentPlugin Result

    The following output properties are available:

    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceagentId string
    Message string
    An optional message from the plugin.
    Name string
    The plugin name.
    PluginName string
    Status string
    The plugin status.
    TimeLastUpdatedUtc string
    The last updated time of the plugin, in UTC.
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceagentId string
    Message string
    An optional message from the plugin.
    Name string
    The plugin name.
    PluginName string
    Status string
    The plugin status.
    TimeLastUpdatedUtc string
    The last updated time of the plugin, in UTC.
    compartment_id string
    id string
    The provider-assigned unique ID for this managed resource.
    instanceagent_id string
    message string
    An optional message from the plugin.
    name string
    The plugin name.
    plugin_name string
    status string
    The plugin status.
    time_last_updated_utc string
    The last updated time of the plugin, in UTC.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    instanceagentId String
    message String
    An optional message from the plugin.
    name String
    The plugin name.
    pluginName String
    status String
    The plugin status.
    timeLastUpdatedUtc String
    The last updated time of the plugin, in UTC.
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    instanceagentId string
    message string
    An optional message from the plugin.
    name string
    The plugin name.
    pluginName string
    status string
    The plugin status.
    timeLastUpdatedUtc string
    The last updated time of the plugin, in UTC.
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    instanceagent_id str
    message str
    An optional message from the plugin.
    name str
    The plugin name.
    plugin_name str
    status str
    The plugin status.
    time_last_updated_utc str
    The last updated time of the plugin, in UTC.
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    instanceagentId String
    message String
    An optional message from the plugin.
    name String
    The plugin name.
    pluginName String
    status String
    The plugin status.
    timeLastUpdatedUtc String
    The last updated 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 oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.22.0
    published on Wednesday, Aug 26, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial