1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ComputeInstanceAgent
  5. getInstanceAgentPlugin
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.ComputeInstanceAgent.getInstanceAgentPlugin

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

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

The API to get information for a plugin.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testInstanceAgentPlugin = oci.ComputeInstanceAgent.getInstanceAgentPlugin({
    instanceagentId: testInstanceagent.id,
    pluginName: instanceAgentPluginPluginName,
});
Copy
import pulumi
import pulumi_oci as oci

test_instance_agent_plugin = oci.ComputeInstanceAgent.get_instance_agent_plugin(instanceagent_id=test_instanceagent["id"],
    plugin_name=instance_agent_plugin_plugin_name)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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{
			InstanceagentId: testInstanceagent.Id,
			PluginName:      instanceAgentPluginPluginName,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testInstanceAgentPlugin = Oci.ComputeInstanceAgent.GetInstanceAgentPlugin.Invoke(new()
    {
        InstanceagentId = testInstanceagent.Id,
        PluginName = instanceAgentPluginPluginName,
    });

});
Copy
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.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 testInstanceAgentPlugin = ComputeInstanceAgentFunctions.getInstanceAgentPlugin(GetInstanceAgentPluginArgs.builder()
            .instanceagentId(testInstanceagent.id())
            .pluginName(instanceAgentPluginPluginName)
            .build());

    }
}
Copy
variables:
  testInstanceAgentPlugin:
    fn::invoke:
      function: oci:ComputeInstanceAgent:getInstanceAgentPlugin
      arguments:
        instanceagentId: ${testInstanceagent.id}
        pluginName: ${instanceAgentPluginPluginName}
Copy

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

> 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)
}
Copy
public static CompletableFuture<GetInstanceAgentPluginResult> getInstanceAgentPlugin(GetInstanceAgentPluginArgs args, InvokeOptions options)
public static Output<GetInstanceAgentPluginResult> getInstanceAgentPlugin(GetInstanceAgentPluginArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:ComputeInstanceAgent/getInstanceAgentPlugin:getInstanceAgentPlugin
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
InstanceagentId This property is required. string
The OCID of the instance.
PluginName This property is required. string
The name of the plugin.
CompartmentId This property is required. string
InstanceagentId This property is required. string
The OCID of the instance.
PluginName This property is required. string
The name of the plugin.
compartmentId This property is required. String
instanceagentId This property is required. String
The OCID of the instance.
pluginName This property is required. String
The name of the plugin.
compartmentId This property is required. string
instanceagentId This property is required. string
The OCID of the instance.
pluginName This property is required. string
The name of the plugin.
compartment_id This property is required. str
instanceagent_id This property is required. str
The OCID of the instance.
plugin_name This property is required. str
The name of the plugin.
compartmentId This property is required. String
instanceagentId This property is required. String
The OCID of the instance.
pluginName This property is required. 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
The optional message from the agent plugin
Name string
The plugin name
PluginName string
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
TimeLastUpdatedUtc string
The last update time of the plugin in UTC
CompartmentId string
Id string
The provider-assigned unique ID for this managed resource.
InstanceagentId string
Message string
The optional message from the agent plugin
Name string
The plugin name
PluginName string
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
TimeLastUpdatedUtc string
The last update time of the plugin in UTC
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
instanceagentId String
message String
The optional message from the agent plugin
name String
The plugin name
pluginName String
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
timeLastUpdatedUtc String
The last update time of the plugin in UTC
compartmentId string
id string
The provider-assigned unique ID for this managed resource.
instanceagentId string
message string
The optional message from the agent plugin
name string
The plugin name
pluginName string
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
timeLastUpdatedUtc string
The last update 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
The optional message from the agent plugin
name str
The plugin name
plugin_name str
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
time_last_updated_utc str
The last update time of the plugin in UTC
compartmentId String
id String
The provider-assigned unique ID for this managed resource.
instanceagentId String
message String
The optional message from the agent plugin
name String
The plugin name
pluginName String
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
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.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi