1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ComputeInstanceAgent
  5. getInstanceAgentPlugin
Oracle Cloud Infrastructure v0.20.1 published on Tuesday, Jun 6, 2023 by Pulumi

oci.ComputeInstanceAgent.getInstanceAgentPlugin

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v0.20.1 published on Tuesday, Jun 6, 2023 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

    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 = oci_computeinstanceagent_instanceagent.Test_instanceagent.Id,
            PluginName = @var.Instance_agent_plugin_plugin_name,
        });
    
    });
    
    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.GetInstanceAgentPlugin(ctx, &computeinstanceagent.GetInstanceAgentPluginArgs{
    			InstanceagentId: oci_computeinstanceagent_instanceagent.Test_instanceagent.Id,
    			PluginName:      _var.Instance_agent_plugin_plugin_name,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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(oci_computeinstanceagent_instanceagent.test_instanceagent().id())
                .pluginName(var_.instance_agent_plugin_plugin_name())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_instance_agent_plugin = oci.ComputeInstanceAgent.get_instance_agent_plugin(instanceagent_id=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
        plugin_name=%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testInstanceAgentPlugin = oci.ComputeInstanceAgent.getInstanceAgentPlugin({
        instanceagentId: oci_computeinstanceagent_instanceagent.test_instanceagent.id,
        pluginName: _var.instance_agent_plugin_plugin_name,
    });
    
    variables:
      testInstanceAgentPlugin:
        fn::invoke:
          Function: oci:ComputeInstanceAgent:getInstanceAgentPlugin
          Arguments:
            instanceagentId: ${oci_computeinstanceagent_instanceagent.test_instanceagent.id}
            pluginName: ${var.instance_agent_plugin_plugin_name}
    

    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>
    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]
    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 CompletableFuture<GetInstanceAgentPluginResult> getInstanceAgentPlugin(GetInstanceAgentPluginArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ComputeInstanceAgent/getInstanceAgentPlugin:getInstanceAgentPlugin
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    InstanceagentId string

    The OCID of the instance.

    PluginName string

    The name of the plugin.

    CompartmentId string
    InstanceagentId string

    The OCID of the instance.

    PluginName string

    The name of the plugin.

    compartmentId String
    instanceagentId String

    The OCID of the instance.

    pluginName String

    The name of the plugin.

    compartmentId string
    instanceagentId string

    The OCID of the instance.

    pluginName string

    The name of the plugin.

    compartment_id str
    instanceagent_id str

    The OCID of the instance.

    plugin_name str

    The name of the plugin.

    compartmentId String
    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

    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.

    oci logo
    Oracle Cloud Infrastructure v0.20.1 published on Tuesday, Jun 6, 2023 by Pulumi