Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.ComputeInstanceAgent.getInstanceAgentPlugin
Explore with Pulumi AI
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,
});
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)
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
})
}
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,
});
});
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());
}
}
variables:
testInstanceAgentPlugin:
fn::invoke:
Function: oci:ComputeInstanceAgent:getInstanceAgentPlugin
Arguments:
instanceagentId: ${testInstanceagent.id}
pluginName: ${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?: 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:
- Compartment
Id string - Instanceagent
Id string - The OCID of the instance.
- Plugin
Name string - The name of the plugin.
- Compartment
Id string - Instanceagent
Id string - The OCID of the instance.
- Plugin
Name string - The name of the plugin.
- compartment
Id String - instanceagent
Id String - The OCID of the instance.
- plugin
Name String - The name of the plugin.
- compartment
Id string - instanceagent
Id string - The OCID of the instance.
- plugin
Name 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.
- compartment
Id String - instanceagent
Id String - The OCID of the instance.
- plugin
Name String - The name of the plugin.
getInstanceAgentPlugin Result
The following output properties are available:
- Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Instanceagent
Id string - Message string
- The optional message from the agent plugin
- Name string
- The plugin name
- Plugin
Name 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 - Time
Last stringUpdated Utc - The last update 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
- The optional message from the agent plugin
- Name string
- The plugin name
- Plugin
Name 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 - Time
Last stringUpdated Utc - The last update 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
- The optional message from the agent plugin
- name String
- The plugin name
- plugin
Name 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 - time
Last StringUpdated Utc - The last update 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
- The optional message from the agent plugin
- name string
- The plugin name
- plugin
Name 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 - time
Last stringUpdated Utc - 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_ strupdated_ utc - The last update 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
- The optional message from the agent plugin
- name String
- The plugin name
- plugin
Name 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 - time
Last StringUpdated Utc - 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.